Making web control values persist [Resolved]
I just made the world's simplest Web Control.
VB Code:
Protected Overrides Sub Render(ByVal Output As HtmlTextWriter)
Output.Write("<b><u>" & _writewhat & "</u></b>")
End Sub
Public Property WriteWhat() As String
Get
Return _writewhat
End Get
Set(ByVal Value As String)
_writewhat = Value
End Set
End Property
See?
But I have no idea how I can make the values of these persist on postbacks.
Either there's some code I have to write, or I'm overlooking something simple.
So, how?