I’m experiencing a frustrating issue with asp.net.
- Open a fresh browser (cleared history, temp files etc…)
- Load http://www.mysite.com/page.aspx?anystring=1234
- The page will load as http://www.mysite.com/page.aspx. The querystring will be gone. Something redirected and deleted it.
But:
- Open a fresh browser (cleared history, temp files etc…)
- Load any page on http://www.mysite.com.
- Load http://www.mysite.com/page.aspx?anystring=1234
- the querystring is preserved and page.aspx?anystring=1234 loads with the correct values.
If http://www.mysite.com/page.aspx?anystring=1234 is the first page a user tries to open, the querystring is removed by what looks like a redirect. It doesn’t matter what code is on the page or code behind.
Any ideas?
Cookie based session management in ASP.Net will write a cookie and redirect to see if it gets a cookie back. I have not experienced this eating URL parameters before but this is one thing that does a redirect on first page view.