更新时间:2023-02-09 14:14:39
也添加协议。 b $ b< a href =http://www.Test.com>
你必须输入完整的地址,从http://
< a href = http://www.Test.com > 测试< / a >
来自代码:
添加Id
属性和运行at =server
到锚标记为< a id = anchorID runat = server > 测试< / a >
和href
可以在后面的代码中分配为anchorID.Attributes [ href] = http://www.Test.com;
aspx page:-
<p class="l">Copyright © 2016 - <a href="www.Test.com">Test</a> · 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?
Add the protocol also.<a href="http://www.Test.com">
you will have to type the full address starts fromhttp://
<a href="http://www.Test.com">Test</a>
from code behind:
add anId
attribute andrunat="server"
to the anchor tag as<a id="anchorID" runat="server">Test</a>
and thehref
can be assigned in code behind asanchorID.Attributes["href"] = "http://www.Test.com";