Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Wrong textbox.text values at form submit

Status
Not open for further replies.

Gruuka

Programmer
Aug 27, 2006
24
NL
Hey all, I have a problem with a form that i am submitting here's what's going on:
- A gridview is populated with values and html textbox controls varying on sql column data types (this happens on each page_init) the gridview's viewstate along with those controls is disabled
- when the submit button is pressed it loops trough all the gridview rows (they got repopulated with correct textbox.text values) and a dynamic update query is constructed + transmitted

This works but when I revisit the form (via a display list) the textbox value's get the value before the earlier postback occurred (altough this can't happen since I double checked the values and the right ones are updated/retrieved in the database). Once I used a manual refresh (f5) the correct value is shown in the textbox.

I hope that I explained this problem clear enough, help would be appriciated :)
 
The first page that is visted in order to get to form I was talking about is a gridview that has links to the editpage.
 
Sounds like a caching issue. Either your browser or your server is caching the page.
 
My guess is your browser since F5 corrects it, but that could be a timing issue with the server. Change your browser to update on every page view instead of automatically and see if that helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top