I\'m using VB 2010 Express and have a label named \"lblTitle\" in my form. The next code doesn\'t work and I know it , but how can I do something like this?
Dim
Try this:
Dim myLabel As Label = DirectCast(Page.FindControl("lblTitle"), Label) myLabel.Text = "some new value"