?
Solved

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

Posted on 2014-03-02
1
Medium Priority
?
386 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
[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
1 Comment
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 2000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Suggested Courses

762 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