I'm using code in the Application_BeingRequest() handler of my Global.asax to do some very primitive URL Rewriting. That works fine, however I'm having issues fetching the rewritten url in JavaScript.
So using URL Rewriting 'www.mydomain.com/dothis' becomes 'www.mydomain.com/?action=dothis' on the server side. Using ASP.Net and Request.QueryString["action"], I get the expected result of 'dothis'. JavaScript, of course, still sees 'www.mydomain.com/dothis' because that's what is displayed in the browser.
I don't suppose there is a way for JavaScript to see the actual page url, even though it's not displayed in the address bar?