Need Value support for <asp:CheckBox>

  • Thread starter Thread starter Chaprasi
  • Start date Start date
C

Chaprasi

hey guys

How can I get a value property for the checkbox, I don't want to use
the checkbox list.

Help is appreciated.

Thanks,
Chaprasi Bhai
 
Do you want to know if it's checked or not? Use the .Checked property

Or are you trying to get its name?
 
I already have the checked and name property, I need to add another
property with "Value".
 
I would use an Html Checkbox, running as a server control

<input type="checkbox" runat="server" id="CheckBox1" value="bar" />

it doesn't create a label like an asp:checkbox does, so you'll have to
do this manually

you can use CheckBox1.Value
 

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

Back
Top