Ajax Mutually Exclusive Checkbox Extender

Ratings:
(4)
Views: 227
Banner-Img
Share this blog:

Mutually Exclusive Checkbox Extender

This control is used with checkboxes to provide multiple options to the user using checkboxes and allow the user to select only one or none. Properties TargetControlID: Key: Used to specify a group name for checkboxes so that a set of mutually exclusive checkBoxExtenders will be treated as one group and allows the user to select only one or more from the group. Example The following Example demonstrates how to use mutually

Exculsive CheckBOXExtender Control

Add a page to the website and then place a Toolkit Script manager & three checkboxes on it and set their ID’s as C1, C2, &C3 respectively. Also set a caption for all three checkboxes. Within HTML source of the page drag & drop three mutuallyExclusiveChackBoxExtender control and set following properties for it. <asp : MutuallyExtensivecheck Box Extender ID=”MutuallyExclusivecheckBoxExtender1” runat=”server” TargetControlID=”C1” key=”MyGroup”> </asp : MutuallyExculsivecheckBoxExtender> <asp:MutuallyExclusiveCheckBoxExtender2 Id=”MutuallyExclusiveCheckBoxExtender2” runat=”server” TargetControlID=”C2” Key=”mygroup”> </asp: MutuallyExclusivecheckboxExtender> <asp: MutuallyExclusiveCheckBoxExtener ID=” mutually Exclusive CheckBoxExtender3” runat=”server” TargetControlID=”c3” Key=”MyGroup”> </asp:MutuallyExclusiveCheckBoxExtender> At runtime among these three checkboxes you can select only one or none, which is not possible with radio buttons.

You liked the article?

Like: 0

Vote for difficulty

Current difficulty (Avg): Medium

EasyMediumHardDifficultExpert
IMPROVE ARTICLEReport Issue

About Author

Authorlogo
Name
TekSlate
Author Bio

TekSlate is the best online training provider in delivering world-class IT skills to individuals and corporates from all parts of the globe. We are proven experts in accumulating every need of an IT skills upgrade aspirant and have delivered excellent services. We aim to bring you all the essentials to learn and master new technologies in the market with our articles, blogs, and videos. Build your career success with us, enhancing most in-demand skills in the market.

Stay Updated
Get stories of change makers and innovators from the startup ecosystem in your inbox