protected void BindSchemes(int Amc, string Category) { ddlScheme.Items.Clear(); ddlScheme.Items.Insert(0, new System.Web.UI.WebControls.ListItem("--SELECT--", "0")); //ddlScheme.Items.Insert(0, new ListItem("--SELECT--")); ddlScheme.SelectedIndex = 0; string category = Category.ToLower() == "all" ? null : Category.ToLower(); DataTable dtScheme = new DataTable(); dtScheme = commonLookupBo.GetAmcSipSchemeList(Amc, category); if (dtScheme == null) { return; } if (dtScheme.Rows.Count > 0) { ddlScheme.DataSource = dtScheme; ddlScheme.DataValueField = dtScheme.Columns["PASP_SchemePlanCode"].ToString(); ddlScheme.DataTextField = dtScheme.Columns["PASP_SchemePlanName"].ToString(); ddlScheme.DataBind(); } ddlScheme.Items.Insert(0, new System.Web.UI.WebControls.ListItem("--SELECT--", "0")); //ddlScheme.Items.Insert(0, new ListItem("--SELECT--")); ddlScheme.SelectedIndex = 0; }