Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Build Your Own ASP.NET 2.0 Web Site Using CSharp And VB (2006) [eng]-1.pdf
Скачиваний:
142
Добавлен:
16.08.2013
Размер:
15.69 Mб
Скачать

Appendix A: Web Control Reference

HtmlAnchor Control

When an HTML anchor tag <a> is given a runat="server" attribute, it becomes accessible through code as an HtmlAnchor control.

Properties

Attributes

a collection of the element’s attribute names and their

 

values

Disabled

if set to True, the control will be disabled

Href

contains the control’s link URL

ID

contains the control’s ID

InnerHtml

contains the content between the element’s opening

 

and closing tags

InnerText

contains the text between the element’s opening and

 

closing tags

Name

the name of the anchor

Style

contains the control’s CSS properties

TagName

returns the element’s tag name

Target

contains the target window or frame to be opened

Title

contains the link’s title

Visible

if set to False, the control won’t be visible

Events

 

ServerClick

raised when the user clicks the link

HtmlButton Control

The HtmlButton control corresponds to the <button runat="server"> HTML tag.

644