Saturday, April 25, 2009

Multiple Querystring for Url Rewriting Asp.net

How to Handle Multiple Querystring for Url Rewriting in Asp.net

Please go through my earlier article on Url Rewriting.
@Update to my earlier article on Simplest Way to write Url Rewriting

If you have gone through my earlier article

<rewriter>
<rewrite url="~/Article/(.+)-(.+)-(.+).aspx" to="~/DynamicPage.aspx?MyTitleId=$2&CategoryId=$3">
</rewriter>


In Web.Config file you can handle special character by replacing it with its code.
Example in our case we have replace & with &

After making changes to web.config file you need to pass third argument as category Id, and that its. Your code is ready to handle multiple querystring argument.

No comments: