By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,979 Members | 951 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,979 IT Pros & Developers. It's quick & easy.

Refresh page before redirecting.

P: n/a
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.
Aug 31 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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.

"Richard Clark" wrote:
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.
Aug 31 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.