I recently used HttpContext.Rew ritePath in my global.asx page in asp.net 4.0. The url rewrite worked fine but the was a caveat, when i try to submit the form i got error 404. I realized that the action property of my form was not pointing to the correct url (the most common problem with RewritePath method). So I came up with the following work around. Hope this could help someone who experiencing the same problem.
my first work around......
Search Result
Collapse
2 results in 0.0025 seconds.
Keywords
Members
Tags
-
Handling Form Errors with context.RewritePath
-
URL rewriting and web.config
I am using ASP.net(c#) for my project. In my my project 2 pages are using URL rewriting method by referring this article
URL Rewriting using Intelligencia UrlRewriter Example 1 - Blog Day Afternoon
from my form i used this code.
Response.Redire ct("showdetail s/" + a);
in my Web.config
[code=xml]
<system.webServ er>
<modules runAllManagedMo dulesForAllRequ ests="true">...