asp:HyperLink with NavigateURL (VB.net) : Hyperlink « Asp Control « ASP.Net






asp:HyperLink with NavigateURL (VB.net)

<%@ Page Language=VB Debug=true %>
<script runat=server>
Sub Page_Load(ByVal Sender as Object, ByVal E as EventArgs)
    imgMyImage.AlternateText = "Hover Text"
    imgMyImage.ImageUrl = "http://www.java2s.com/style/logo.png"
End Sub
</SCRIPT>
<HTML>
<HEAD>
<TITLE>HyperLink and Images Sample Page</TITLE>
</HEAD>
<BODY>
<form runat="server">
<Font Face="Tahoma" Size="+1">
<asp:HyperLink 
    id="hyp1"
    runat="server"
    Text="Click to go to www.java2s.com"
    Target="New"
    NavigateURL="http://www.java2s.com"
/>
<asp:HyperLink 
    id="hyp2"
    runat="server"
    Text="Click to go to Google"
    ImageURL="http://www.java2s.com/style/logo.png"
    Target="New"
    NavigateURL="http://www.google.com"
/>
<BR><BR>
<asp:Image 
    id="imgMyImage" 
    runat="server"
/>
</Font>
</Form>
</BODY>
</HTML>
           
       








Related examples in the same category

1.Displaying a Graphic on a HyperLink Control (VB.net)
2.asp:HyperLink: border style and width (VB.net)
3.Hyperlink: command name and url (VB.net)
4.asp Hyperlink button (C#)
5.asp hyperlink: font, width and text (C#)