Victor Gavrilovic
Victor Gavrilovic

Reputation: 61

Check checkbox in asp.net

How can I check whether the checkbox is checked or not in ASP.NET?

Default.aspx

<div class="check_all">
 <label class="container">
   Web Design
   <asp:CheckBox ID="CheckBox" runat="server"/>
   <span class="checkmark"></span>
 </label>
 <label class="container">
   Web Development
   <asp:CheckBox ID="CheckBox1" runat="server"/>
   <span class="checkmark"></span>
 </label>
 <label class="container">
   App Design
   <asp:CheckBox ID="CheckBox2" runat="server" />
   <span class="checkmark"></span>
 </label>
</div>

Upvotes: 1

Views: 1140

Answers (1)

SBFrancies
SBFrancies

Reputation: 4230

You need to use the Checked property of the CheckBox control. See this page for the documentation with code examples.

Upvotes: 1

Related Questions