Java-Style Servlet Mapping In ASP.NET?

  • Thread starter Thread starter pbd22
  • Start date Start date
P

pbd22

using web.xml in java, you can map a friendly url to an unfriendly
string such
as "?processMaster=343-234-23423-2342&processId=144". does anybody know
if there is an ASP.NET compliment to servlet-mapping?

i thank you.
 
Hi,
using web.xml in java, you can map a friendly url to an unfriendly
string such
as "?processMaster=343-234-23423-2342&processId=144". does anybody know
if there is an ASP.NET compliment to servlet-mapping?

i thank you.

There are many ways to do this. The easiest is to use the "urlMappings"
section in the web.config file. However, this is for simple mappings
only. For more complex mapping, google "url rewriting .net", for example:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/urlrewriting.asp

Also, make sure you read these:
http://weblogs.asp.net/jezell/archive/2004/03/15/90045.aspx
and
http://odetocode.com/Blogs/scott/archive/2004/09/22/509.aspx

HTH,
Laurent
 
Back
Top