Solved

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

Posted on 2014-03-02
1
370 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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

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

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
I have a large data set and a SSIS package. How can I load this file in multi threading?
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

911 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now