protected void BtnSave_Click(object sender, EventArgs e) { if (txtprodcatname.Text != "") { objprocat.ProductCategoryName = txtprodcatname.Text; objprocat.Description = txtprodcatdescri.Text; objprocat.SaveProductCategory(); // objprocat.SaveProductCategory(); txtprodcatname.Text = ""; txtprodcatdescri.Text = ""; BindGrid(); DivMsg.Style.Add("display", "inline-table"); lblMsg.Text = "Saved Successfully !"; ModalPopupExtender1.Hide(); } }