|
-
Jun 18th, 2008, 11:45 AM
#1
[2008] Is there an event when navigating in ASP.NET?
Yeah I know my title may be a little oversimplified.
What I want to know, is how can I detect when a user is naviating to a different page from my ASP.NET application, but them just clicking a standard anchor tag. There is no postback involved so I am not sure if there is actually a valid method without a bunch of weird client side JS wireup to the document unload or something.
The goal is to rewrite HTTPS as HTTP when navigating from a sercure section of the site, to a non secure section. The issue is that there are relative links on the page, so if you are on an HTTPS page, and there is a href link to "../home.htm" it will resolve to HTTPS, which I want to prevent.
Currently I had to change the hrefs all to fully qualified URLs, but that is not the best way to do it, so I want to know how I can do it with relative paths.
I tired some of the events in the global.asax, but they didn't seem to fire off, likely because there is no postback and the ASP.NET runtime is not being invoked for these simple a href links.
Last edited by kleinma; Jun 18th, 2008 at 12:24 PM.
Reason: misspelling in title
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|