Click here to Skip to main content
15,883,940 members
Please Sign up or sign in to vote.
3.22/5 (3 votes)
See more:
aspx page:-

HTML
<p class="l">Copyright &copy; 2016 - <a href="www.Test.com">Test</a> &middot; All Rights Reserved.</p>


href="www.Test.com"
click on Test link and I got something like this :- localhost/www.Test.com



Do you know any solutions?
Posted
Updated 10-Feb-17 4:29am
v4

Add the protocol also.

<a href="http://www.Test.com">
 
Share this answer
 
you will have to type the full address starts from http://

HTML
<a href="http://www.Test.com">Test</a>


from code behind:
add an Id attribute and runat="server" to the anchor tag as
ASP.NET
<a id="anchorID"  runat="server">Test</a>

and the href can be assigned in code behind as
C#
anchorID.Attributes["href"] = "http://www.Test.com";
 
Share this answer
 
v2

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