Refresh page before redirecting.

G

Guest

I have a page with a MultiView control. The page finishes by running a report
(via a page redirect).
Because there is often a delay with ReportsServer, I want to display a
"final" view of "Report is loading please wait..." with a user-selectable
hyperlink to the report (in case of timeout).

My problem is, the re-direct kicks in immediately and the final View isn't
displayed.

Me.ControlDocHyperLink.NavigateUrl =
"~/secure/report_viewer.aspx?report=%2fLiberty%2f012+Control+document&pass_id=" & Me.NewPassListBox.SelectedValue.ToString

Me.MultiView1.ActiveViewIndex = 4 '# does not appear..


Response.Redirect("~/secure/report_viewer.aspx?report=%2fLiberty%2f012+Control+document&pass_id=" & Me.NewPassListBox.SelectedValue.ToString, False)

Any ideas? I thought I could remove the redirect command in code and change
the page's META tag to REFRESH with a short timer instead, but I can't find
how to do this.
 
G

Guest

Found what I needed on Google.

Replace the redirect with:-

Response.AppendHeader("Refresh", "3; URL=whatever.aspx)

Which then allows the page to be refreshed at the client browser, then 3
seconds later moves on to the next page.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top