Click here to Skip to main content
15,889,200 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
http://inventorsrealty.com/ViewDetailsProject.aspx?propid=198[^]

is my url and i want to rename it to inventorsrealty.com/properties-gigevilla-karanjade.How can I achieve this?
Posted
Comments
Ankur\m/ 17-Jan-14 3:43am    
Google for 'ASP.NET url rewriting' and go through the articles/tutorials.

 
Share this answer
 
in your web.config file add the following


<urlMappings enabled="true">
<add url="~/Page1" mappedUrl="~/Login.aspx" />
</urlMappings>


here login.aspx is the url to be mapped and Page1 is url name into which mapping is done.
when u call Response.Redirect("Login.aspx"); instead call Response.Redirect("Page1")and same applies everywhere
this is the simplest way to map url
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900