Question : Is their anyway to convert label to a string

Is their anyway to convert label to a string

 Dim u As UserControl = TryCast(FindControl("EventDetails"), UserControl)
 Dim b As Label = TryCast(u.FindControl("lblEventID"), Label)

Answer : Is their anyway to convert label to a string

If u are able to find the control, then u can assign the label text to string like

 Dim b As Label = TryCast(u.FindControl("lblEventID"), Label)
dim str as string
str = b.Text
Random Solutions  
 
programming4us programming4us