asp.net - How to save a checkbox checked state as a boolean? -


How to save the checkbox status as a boolean?

asp.NET

  & lt; Asp: checkbox id = "cb" runat = "server" />   

VB

  slow CB like Boolean = CB Checked   

The above code produces the following error:

'Check' is not a member of the bullion

How can the checked status of the check box be changed in a Boolean result?

checked property already provides a boolean , then your question is somewhat misleading.

However, the name of your checkbox is cb , you have used your boolean variable name then you cb.Checked < / Code> wants boolean not checkbox .

If it is already at the top of the page, you can reference it directly:

  is slow box checked Boolean = CB Checked 'There is no need to search references'.   



Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -