
LinkButton | 863
WebControls
Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
LabelControlBuilder
System.Web.UI.WebControls (system.web.dll)
class
The ASP.NET parser uses this class to generate HTML for Label controls on a requested
Web Forms page. You don’t need to use this class directly in application code.
Hierarchy
System.Object ➝ System.Web.UI.ControlBuilder ➝ LabelControlBuilder
LinkButton
System.Web.UI.WebControls (system.web.dll)
disposable
class
This class represents a control that appears like a HyperLink control, but fires a Click and
Command event like a Button control would. A good use of this control is to provide a
hyperlink that navigates to another web page but allows you to perform some
programmatic cleanup (for example, clearing session variables) before you redirect the
user.
Like all button controls, the LinkButton class provides a CausesValidation property you can
set to prevent page validation from occurring when the control is clicked. It also
provides the standard CommandName and CommandArgument properties that allow you to
specify additional information that will be sent to a Command event.
public class LabelControlBuilder : System.Web.UI.ControlBuilder {
// Public Constructors
public LabelControlBuilder();
// Public Instance Methods
public override bool AllowWhitespaceLiterals(); // overrides System.Web.UI.ControlBuilder ...