NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

HtmlAnchor Control

The HtmlAnchor control allows developers to program against the HTML <a> element. This control must have an opening and closing tag. Developers can use this control to dynamically modify the attributes and properties of the <a> element. They can also write handlers for the OnServerClick event to customize how a Web browser responds to users clicking on a link.

Target values must begin with a letter in the range A-Z or a-z, with the exception of the following special values that begin with an underscore: _blank, _self, _parent, and _top.

ASP+ Syntax

Required properties are noted in boldface type.

<a
   runat=server
   id="programmaticID"
   href="linkurl"
   name="bookmarkname"
   OnServerClick="onserverclickhandler"
   target="linkedcontentframeorwindow"
   title="titledisplayedbybrowser"
>
linktext
</a>

Tasks

Writing Event Handlers for Server Controls

Setting Properties on Server Controls

See Also

Web Forms Controls by Function |