public bool CheckErrors() { Page.Validate(valSummary.ValidationGroup);//error is in this line if (!Page.IsValid) { update.Update(); modalPopupEx.Show(); return false; } return true; }
protected void ImageButton2_Click(object sender, ImageClickEventArgs e) { SiteMaster master = (SiteMaster)this.Master; if (master.CheckErrors()) { GridView2.Visible = false; gvsearch.Visible = true; string search = txtsearch.Text.ToString(); gvsearch.DataSource = DataBase2.myProcedureName(search); gvsearch.DataBind(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)