Maintaining "ViewState" Going to Another Page and Back

Discussion in 'ASP .Net' started by Steve Murphy, Jan 14, 2006.

  1. Steve Murphy

    Steve Murphy Guest

    I have an application where I need to leave a page, perform some processing,
    and then return. On return, one set of fields will be updated, but the
    remainder should remain in the state they were in when the user left.

    Using the Request.Page NameValueCollection I can do this for everything but
    ListBox content and selected index. Am I missing something, or do I need to
    store that separately on my own?

    Steve Murphy, Jan 14, 2006
    1. Advertisements

  2. Steve Murphy

    Guest Guest

    ViewState doesn't store the contents of a control at all, only the changes,
    and only on a postback to the same page.
    Hope that helps. You could use either Session or Cache if you need to.

    Guest, Jan 15, 2006
    1. Advertisements

  3. Steve Murphy

    Guest Guest


    Using Session to store the instance of object before leaving a page. Then
    retrieved the instance of object before loading a page back.
    Hope can help you

    Joe Tsui
    Guest, Jan 15, 2006
    1. Advertisements

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.