Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2007-11-21
6
Medium Priority
?
222 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 Ageil
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
NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

 
LVL 27

Accepted Solution

by:
Sammy Ageil earned 2000 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

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

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

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

916 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