protected void ddlProductLine_SelectedIndexChanged(object sender, EventArgs e) { if (ddlProductLine.SelectedValue != "") { if (hdnsearch.Value == "") { objCommonClass.BindProduct(ddlProduct, int.Parse(ddlProductLine.SelectedValue.ToString())); } } else { ddlProduct.Items.Clear(); ddlProduct.Items.Insert(0, new ListItem("Select", "0")); } }