<a>
tag on the server.
For example,
<a id="link1" runat="server">The executable code itself has been moved outside the HTML and put in the section
<script runat="server">The
Page_Load
event is triggered when a page loads.
It manipulates the following attributes of the HtmlAnchor:
HRef
, which gets or sets the URL target of the link specified in the HtmlAnchor server control
Target
, which gets or sets the target window or frame to load web page content into
Title
, which gets or sets the ToolTip
text displayed when the mouse pointer is placed over the HtmlAnchor control
demo_htmlanchor.aspx |
Web |
|
---|---|---|
|