Click here to Skip to main content
12,822,665 members (46,387 online)
Rate this:
Please Sign up or sign in to vote.
See more: ASP.NET
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
Updated 20-Feb-13 2:34am
ryanb31 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
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.

Marcus Kramer 20-Feb-13 14:15pm
Rai Pawan 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)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170308.1 | Last Updated 20 Feb 2013
Copyright © CodeProject, 1999-2017
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