In case we need to dynamically change the text of the asp:Label you can use this approach.
<p><asp:Label ID="Label2" runat="server" Text="My second Label"></asp:Label></p>
protected void Page_Load(object sender, EventArgs e)
{
// writeing text from code behind
Label2.Text = "Written from code behind";
}
Specify the Text property from the code behind that will write the specified text on the web page
Views: 2570 | Post Order: 8