Click here to Skip to main content
15,889,863 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How I solve below problem???

Suppose when I choose a city from drop-down-list, the URL look like "www.myproject.com/Delhi.aspx"

then into the Delhi.aspx page when I choose a hyperlink [named Hello] then the URL look like "www.myproject.com/Delhi/Hello.aspx"
Posted
Comments
Abhishek Pant 30-May-14 7:31am    
use Urlrewriting and routing
Easy URL rewriting in ASP.NET 4.0 web forms[^]
ZurdoDev 30-May-14 7:50am    
I would suggest posting as the solution.
Abhishek Pant 30-May-14 7:51am    
thanks for support RyanDev
[no name] 30-May-14 8:09am    
Unsolved. :(
Abhishek Pant 30-May-14 8:11am    
give path as www.myproject.com/Delhi.aspx to hyperlink navigation url after routing is done.
will redirect to correct page as www.myproject.com/Delhi/Hello.aspx

1 solution

use Urlrewriting and routing

Easy URL rewriting in ASP.NET 4.0 web forms[^]
 
Share this answer
 
Comments
[no name] 30-May-14 8:12am    
I want to click something that added in the url.
1st : "www.myproject.com/Delhi.aspx"

2nd : "www.myproject.com/Delhi/Hello.aspx"
Abhishek Pant 30-May-14 8:41am    
Yes, you can redirect to any page with new url created. by the way if you use extention, doesn't helps you in seo of page , its just like a normal url
[no name] 30-May-14 8:47am    
I have a project on seo website. how to send the ID by choosing from drop-down-list?

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