protected void btnsaveModule_Click(object sender, EventArgs e) { if (HiddenFlag.Value == "Add") { int retval = BLL_Infra_Lib_ModuleTemp.Save_Module(txtModule.Text, Convert.ToInt32(Session["USERID"])); } rpt1.DataSource = BLL_Infra_Lib_ModuleTemp.Get_ModuleList(); rpt1.DataBind(); string hidemodal = String.Format("hideModal('divadd')"); ScriptManager.RegisterStartupScript(Page, Page.GetType(), "hidemodal", hidemodal, true); }