Solved

What is the best technique to add new users with asp.net?

Posted on 2007-11-21
6
211 Views
Last Modified: 2013-11-26
I have a webpage that needs to register new users. I need to collect a lot of information. Currently, I have 4 pages that the user needs to complete. The problem I have is that some users take a long time to complete a page thus their session gets dumped and the information they entered is lost. What is the best technique to do this? thanks
0
Comment
Question by:mattphung
  • 3
  • 2
6 Comments
 
LVL 23

Expert Comment

by:Saqib Khan
ID: 20332196
Just increase the Session Timeout Setting to some greater Value

I believe its

Session.Timeout = 9000

means 9 Seconds. You can slo change that setting within IIS. You might need to google Timeout property to confirm.
0
 
LVL 27

Expert Comment

by:Sammy
ID: 20332517
you can use the web.config session state to increase the timeout
this will apply to all pages

<configuration>
   <system.web>
      <sessionState mode="InProc"
                    cookieless="true"
                    timeout="20"/> <!--20 Minutes Not seconds when set at the config level-->
      </sessionState>
   </system.web>
</configuration>

Open in new window

0
 

Author Comment

by:mattphung
ID: 20332644
Is there another way besides increasing the timeout value?
0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
LVL 27

Accepted Solution

by:
Sammy earned 500 total points
ID: 20332739
Nope! you are using sessions and they expire, you can store the data in cookies and check their values when the user gets to the next page
another option is to use the Context object
Context.Items.Add("Context_Identifier","ContextValue");
the other limitation here is that you will have to use Server.Transfer("Otherpage.aspx",true); instead of Response.Redirect("Oherpage.aspx");
to read the Context values you can do like this
string s = Context.Items["Context_Identifier"].ToString();

Hope this helps

0
 

Author Comment

by:mattphung
ID: 20430031
Can I use Context to transfer datagrid to the next page?
0
 

Author Comment

by:mattphung
ID: 20430047
Sorry.... I forgot to say thank you thus far for all your help. I really appreciate it.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question