FORCESELECTION Attribute | ForceSelection Property
Sets or retrieves a value that indicates whether at least one ToolbarCheckButton in a ToolbarCheckGroup must be selected.
Syntax
ASP <tagPrefix:TOOLBARCHECKGROUP FORCESELECTION = sForceSelection ... > Script [ sForceSelection = ] TOOLBARCHECKGROUP.ForceSelection
Possible Values
tagPrefix Required. The element prefix associated with the WebControls namespace (Microsoft.Web.UI.WebControls). A TagPrefix is defined using the directive. sForceSelection System.Boolean that specifies or receives a value that indicates whether at least one TOOLBARCHECKBUTTON must be selected. falseDefault. No TOOLBARCHECKBUTTON has to be selected.true
At least one TOOLBARCHECKBUTTON must be selected.The property is read/write. The property has a default value of false.
Remarks
By setting FORCESELECTION to
true
, at least one TOOLBARCHECKBUTTON within the TOOLBARCHECKGROUP object must be selected by the user. By default, the first TOOLBARCHECKBUTTON is selected.
Example
<%@ import namespace="Microsoft.Web.UI.WebControls" %> <%@ Register TagPrefix="myTB" Namespace="Microsoft.Web.UI.WebControls" Assembly="Microsoft.Web.UI.WebControls, Version=1.0.2.226, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %> <myTB:Toolbar id="tb1"> <myTB:ToolbarCheckGroup ForceSelection="false"> <myTB:ToolbarCheckButton Selected="false" Text="GroupA"> </myTB:ToolbarCheckButton> <myTB:ToolbarCheckButton Selected="false" Text="GroupB"> </myTB:ToolbarCheckButton> </myTB:ToolbarCheckGroup> </myTB:Toolbar>
Applies To
TOOLBARCHECKGROUP
See Also