How to check whether user put a check in a toolbox CheckBox contro

J

JB

Hello

I have an ASP.Net web application written in C#. The html web page has
a CheckBox control taken from the toolbox on it. I want to verify whether
the user put a check in the CheckBox control. I can use either JavaScript or
Codebehind but my question is:

What does the code look like to check whether a user put a check in a
CheckBox control?

JB
 
S

Stan

Hello

    I have an ASP.Net web application written in C#.  The html web page has
a CheckBox control taken from the toolbox on it.  I want to verify whether
the user put a check in the CheckBox control.  I can use either JavaScript or
Codebehind but my question is:

What does the code look like to check whether a user put a check in a
CheckBox control?

    JB

A CheckBox control has a boolean property 'Checked' which can be
tested during postback.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top