Creating an HTML Anchor Control ( : Anchor « HTML Control « ASP.Net

Creating an HTML Anchor Control (

<%@ Page Language=VB Debug=true %>
<script runat=server>
Sub Anchor_Click(Source As Object, E as EventArgs)
    Anchor1.InnerHtml = "<B>Thanks for clicking " _
        & "the link!</B>"
End Sub
<TITLE>Creating an HTMLAnchor Control</TITLE>
<form runat="server">
<a id="Anchor1" onserverclick="Anchor_Click" runat=server>
Click Me

Related examples in the same category

1.Change label for HTML Anchor Control (
2.HTML Anchor Control: link target (_blank/_self) (
3.HTML Anchor Control: set the url (
4.HTML Anchor Control: set the title (