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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Page refresh after updating database

Status
Not open for further replies.

JohannIcon

Programmer
Sep 3, 2002
440
MT
I have an ASP page which is doing a simple update in the database, and then I am re-directing to the same ASP. My problem is that although the table is being updated, the form data is still the old form data. When pressing the PF5 button (Refresh) the new and correct data is displayed in these fields. What I wish to know is how can I do that automatically, without pressing the PF5 key?

Thanks for your help
 
Thanks shiggyshag, I tried it but it did not work. Now I have done a piece of Javascript code, location.reload() which is working fine, however I have 2 problems

1) I wish to get rid of the alert box which pops up and the user has to press RETRY so that the page re-loads

2) My form fields are loosing their attributes. When the user modifies the fields, I wish that when the user presses MODIFY button, these become readonly and disabled, however when I inserted the location.reload(), they are not changing to these attribs
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top