title: how to change text of label in datalist at page load
body: <pre><code>&lt;asp:datalist ID="Datalist1" runat="server" 
                        Width="500px" &gt;
                      &lt;ItemTemplate&gt;
  
  
  &lt;asp:Button ID="btnviewfullprofile" runat="server"   Text="View Full Profile" ToolTip="Click for Full Profile of User"  CommandArgument='&lt;%#Eval("Uid")%&gt;'  CommandName="fullprofile" /&gt;
  
  
  
   &lt;asp:Button ID="sendinterest" runat="server" Text="Send Interest"  CommandArgument='&lt;%#Eval("Uid")%&gt;'  CommandName="sendinterest" /&gt;
  
   &lt;asp:Label ID="lblstatus" runat="server" Visible="False"     &gt;&lt;/asp:Label&gt;                 
  
  
  &lt;/ItemTemplate&gt;
     &lt;/asp:datalist&gt;
  </code></pre>
  
  <p>text of label will change according to the value of status stored in database.</p>
  
  <p>code for button</p>
  
  <pre><code>if (e.CommandName == "fullprofile")
      {
          int Id = int.Parse(e.CommandArgument.ToString());
          Response.Redirect("~/FullProfile.aspx?Id=" + Id);
  
  
   `enter code here`   }
  </code></pre>
  
  <p>but what should i write for label so that text of label should change itself based on value of status stored in database</p>