Last post Jan 11, 2008 10:16 AM by Zath
Jan 11, 2008 08:39 AM|Zath|LINK
I inherited a site and never did much UrlReWriting.
I placed a button on a page and the postback is messing up the rewriting.
I need a session set.
Or, I put a hyperlink on there and placed a querysting in there but the page won't read it due to the urlReWriting.
I am at a lose here and need some input.
I even tried to set a session in the module if it found my querystring but that didn't work.
Here's the code for the module:
Jan 11, 2008 09:57 AM|Ryoushin|LINK
there's a tricky way to do that by using ASP.Net 2.0 Control Adapters, it's weel exposed on a part of this article by ScottGu:
Relevant sample code can be downloaded here:
Bottom line is: when your form (runat=server) gets rendered it uses "Request.Path" url for its action property, it has to point to "Request.RawUrl" instead.
Hope it helps.
Jan 11, 2008 10:16 AM|Zath|LINK
Thanks for the info but I got it all sorted out!
Didn't realized that I needed to add the querysting value to the actual url and not the rewritten one.
Guess I needed sleep LOL.....