drop an HtmlInputRadioButton on a blank page.
Set runat=server
set checked=checked
the following asp html code is generated:
<
input id="Radio1" type="radio" checked="checked" runat"server"/>browse the form.
the following error occurs
Parser Error Message: Cannot create an object of type 'System.Boolean' from its string representation 'checked' for the 'Checked' property.
change the html to
<input id="Radio1" type="radio" checked="true" runat"server"/>
the following XHTML validation error is genrated:
Error 5 Validation (XHTML 1.0 Transitional): The values permitted for this attribute do not include 'true'.
But the page renders properly when browsed

Bug HtmlInputRadioButton ???
Lo, Kuei-yang
I am sorry, but I dont understand your response. I have two radio buttons, I want the first checked by default.
How would I code that in the Asp Html
mikelyc
Hi!
Thanks for asking! I'm a member of the ASP.NET team, and was just popping over here to see what was going on. The best place to ask ASP.NET questions is over on the ASP.NET forums at
http://www.asp.net/welcome.aspx tabindex=1&tabid=39HTML is a little silly on this one, it's not checked="true" as you and I would suspect, but instead its checked="checked".
HTH,
PEte
B.Lee
and thats the problem. . .
<
input id="Radio1" type="radio" checked="checked" runat"server"/>browse the form.
the following error occurs
Parser Error Message: Cannot create an object of type 'System.Boolean' from its string representation 'checked' for the 'Checked' property.
Vimal@.Net
Are you sure that it is occuring on that line I just tried the exact same thing and everythign worked fine.
The parser does not do anything to HTML control (as this one is) and only modifies web controls (<asp: etc)
cyberwalder
Dear Blair Allen Stark,
If you insist not to set value of "checked" attribute then this will solve your problem.
when writing HTML code you will only need to specify the checked attribute without assigning some value to it.
Best Regards,
Muhammad Irfan Azam
Michael K. Barnett
WOO-HOOO! I found a bug instead of someone finding one in mine!!!
cheers!
orangy
even with runat=server
again I change the html to checked=true and the doc validator complains but the aspx processes.
Not at the computer I can test against.
you know. . . I was doing a local file system site too. . . give me a few hours and I will give you an update.
thanks for looking into it.
TommY_R
Sorry, I completely missed that!
After plugging it into VWD, yes, it does render in error when you give it checked="checked", but you can set it to checked="true". You'll get the validation error, but that doesn't block you from running it, or other validation errors.
It would be awesome if you'd file a bug at the product feedback center (http://lab.msdn.microsoft.com/productfeedback/Default.aspx) so we can track the bug and get it fixed in a future version.
Thanks,
PEte