Solved

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

Posted on 2007-11-21
6
214 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Automating Terraform w Jenkins & AWS CodeCommit

How to configure Jenkins and CodeCommit to allow users to easily create and destroy infrastructure using Terraform code.

 
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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

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…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

615 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