private void UpdateDistrictNo(int id) { try { MastersBLL obj = new MastersBLL(); obj.Id = id; obj.DistrictNo = int.Parse(txtDistNo.Text.Trim().ToString()); int i = obj.UpdateColors(); if (i > 0) { Clear(); showmsg("District No. Has Been Updated Successfully", "view_district_no.aspx"); } } catch { } }
private void UpdateDistrictNo(int id) { try { MastersBLL obj = new MastersBLL(); obj.Id = id; obj.DistrictNo = int.Parse(txtName.Text.Trim().ToString()); int i = obj.UpdateColors(); if (i > 0) { Clear(); //showmsg("District No. Has Been Updated Successfully", "view_district_no.aspx"); string jv = "<script>alert('Eligible Voters Has Been Updated Successfully');</script>"; ScriptManager.RegisterClientScriptBlock(this, typeof(Page), "alert", jv, false); } } catch { } }