title: change the Label text when case happens
body: <p>I'm trying to change the lblsource and lblmessage when case happens how do I do this? </p>
  
  <pre><code> &lt;div class="form-horizontal well container-cus"&gt;         
   &lt;div class="row"&gt;             
   &lt;div class="col-lg-12"&gt;                 
   &lt;br /&gt;                 
   &lt;br /&gt;                 
   &lt;div style="width: 350px; box-shadow: 5px 0px 40px rgba(0,0,0, .2);" class="panel panel-warning center-block"&gt;                     
   &lt;div class="panel-heading"&gt;
   &lt;/div&gt;                     
   &lt;div class="panel-body"&gt;                         
   &lt;div class="form-group"&gt;                             
   &lt;div class="row"&gt;                                 
   &lt;div class="text-center"&gt;                                     
   &lt;img class="profile-img" src="/Images/user_icon.png" /&gt;                                 
   &lt;/div&gt;                            
   &lt;/div&gt;                             
   &lt;br /&gt;                             
   &lt;div class="row"&gt;                                 
   &lt;div class="col-lg-12"&gt;                                     
   &lt;asp:TextBox ID="txtUsername" CssClass="form-control" placeholder="Username" runat="server" required&gt;&lt;/asp:TextBox&gt;                                 
   &lt;/div&gt;                             
   &lt;/div&gt;                         
   &lt;/div&gt;                         
   &lt;div class="form-group"&gt;                             
   &lt;div class="row"&gt;                                 
   &lt;div class="col-lg-12"&gt;                                     
   &lt;asp:TextBox ID="txtPassword" class="form-control" placeholder="Password" runat="server" TextMode="Password" required&gt;&lt;/asp:TextBox&gt;                                 
   &lt;/div&gt;                             
   &lt;/div&gt;                         
   &lt;/div&gt;                         
   &lt;br /&gt;                         
   &lt;br /&gt;                         
   &lt;div class="panel-footer"&gt;                             
   &lt;div class="row"&gt;                                 
   &lt;div class="col-lg-12"&gt;                                     
   &lt;asp:Button ID="btnLogin" Style="width: 290px;" class="btn btn-warning btn-lg pull-right" runat="server" Text="LOGIN" OnClick="btnLogin_Click" /&gt;                                 
   &lt;/div&gt;                             
   &lt;/div&gt;                         
   &lt;/div&gt;                      
   &lt;/div&gt;                     
   &lt;asp:Label ID="lblsource" runat="server" CssClass="text-danger" Text=""&gt;&lt;/asp:Label&gt;                     
   &lt;br /&gt;                     
   &lt;asp:Label ID="lblmessage" runat="server" CssClass="text-danger" Text=""&gt;&lt;/asp:Label&gt;                     
   &lt;br /&gt;                     
   &lt;asp:Label ID="Label1" runat="server" CssClass="text-danger" Text="Invalid Username or Password" Visible="false"&gt;&lt;/asp:Label&gt;                 
   &lt;/div&gt;                              
   &lt;/div&gt;         
   &lt;/div&gt;     
   &lt;/div&gt;
  </code></pre>
  
  <p>the above code is my .aspx when logging in the lblsource and lblmessage .text value must be change when it enters a certain case in the switch statement</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  using System.Web.UI;
  using System.Web.UI.WebControls;
  using System.Data;
  using System.Data.SqlClient;
  
  public partial class Account_Suppliers_Login : System.Web.UI.Page
  {
      protected void btnLogin_Click(object sender, EventArgs e)
      {
          using (SqlConnection con = new SqlConnection(Helper.GetCon()))
          {
              con.Open();
              SqlCommand cmd = new SqlCommand("SELECT su.SupplierID, su.Status, ut.Username, ut.Password, ut.UserID FROM UserTable ut INNER JOIN Suppliers su ON su.UserID = ut.UserID Where ut.Username = '" + txtUsername.Text + "' AND ut.Password = '" + Helper.CreateSHAHash(txtPassword.Text) + "'", con);
  
              SqlDataReader dr = cmd.ExecuteReader();
              if (dr.HasRows)
              {
                  while (dr.Read())
                  {
                      Session["SupplierID"] = dr["SupplierID"].ToString();
                      Session["Status"] = dr["Status"].ToString();
                      Session["Username"] = dr["Username"].ToString();
                      Session["UserID"] = dr["UserID"].ToString();
                  }
  
                  string statuscode = Session["Status"].ToString();
  
  
                  switch (statuscode)
                  {
                      case "Active":
                          Session["Status"] = null;
                          Session.Remove("Status");
                          Response.Redirect("\\Account\\Suppliers\\Default.aspx");
                          break;
  
                      case "Inactive":
  
                          lblsource.Text = "Login Page: INACTIVE";
                          lblmessage.Text = "Welcome Back! Please let us know on how we can help you better.";
                          Response.Redirect("\\Account\\Suppliers\\Login.aspx");
                          break;
  
                      case "Pending":
                          lblsource.Text = "Login Page: PENDING";
                          lblmessage.Text = "Thank you for registering with us. We will process your request shortly.";
                          lblsource.Visible = true;
                          lblmessage.Visible = true;
  
                          Response.Redirect("\\Account\\Suppliers\\Login.aspx");
                          break;
  
                      case "Blocked":
                          lblsource.Text = "Login Page: BLOCKED";
                          lblmessage.Text = "We are so glad to hear from you. Please settle your account.";
                          lblsource.Visible = true;
                          lblmessage.Visible = true;
                          Response.Redirect("\\Account\\Suppliers\\Login.aspx");
                          break;
                  }
  
              }
              else
              {
                  Label1.Visible = true;
              }
  
  
  
  
      }
  
      private DataSet GetRecordSuppplier(string TableName)
      {
          using (SqlConnection con = new SqlConnection(Helper.GetCon()))
          {
              SqlCommand cmd = new SqlCommand();
              cmd.Connection = con;
              cmd.CommandType = CommandType.Text;
              cmd.CommandText = "SELECT * FROM " + TableName + " WHERE SupplierID = '" + Session["SupplierID"] + "'";
              SqlDataAdapter da;
              da = new SqlDataAdapter();
              da.SelectCommand = cmd;
  
              DataSet ds = new DataSet();
              da.Fill(ds, TableName);
  
              return ds;
                  }
  }
  </code></pre>
  
  <p>the above code is my .aspx.cs 
  I just want to change the value of lblsource and lblmessage when case happens</p>