Solved

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

Posted on 2007-11-21
6
212 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
Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

 
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

761 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