473,386 Members | 1,821 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Radiobuttonlist and CheckBoxList controls not rendering.

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.

Oct 12 '06 #1
4 2402
Marty wrote:
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?
Oct 12 '06 #2

Jim in Arizona wrote:
Marty wrote:
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?
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>

Oct 13 '06 #3
Marty wrote:
Jim in Arizona wrote:
>Marty wrote:
>>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?

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>
Oct 13 '06 #4

Jim in Arizona wrote:
Marty wrote:
Jim in Arizona wrote:
Marty wrote:
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?
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>
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.

Oct 13 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Egbert | last post by:
I use a System.Web.UI.WebControls.CheckBoxList object to fill a list. I need to label groups of checkboxes in the list by Category (Determined dynamically from the database) at runtime. Is it...
4
by: dm_dal | last post by:
Is there a know issue surrounding the CheckBoxList control and it's viewstate? When my control is created, it's ListItems are checked as needed, but on a postback, they loose their Selected...
3
by: Elad Volpin | last post by:
Can someone please explain this: I created a new webform with a PlaceHolder and a Button. My Page_Load contains the following code: private void Page_Load(object sender, System.EventArgs e)...
0
by: Nobody | last post by:
CheckBoxList and RadioButtonList have the same inheritence tree: -INamingContainer -IPostBackDataHandler -IRepeatInfoUser --ListControl ----WebControl ------Control --------IComponent...
3
by: Jack Black | last post by:
Using VS.Net 2k3 to build ASP.Net app with VB code-behind pages... Hi, all! I've been struggling with getting a dynamically-generated CheckBoxList generated. I've finally been able to get the...
3
by: Dune | last post by:
Hi, Is there anyway to get the datavaluefield from a databound checkboxlist using javascript? If not, is there any way to associate a custom attribute with the databound checkboxlist items so...
4
by: tshad | last post by:
Is there a to change just one radio button in a list just after DataBinding but before send the page to the user? For example: RFPServiceTypes.DataSource =...
4
by: juststarter | last post by:
Hello, I have an aspx file where i've put a placeholder element. On load (page_load) i create dynamically an html table which contains a checkbox and a radiobuttonlist in each tablerow . The...
3
by: Gummy | last post by:
Hello, I know I can use a Checkboxlist or a RadioButtonList to easily create a list based on the data passed to it. But using what if I wanted to use the same data and based on the data,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.