Cannot create an object of type 'System.Boolean'...?

G

Guest

Hi,

I have placed some HTML Input (Radio) controls on my ASP.NET page using
VS.NET 2005.
After I have set these controls to "Run as server control" and try to run my
page I am receiving the error:

"Cannot create an object of type 'System.Boolean' from its string
representation 'checked' for the 'Checked' property."


Thanks in Advanced for any help,
Asaf
 
G

George Ter-Saakov

Look in your HTML it should be something like

<input type="radio" runat=server checked=1>

I believe you only have checked there without assigning 1 to it.

George
 
G

Guest

Thanks for your help Geroge.

Regards,
Asaf

George Ter-Saakov said:
Look in your HTML it should be something like

<input type="radio" runat=server checked=1>

I believe you only have checked there without assigning 1 to it.

George
 
Joined
Jan 19, 2012
Messages
1
Reaction score
0
Help me

<td style="width: 160px; height: 26px; text-align: left;">
Giới tính</td>
<td style="width: 141px; height: 26px;">
&nbsp;<input id="Nam" name="Phai" style="width: 30px" type="radio" checked="CHECKED" runat="server" />Nam
<input id="Nu" name="Phai" style="width: 34px" type="radio" runat="server" />Nữ</td>


Error: checked=" CHECKED"
...
Help me.
Thanks
 

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,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top