Redirect to the a page after 5 seconds of "record updated successfully" message

Tapan Pattanaik
Tapan Pattanaik used Ask the Experts™
on
Hi experts,

I have a gridview  (page1.aspx)  which will display all records in table. Inside gridview I have an edit button for each record. when the user click on edit button it will redirect to a page (page2.aspx) where user can edit the records. After editing when the user click the submit button ,it will display "record updated successfully" and redirect to the page1.aspx after 5 seconds.

How will I achieve (i.e redirect to the page1.aspx after 5 seconds of "record updated successfully" message which is  display in a lable in page1.aspx
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Senior Systems and Integration Developer
Commented:
You would need to drop a small piece of javascript into the page as part of the response. Something like:
window.setTimeout('location.href="page1.aspx"', 5000);

Open in new window

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial