Skip to content

I want to maintain data filled in the forms while navigating to other forms

amol

Asked Jun 23, 2009, 9:26 PM EDT1 answer
Share
LinkedInX
hi,, i am new to asp.net
 i have a registration form,where i have 3 pages, when i fill the first page and move to next page(form 1 to form 2), manny times it hapens that i loose the information filled on first page  when i come back on the first form from form no2.  how to maintain the  information filled on form while navigating?           i have heard about viewstate... but is tht the only solution?

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    Hi,
    I'm not an expert on this but perhaps this can help.
    You can store values as session variables.  This is a variable that remains available in your session(also in another form for example).
    To store a variable:
    Code
     Session("Value1") = "Hello"

     
    To get a session variable:
    Code
     
    
    strValue = Session("Value1").tostring

     
    Hope this helps.
    Benjamin
    0