I’ve been taking URL arguments in ASP.NET like so:
www.mysite.com/thread.php?id=123
However, I’d like to use the cleaner method that you often see which looks like:
www.mysite.com/thread/123
How can I do this (get the arguments) in ASP.NET? What’s the usual procedure for setting up a system like this?
What that is called, is Url Rewriting. If you are using the ASP.NET-MVC Framework, you get this behavior by default, along with a design pattern that helps make developing it easier.
If you’re trying to shoehorn this onto an existing application, I recommend that you look into some url rewriting modules.