protected void BtnUpdate_Click1(object sender, EventArgs e) { if (Session["Pcid"] != null && Session["Pcid"].ToString() != "") { //string pcname = TextPcname.Text; string pcname = TextPcname.Text; string desc = TextDesc.Text; long PcId = long.Parse(Session["Pcid"].ToString()); objprocat.UpdateProductCategories(PcId, pcname, desc); txtprodcatdescri.Text = ""; txtprodcatname.Text = ""; BindGrid(); Bindddlproductcategory(); DivMsg.Style.Add("display", "inline-table"); lblMsg.Text = "Updated Successfully !"; } }