Web >> Development >> ASP.Net >> HTML Controls >>  How to use Anchor control

<script runat="server"> Sub Page_Load link1.HRef="http://www.google.com" link1.Target="_blank" link1.Title="Google" link2.HRef="http://www.microsoft.com" link2.Target="_blank" link2.Title="Microsoft" End Sub </script> <body> <form runat="server"> <a id="link1" runat="server">Visit Google!</a> <br /> <a id="link2" runat="server">Visit Microsoft!</a> </form> </body> </html>