protected void btnChangePassword_Click(object sender, EventArgs e)
 {
     try
     {
         ClsBAL obj = new ClsBAL();
         string msg = obj.ChangePassword(Convert.ToInt32(Session["UserID"].ToString()), txtPassword.Text.Trim().ToString(), Convert.ToInt32(Session["UserID"].ToString()), txtCurrentPassword.Text.Trim().ToString());
         lblMsg.InnerHtml = msg;
     }
     catch (Exception ex)
     {
         lblMsg.InnerHtml = ex.Message;
         throw;
     }
 }
 protected void btnChangePassword_Click(object sender, EventArgs e)
 {
     try
     {
         if (Session["UserID"] != null)
         {
             ClsBAL obj = new ClsBAL();
             string msg = obj.ChangePassword(Convert.ToInt32(Session["UserID"].ToString()), txtPassword.Text.Trim().ToString(), Convert.ToInt32(Session["UserID"].ToString()), txtCurrentPassword.Text.Trim().ToString());
             lblMsg.InnerHtml = msg;
         }
         else { Response.Redirect("~/Default.aspx", false); }
     }
     catch (Exception ex)
     {
         lblMsg.InnerHtml = ex.Message;
         throw;
     }
 }