if (!IsPostBack) { //filling the dropdownlist. }
string script = "<script type='text/javascript'>alert(' data is successfully deleted');</script>"; Page page = HttpContext.Current.CurrentHandler as Page; if (!(page.ClientScript.IsClientScriptBlockRegistered("alert"))) { page.ClientScript.RegisterClientScriptBlock(this.GetType(), "alert", script); }
DropdownList1.Items.Remove(DropdownList1.SelectedValue);
DropDownList1.DataBind();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)