hello which option is better to use in hyperlink's NavigateUrl property..
to write like NavigateUrl="default.aspx" , NavigateUrl ="cart.aspx" n so on...
or i should like the path wich displays in the web browser like:
NavigateUrl ="http://localhost:2918/AJAXEnabledWebSite2/default.aspx"
NavigateUrl ="http://localhost:2918/AJAXEnabledWebSite2/cart.aspx"
Which option is better for hyperlink path?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Kirtan PatelRank #292 · 8.6K reputationPosted Oct 23, 2009, 10:33 AM EDT
you should use relative path like below
~/cart.aspx
~/products.aspx
if your page is in some directory then
~/products/production.aspx
please check "do you like this answer" :)
Roei BarRank #1,271 · 1.4K reputationPosted Oct 23, 2009, 12:30 PM EDT
using relative url is always better in order to make sure your link will work without changes if you change domains on the way. and another thing is that its better for Search Engines since they are checking the Links as well for ranking sites, and a site with internal links insted of external ones has a higher rank