
HyperLinkControlBuilder | 859
WebControls
Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
Hierarchy
System.Object ➝ System.Web.UI.Control(System.ComponentModel.IComponent, System.
IDisposable, System.Web.UI.IParserAccessor, System.Web.UI.IDataBindingsAccessor)
➝
WebControl(System.Web.UI.IAttributeAccessor) ➝ HyperLink
HyperLinkColumn
System.Web.UI.WebControls (system.web.dll)
class
The HyperLinkColumn class represents a column that can be used in a DataGrid control. To
have a column with the same hyperlink in every row, you can set Text (the displayed
anchor text) and NavigateUrl (the link destination). Alternatively, you can bind a data
field to the DataTextField and DataNavigateUrlField properties (which will then take prece-
dence over any set values for the Text and NavigateUrl properties). Typically, this
information will be specified by using a data binding expression in a template defini-
tion in the .aspx file.
Additionally, you can set the Target property to indicate the target window or frame
name for the hyperlink. You can also use the DataTextFormatString property to provide a
custom format string to use with the DataTextField property.
Hierarchy
System.Object ➝ DataGridColumn(System.Web.UI.IStateManager) ➝ HyperLinkColumn
HyperLinkControlBuilder
System.Web.UI.WebControls (system.web.dll)
class
The ASP.NET parser uses ...