Results 1 to 6 of 6

Thread: Making web control values persist [Resolved]

Threaded View

  1. #1

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Making web control values persist [Resolved]

    I just made the world's simplest Web Control.

    VB Code:
    1. Protected Overrides Sub Render(ByVal Output As HtmlTextWriter)
    2.             Output.Write("<b><u>" & _writewhat & "</u></b>")
    3.         End Sub
    4.  
    5.         Public Property WriteWhat() As String
    6.             Get
    7.                 Return _writewhat
    8.             End Get
    9.             Set(ByVal Value As String)
    10.                 _writewhat = Value
    11.             End Set
    12.         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?
    Last edited by mendhak; Jul 20th, 2004 at 07:20 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width