Regarding my previous question, suppose the following scenario:
I have a ASP.Net Webforms site (www.example.com) with 2 pages: default.aspx and result.aspx.
- In
result.aspxI have a label: “Result page” - In
default.aspxI have a text box and a button
The user types in his custom phrase (Custom_User_Input_Text) in the textbox and hits the submit button.
Now I want the user to be redirected to an “on the fly” generated page at: www.example.com/Custom_User_Input_Text which is actually result.aspx. (The user sees “Result page”).
Simply put, I’d like to be able to do url rewriting programmatically.
P.S I’m not the type of guy who asks for code. But I don’t have a clue where to start.
When you have IIS 7 the route to travel is the
HttpHandler.If that is enough clue to start with, then we leave it with this, otherwise leave a comment.
PS. Do make sure, that the
Managed pipeline modesetting (IIS-> Application Pools) is onIntegrated mode, so IIS passes all requests to your app.