473,406 Members | 2,620 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Refresh page before redirecting.

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
1 3315
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Tarken | last post by:
Hi, I am trying to do some refactoring of a web site to ensure that it displays in the most web clients possible. One of the pages requires to be redirected to another automatically, for one...
3
by: lozd | last post by:
Would appreciate any solutions people could offer for this. Basically I wan't to use a frameset with an aspx page as the contents rather than a htm page and I'd like to be able to redirect the...
9
by: Paul | last post by:
What I am trying to do is as follows. I have a page with 3 links,that direct the user to 3 different pages when selected after login. So all link selections will first direct the user to a login...
4
by: siaj | last post by:
Hi , I m new to ASP.NET ... I have a submit button on my form which adds an user to the DB. I am facing issue where as after clicking the submit button I refresh the form then duplicate entries...
1
by: craigkenisston | last post by:
Hi, I'm going nuts with a supposed simple thing. I have this page : <%@ Page language="c#" Codebehind="404page.aspx.cs" AutoEventWireup="false" Inherits="mydomain._404page" %> <!DOCTYPE HTML...
4
by: Greg Smalter | last post by:
Redirecting from page to page within a web project is pretty easy. However, all Redirect methods take strings as arguments, as if you mistype the string, you don't find out until run time that you...
4
by: shapper | last post by:
Hello, I am using the following code line in my VB code to redirect to another page inside my web site: Response.Redirect("Message.aspx") I am getting the error: The page isn't redirecting...
19
by: Justin | last post by:
Harlow... i need some help on these... im actually trying to do a page using php... the function is to receive certain parameters from a 3rd party provider... and i need to redirect my page to...
0
by: umamahesh | last post by:
In one of my asp.net applications, I have a page where the user has to enter certain information and then is given a download. The issue is that i am not able to give the download and clear the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.