protected void ibtnRemark_click(object source, CommandEventArgs e) { Charter_Party_Id = Convert.ToInt32(e.CommandArgument); DataTable dt = oBLL_CP.GeneralRemarks(Charter_Party_Id); gvRemarks.DataSource = dt; gvRemarks.DataBind(); string show = String.Format("showDvRemarks('dvRemarks')"); ScriptManager.RegisterStartupScript(Page, Page.GetType(), "showmodal", show, true); }