How to keep input value in user controls after postback

Discussion in 'ASP .Net' started by elain, Nov 20, 2003.

  1. elain

    elain Guest

    Hi all,

    My webform contains a repeater, and every item in the repeater is a
    user control which contains several textboxes. Each time when the page
    is loaded, I bind a dataset to this repeater to let the user control
    know how many textboxes it will display. After a user filling in those
    textboxes, he will click a button to postback this page, what i want
    to know is how can i keep and show up the values the users has already
    inputed into those textboxes after postback? Is there any easy way to
    do it besides using ViewState?

    thanks,

    Elain
     
    elain, Nov 20, 2003
    #1
    1. Advertising

  2. "elain" <> wrote in message
    news:...
    > Hi all,
    >
    > My webform contains a repeater, and every item in the repeater is a
    > user control which contains several textboxes. Each time when the page
    > is loaded, I bind a dataset to this repeater to let the user control
    > know how many textboxes it will display. After a user filling in those
    > textboxes, he will click a button to postback this page, what i want
    > to know is how can i keep and show up the values the users has already
    > inputed into those textboxes after postback? Is there any easy way to
    > do it besides using ViewState?


    This is what ViewState is for. If you want, you could create your own
    ViewState mechansim, but why?
    --
    John Saunders
    John.Saunders at SurfControl.com
     
    John Saunders, Nov 21, 2003
    #2
    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. Steve C. Orr, MCSD
    Replies:
    0
    Views:
    817
    Steve C. Orr, MCSD
    Aug 1, 2003
  2. Ken McCrory

    Keep previous page position after postback

    Ken McCrory, Mar 9, 2005, in forum: ASP .Net
    Replies:
    5
    Views:
    4,090
    Ken McCrory
    Mar 9, 2005
  3. parm
    Replies:
    2
    Views:
    16,575
  4. peruukki
    Replies:
    1
    Views:
    555
    peruukki
    May 31, 2007
  5. Ted Ngo
    Replies:
    0
    Views:
    2,239
    Ted Ngo
    Mar 17, 2008
Loading...

Share This Page