Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
hi..
In WebForms, I have a page containing Some Textboxes..After I enter Data in the Textboxes and Navigate to Nextpage and again i return to the first page through a link..Then the data int the textBoxes of the first page is Showing Empty...But What i need is that the Data In The Textboxes should be remain even i return from the next page (without using Database)...pls someone help me ...i am new to this concept...
 
thanks in advance
Posted 20-Feb-13 2:31am
Edited 20-Feb-13 2:34am
v2
Comments
ryanb31 at 20-Feb-13 10:27am
   
You can't necessarily. It is as if you are visiting the page the first time. What you can do instead of linking to the url, link to javascript that cause the browser to go back instead. Or, you can pass values in querystring. More details from you would be helpful.

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Okay let's look at the alternatives:
 
1. The best possible technique that can be used here is ASP.NET Sessions, which enable you to keep track of a user session while he/she navigates through your website. You can store the information in session object. Take a look at this article Exploring Session in ASP.NET[^].
 
2. you might also want to work with cookies directly, storing information obtained by the user on the user's machine through cookies and whenever the same user comes back on the same page, then retrieving the values from the cookies if present on the machine. You might start by going through the article present at Beginner's Guide to ASP.NET Cookies[^]
 
Hope that helps.
 
Regards
Pawan
  Permalink  
Comments
Marcus Kramer at 20-Feb-13 14:15pm
   
+5.
Rai Pawan at 20-Feb-13 22:53pm
   
Thanks Marcus
- Pawan

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web03 | 2.8.150327.1 | Last Updated 20 Feb 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100