WebControl State: ViewState or Request.Form?

Discussion in 'ASP .Net Building Controls' started by Hadar, Aug 31, 2004.

  1. Hadar

    Hadar Guest

    Hi,

    I'm still a little bit confused with how managing a webcontrol state over
    postbacks...
    Should I use the form's post values to populate the control on the server
    side when possible, or should I always use the viewstate mechanism?

    For instance, I noticed that the TextBox webcontrol does not depend on the
    viewstate.
    I guess it uses the form to retrieve state (the input is submited of course)
    over roundtrips...

    Also, the control should manage its state independenty.
    No matter if it is used directly by the page, or by a parent composite
    control it should save state by its own (like the TextBox webcontrol).

    Thanks,
    Hadar
    Hadar, Aug 31, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. shamanthakamani
    Replies:
    1
    Views:
    3,475
    Natty Gur
    Nov 20, 2003
  2. Not Liking Dot Net Today
    Replies:
    0
    Views:
    595
    Not Liking Dot Net Today
    Apr 21, 2004
  3. Patrice
    Replies:
    3
    Views:
    3,563
    Eliyahu Goldin
    Aug 31, 2004
  4. Maciek
    Replies:
    0
    Views:
    8,228
    Maciek
    Sep 15, 2005
  5. Harry Haller
    Replies:
    0
    Views:
    1,641
    Harry Haller
    Nov 7, 2006
Loading...

Share This Page