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

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top