Radiobuttonlist and CheckBoxList controls not rendering.

M

Marty

I am using:
VS2005 Pro
WinXP Pro SP2
IIS 5.1
..NET Framework 2.0.50727

I create a website using File>New>Web Site>ASP.NET.
I put a ListBox, DropDownList, CheckBoxList and RadioButtonList on the
default page.
Compile the page and surf to it using IE or Firefox (I get the same
results with both)
When the page renders I see the ListBox and the DropDownList but the
other two are not there.
When I view the page source code I get:

<div>
<select size="4" name="ListBox1" id="ListBox1"
style="background-color:#00C0C0;">

</select>
<select name="DropDownList1" id="DropDownList1"
style="background-color:#8080FF;">

</select>

</div>

No sign of the other 2 controls
I have tried reinstalling IIS, and the .net framework.

Anybody have a solution? I have been trying alot of things that were
returned doing searches from the Microsoft knowledge base. Still No
Luck.
 
J

Jim in Arizona

Marty said:
I am using:
VS2005 Pro
WinXP Pro SP2
IIS 5.1
.NET Framework 2.0.50727

I create a website using File>New>Web Site>ASP.NET.
I put a ListBox, DropDownList, CheckBoxList and RadioButtonList on the
default page.
Compile the page and surf to it using IE or Firefox (I get the same
results with both)
When the page renders I see the ListBox and the DropDownList but the
other two are not there.

When you drag and drop the four controls onto the web form, what does
the source code look like in the visual studio IDE?
 
M

Marty

Jim said:
When you drag and drop the four controls onto the web form, what does
the source code look like in the visual studio IDE?

Here is the page source:

<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ListBox ID="ListBox1" runat="server"
BackColor="#00C0C0"></asp:ListBox>
<asp:DropDownList ID="DropDownList1" runat="server"
BackColor="#8080FF">
</asp:DropDownList>
<asp:CheckBoxList ID="CheckBoxList1" runat="server"
BackColor="#80FF80">
</asp:CheckBoxList>
<asp:RadioButtonList ID="RadioButtonList1" runat="server"
BackColor="#FFC080">
</asp:RadioButtonList></div>
</form>
</body>
 
J

Jim in Arizona

Marty said:
Here is the page source:

<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ListBox ID="ListBox1" runat="server"
BackColor="#00C0C0"></asp:ListBox>
<asp:DropDownList ID="DropDownList1" runat="server"
BackColor="#8080FF">
</asp:DropDownList>
<asp:CheckBoxList ID="CheckBoxList1" runat="server"
BackColor="#80FF80">
</asp:CheckBoxList>
<asp:RadioButtonList ID="RadioButtonList1" runat="server"
BackColor="#FFC080">
</asp:RadioButtonList></div>
</form>
</body>

Maybe you should try putting some ListItme within your CheckBoxList and
RadioButtonList.

<asp:CheckBoxList ID="CheckBoxList1" runat="server" BackColor="#80FF80">
<asp:ListItem>Test1</asp:ListItem>
<asp:ListItem>Test2</asp:ListItem>
</asp:CheckBoxList>

<asp:RadioButtonList ID="RadioButtonList1" runat="server"
BackColor="#FFC080">
<asp:ListItem>Test1</asp:ListItem>
<asp:ListItem>Test2</asp:ListItem>
</asp:RadioButtonList></div>
 
M

Marty

Jim said:
Maybe you should try putting some ListItme within your CheckBoxList and
RadioButtonList.

<asp:CheckBoxList ID="CheckBoxList1" runat="server" BackColor="#80FF80">
<asp:ListItem>Test1</asp:ListItem>
<asp:ListItem>Test2</asp:ListItem>
</asp:CheckBoxList>

<asp:RadioButtonList ID="RadioButtonList1" runat="server"
BackColor="#FFC080">
<asp:ListItem>Test1</asp:ListItem>
<asp:ListItem>Test2</asp:ListItem>
</asp:RadioButtonList></div>

That worked
Thanks!
I had plans of adding those at runtime.
When I checked the page to see if I like the alignment they weren't
there.
Have been chasing my tail ever since.
 

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

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,046
Latest member
Gavizuho

Latest Threads

Top