Java-Style Servlet Mapping In ASP.NET?

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.
 
L

Laurent Bugnion

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top