Solved

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

Posted on 2014-03-02
1
375 Views
Last Modified: 2014-03-12
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
0
Comment
Question by:Tapan Pattanaik
1 Comment
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 500 total points
ID: 39899869
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

0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

772 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