How to Parse Checkbox Input Type Value to String
How to Parse Checkbox Input Type Value to String
(OP)
I currently have this functionality in place for a decimal value, but I also need it for a checkbox. Below is what I have for the decimal value, how can I replicate this for my check box value?
CODE -->
if (decimal.TryParse(txtGift.Value.ToString().Replace("$", ""), out number))//93 { addItemToCart("Gift of ", number); addDonations(number, 93); addOnTotal = addOnTotal + number; }
RE: How to Parse Checkbox Input Type Value to String
If you're working with an Html control I believe the 'value' is the equivalent of the 'Text' property, (see above), so are you really looking for the value of the 'checked' property of an Html checkbox control?
Rhys
"Technological progress is like an axe in the hands of a pathological criminal"
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe"
Albert Einstein