POSTBACK CAUSES ORIGINAL URL TO DESPLAY
4 posts
• Page 1 of 1
POSTBACK CAUSES ORIGINAL URL TO DESPLAY
When any control on a page causes postback
it makes rewrited url back to the actual url
for example i am requesting
www.xyz.com/product.htm
and after a click of a button it shows
www.xyz.com/product.aspx
any help appreciated
thank you
it makes rewrited url back to the actual url
for example i am requesting
www.xyz.com/product.htm
and after a click of a button it shows
www.xyz.com/product.aspx
any help appreciated
thank you
Re: POSTBACK CAUSES ORIGINAL URL TO DESPLAY
Hello,
This is actually a normal behavior.
Please try to have the following condition before your rule:
RewriteCond %{REQUEST_METHOD} !^POST
This is actually a normal behavior.
Please try to have the following condition before your rule:
RewriteCond %{REQUEST_METHOD} !^POST
Re: POSTBACK CAUSES ORIGINAL URL TO DESPLAY
i tried with this rule
RewriteCond %{REQUEST_METHOD} !^POST
but no luck
RewriteCond %{REQUEST_METHOD} !^POST
but no luck
Re: POSTBACK CAUSES ORIGINAL URL TO DESPLAY
In page_load i wrote and it does the trick
Dim newPageUrl =Request.ServerVariables("HTTP_X_REWRITE_URL").ToString
Context.RewritePath(System.IO.Path.GetFileName(newPageUrl))
Dim newPageUrl =Request.ServerVariables("HTTP_X_REWRITE_URL").ToString
Context.RewritePath(System.IO.Path.GetFileName(newPageUrl))
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 10 guests