473,324 Members | 2,535 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,324 software developers and data experts.

Response.Redirect not doing anything..

When using Response.Redirect(var) in my code, the browser just shows a
blank page. It works fine on the development machine (winxp) but not on a
server machine (win2k). If I view the code on the page it's..

<BODY><ASP_SMARTNAV_RDIR
url="/iaw/setstartpage.aspx"></ASP_SMARTNAV_RDIR></BODY>

Any ideas ?

-Adrian
Nov 18 '05 #1
4 1409

Looks like SmartNavigation is on in this page. Try setting it Off.

Ethem

"Adrian Parker" wrote:
When using Response.Redirect(var) in my code, the browser just shows a
blank page. It works fine on the development machine (winxp) but not on a
server machine (win2k). If I view the code on the page it's..

<BODY><ASP_SMARTNAV_RDIR
url="/iaw/setstartpage.aspx"></ASP_SMARTNAV_RDIR></BODY>

Any ideas ?

-Adrian

Nov 18 '05 #2
hi,
this error comes when you come to the present page via a server.transfer and
then use response.redirect from this page to go to another page and
SmartNavigation enabled.
You can disable smartnavigation for that page or use a server.transfer.

HTH
srini

"Adrian Parker" wrote:
When using Response.Redirect(var) in my code, the browser just shows a
blank page. It works fine on the development machine (winxp) but not on a
server machine (win2k). If I view the code on the page it's..

<BODY><ASP_SMARTNAV_RDIR
url="/iaw/setstartpage.aspx"></ASP_SMARTNAV_RDIR></BODY>

Any ideas ?

-Adrian

Nov 18 '05 #3
Using server.transfer works a treat.. it also got me past another problem
where some pages weren't formed properly after a refresh.

Many Thanks
Adrian
Nov 18 '05 #4
Hi Adrian,

As the other communitry member mentioned, this is a known issue in the
ASP.NET serverside when page's "SmartNavigation" property is turn on. And
Server.Transfer has limitation since it can only transfer between pages in
the same web application. In case that you do need to use response.redirect
and keep page's smartNavigation turn on, you can use the following work
around:
turn off the smartNavigation programly before use Response.Redirect, for
exampe:

button_click(...)
{
this.SmartNavigation = false;
Response.Redirect(..);
}

Also, generally we recommend not use SmartNavigation by default because
it'll reduce the page's performance. And here is a former thread discussing
on the same problem, you may also have a look for detailed reference:

http://groups.google.com/groups?hl=e...rxEkEEHA.1996%
40cpmsftngxa06.phx.gbl

Hope also helps.Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Nov 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Richard N. | last post by:
Hi, I've had a good google and can't find anything already on this so : I'm currently trying to have a 'Page Loading' page on a site. The way things are supposed to work are : page a...
3
by: Michelle A. | last post by:
What is the difference between the two? I have a page "one" with a button using Response.Redirect("pagetwo.asxp") to go to the next page. On page two I have a button using...
3
by: Sehboo | last post by:
On my ASP page, when I click a button, I want to do three things: 1. Check for some values. 2. Open a new window and pass some values as query string. 3. Redirect to some other page Here...
13
by: Tim | last post by:
Hello, Is there a way to "cancel" a response.Redirect? For example, in the code below, could I insert anything in the Catch statement that would cancel the redirect and resume flow after the...
1
by: csgraham74 | last post by:
i have the following code Response.AddHeader("content-disposition", "attachment; filename=" & str_AccountNo & ".pdf") Response.ContentType = "application/pdf"...
10
by: Niggy | last post by:
I get an error - any help appreciated. System.Threading.ThreadAbortException: Thread was being aborted. at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object...
1
by: Kevin Blount | last post by:
Background: My script is designed to only allow the downloading of a file if a cookie exists to say that someone is logged into my companies site. A colleague set up a test area the extension...
4
by: Martin Robins | last post by:
I have an application which uses Windows Authentication to identify users and ensure that they are on a domain. Once access is granted at this level, I then check their login name against a...
5
by: Doug | last post by:
In the code below, I am trying to go from one asp page to another: For Each tripToAccept As String In tripsToAccept.Split("/"c) dataManager.UpdateTripDetail("Accept", CInt(tripToAccept),...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.