Question convert user control to string

farside

New member
Joined
Nov 9, 2011
Messages
1
Programming Experience
10+
Looking to add a user control to a sting, something similar to below:

Dim fillcontrol As String = ""
Dim userc As Control = New Control
userc = Me.LoadControl("FILENAME.ascx")

fillcontrol.Controls.Add(userc)


Is this possible? I tried attaching to a label then use the label.text function, but that did not work either.
 
Back
Top