Articles → .NET → URL Mapping in ASP.NET

URL Mapping in ASP.NET











http://Yoursite/ProductsByCategory.aspx?CategoryID=1&CategoryName=Beverages




http://Yoursite/Beverages.aspx





Implementation




•  Add

•  Set

•  Put

•  Add

•  Add


Code


<configuration>   …
  <system.web>		  
      …
        <urlMappings enabled="true">
	        <add url="~/Beverages.aspx" mappedUrl="~/ProductsByCategory.aspx?CategoryID=1&CategoryName=Beverages" />  
        </urlMappings>	   
       … 
  </system.web>
  …
</configuration>




Posted By  -  Karan Gupta
 
Posted On  -  Monday, November 15, 2010

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250