?
Solved

Retaining textbox text after refresh

Posted on 2004-04-17
3
Medium Priority
?
1,511 Views
Last Modified: 2010-05-18
I have a web page that is automatically set to refresh through a meta tag in the header element.

But when a user is editing a text box (textbox contains text), I would like to retain that text even after a refresh. What's the way to accomplish this?

0
Comment
Question by:gregasm
[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 Comments
 
LVL 28

Accepted Solution

by:
mmarinov earned 2000 total points
ID: 10848466
because of the refresh with meta tag ( not submitting the form ) you can not keep the value entered in a field in your form
It will be much easy if you perform submitting the page with an argument that is understandable as an autorefresh option so when you enter in the code and check if ispostback to change if the page is submitted automatically or not

B..M
0
 
LVL 8

Author Comment

by:gregasm
ID: 10850036
Thank you. I have discovered the same, and am using a ASP Timer control instead. On the elapsed time event, I do a postback instead of a refresh. This gives me the control over the process that I need to control state.
0
 

Expert Comment

by:nsvk_keyan
ID: 11124904
i am using asp.net user control in my application. in that user control i have used
dropdownlist control . when i select value in usercontrol dropdownlist my .aspx page not
changing .if i select usercontrol dropdownl value how to change the .aspx page value ?
0

Featured Post

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
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…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

800 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