protected void ImgAdd_Click(object sender, EventArgs e) { this.SetFocus("ctl00_MainContent_txtJoiningType"); HiddenFlag.Value = "Add"; OperationMode = "Add Joining Type"; ClearField(); DataTable dtPBill = new DataTable(); dtPBill = objBLL.Get_JoiningType_PBillComponent(null); GVOffPBill.DataSource = dtPBill; GVOffPBill.DataBind(); string JoiningType = String.Format("showModal('divadd',false);"); ScriptManager.RegisterStartupScript(Page, Page.GetType(), "JoiningType", JoiningType, true); }