So what i'm aiming for is a way so I can rewrite the uri from a querystring into a standard url and when posted back to interprete the posback url into a querystring. I'm not sure this is the way to go but PHPers call it a mod rewrite.
Try using the RewritePath method associated with the HttpContext class. When used in an HttpModule, it allows you to modify the incoming URI so that, say, the elements of the path can be converted to querystring values. HTH
Bruce Johnson [.NET MVP]
http://www.objectsharp.com/blogs/Bruce
This might be a naive question, but why would you want to do it on the way out. Instead of having the links built using querystring, create them using the directory structure you would expect anyone to use. When clicked, the links will get translated to a querystring
by the RewritePath logic. Or have I missed something simple here.
Bruce Johnson [.NET MVP]
http://www.objectsharp.com/blogs/Bruce
None
0 Points
41 Posts
how to loose the querystring by using a mod rewrite in ASP.NET
Jan 06, 2004 07:17 AM|Opmaat|LINK
---------------------------------------------
architect , developer, service provider
http://www.opmaat.be
None
0 Points
206 Posts
Re: how to loose the querystring by using a mod rewrite in ASP.NET
Jan 06, 2004 11:11 AM|BruceJohnson|LINK
http://www.objectsharp.com/blogs/Bruce
None
0 Points
41 Posts
Re: how to loose the querystring by using a mod rewrite in ASP.NET
Jan 06, 2004 02:55 PM|Opmaat|LINK
---------------------------------------------
architect , developer, service provider
http://www.opmaat.be
None
0 Points
206 Posts
Re: how to loose the querystring by using a mod rewrite in ASP.NET
Jan 07, 2004 03:16 PM|BruceJohnson|LINK
http://www.objectsharp.com/blogs/Bruce
None
0 Points
41 Posts
Re: how to loose the querystring by using a mod rewrite in ASP.NET
Jan 07, 2004 05:47 PM|Opmaat|LINK
---------------------------------------------
architect , developer, service provider
http://www.opmaat.be