Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Framework Versions -- Response.Redirect 1

Status
Not open for further replies.

keithmyers

IS-IT--Management
Jan 17, 2003
141
US
We have two servers and one is running the .NET framework version 1.0.3705 and the other one is running version 1.1.4322. My developers are saying that the code on both servers are identical, however, the server running 1.1.4322 will not do a response.redirect properly. The same code works on the server running 1.0.3705. There is no error message, just a blank screen. If I do a view source on the blank screen, I see this line of code:

<BODY><ASP_SMARTNAV_RDIR url=&quot;/lds/display.aspx?bAccept=1&pid=51540&empID=461&quot;></ASP_SMARTNAV_RDIR></BODY>

Does anyone have any insight??!?
Thanks
-Keith-
 
It appears as though smartNavigation is causing the problem. Here is a link to a usergroup thread I found on Google's Groups Search:


Looks like you are going to have to set smartNavigation=False to use a response.redirect...

Personally, I don't think the feature is all that grand, anyway, so it's not too much of a loss.

If that isn't an option, then you might try a server.transfer (but it has issues of its own).

If that doesn't sound good, then you could always do a client redirect by writing

<script language=javascript>location='mypage.aspx'</script>

to a label on your page... but that's a bit of a hack.

hth.

-paul
penny1.gif
penny1.gif

The answer to getting answered -- faq855-2992
 
Awesome! That worked. We were pulling our hair out!

Thanks
-Keith-
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top