Render a UserCotrol question
I have a question on how to render a usercontrol and have it's rendered html be stored in string form.
so for instance,
UserControl: UC_Header.ascx
Is there a way to do something like:
In Default.aspx:
Dim Header as new UC_Header()
Dim sHeader as string = Header.Render()
So when i call the render method it will run the control as normal and call it's page_load method and return me back the same html as if it were called by the page as normal.
thanks in advanced!
|