protected void btn_Update_Click(object sender, EventArgs e)
 {
     try
     {
         if (Validate())
         {
             int       ActiveSt = Convert.ToInt16(rbnSy.SelectedValue);
             DataTable dt       = new DataTable();
             dt = objDist.UpdateInstituionsBAL(ViewState["Unique_InsId"].ToString(), txtInstutionName.Text.Trim(), txtVillage.Text.Trim(), ActiveSt, UserName, "U", ConnKey);
             if (dt.Rows.Count > 0)
             {
                 objCommon.ShowAlertMessage(dt.Rows[0][0].ToString());
                 txtInstutionCode.Text = "";
                 txtInstutionName.Text = "";
                 txtVillage.Text       = "";
                 txt_Date.Text         = "";
                 btn_Update.Visible    = false;
                 btn_Save.Visible      = true;
             }
             Viewdata();
         }
     }
     catch (Exception ex)
     {
         ExceptionLogging.SendExcepToDB(ex, Session["UsrName"].ToString(), Request.ServerVariables["REMOTE_ADDR"].ToString());
         Response.Redirect("~/Error.aspx");
     }
 }