n our next example, we can observe that, we assign the text dynamically to the label control. In the page load event, the value "This is my FIRST ASP.NET Page!" is assigned to the property text.
Label Web Server Control
Sub Page_Load(sender As Object, e As EventArgs)
Label1.text = "This is my FIRST ASP.NET Page!"
End Sub
Re: How to dynamically assign text to a Label using ASP.NET?
n our next example, we can observe that, we assign the text dynamically to the label control. In the page load event, the value "This is my FIRST ASP.NET Page!" is assigned to the property text.
Label Web Server Control
Sub Page_Load(sender As Object, e As EventArgs)
Label1.text = "This is my FIRST ASP.NET Page!"
End Sub
ASP.NET Label Server Control