protected void btnUpdate_Click(object sender, EventArgs e)
 {
     DT = new DataTable();
     //string MultiBr = CB.CheckMultiBrAccess(Session["UID"].ToString(), Session["BRCD"].ToString());
     //if (MultiBr != "N")
     //{
     //    //int RS = CB.UpdateBranch(Session["UID"].ToString(), Session["PWD"].ToString(), "1", txtBrCode.Text.Trim().ToString(), Session["BRCD"].ToString());
     //    //if (RS > 0)
     //    //{
     //DT = LG.GetDetaile(Session["UID"].ToString(), Session["PWD"].ToString());
     DT = LG.GetDetaile1(Session["UID"].ToString(), encrypt(Session["PWD"].ToString()), Session["BRCD"].ToString());   //Amruta 24/04/2017
     if (DT.Rows.Count > 0)
     {
         Session["MID"]       = DT.Rows[0]["PERMISSIONNO"].ToString();
         Session["LOGINCODE"] = DT.Rows[0]["LOGINCODE"].ToString();
         Session["UserName"]  = DT.Rows[0]["USERNAME"].ToString();
         Session["BRCD"]      = txtBrCode.Text.Trim().ToString() == "" ? "0" : txtBrCode.Text.Trim().ToString();
         Session["UGRP"]      = DT.Rows[0]["USERGROUP"].ToString();
         Session["UID"]       = Session["UID"].ToString();
         Session["PWD"]       = Session["PWD"].ToString();
         FL = "Insert";    //Dhanya Shetty
         string Res = CLM.LOGDETAILS(FL, Session["BRCD"].ToString(), Session["MID"].ToString(), "Branch_change _" + Session["LOGINCODE"].ToString() + "", "00", Session["MID"].ToString());
         Response.Redirect("FrmBlank.aspx", true);
     }
     else
     {
         lblMessage.Text = "User Does Not Have Multi Branch Access...!!";
         ModalPopup.Show(this.Page);
     }
     //}
     //}
     //else
     //{
     //    lblMessage.Text = "User Does Not Have Multi Branch Access...!!";
     //    ModalPopup.Show(this.Page);
     //}
 }