I have a label in a web user control. I am trying to add the current date to this label on page load.
My code within the user control is:
Should this update the label on page load or do I need to add code to the aspx page?
My code within the user control is:
Code:
Public Property DateLabelText() As String
Get
Return lblDate.Text
End Get
Set(value As String)
lblDate.Text = DateTime.Now.ToString("dd MMM yyyy")
End Set
End Property
Should this update the label on page load or do I need to add code to the aspx page?