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="backgrou nd-color:#00C0C0;" >
</select>
<select name="DropDownL ist1" id="DropDownLis t1"
style="backgrou nd-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. 4 2413
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?
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>Untitl ed Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ListBox ID="ListBox1" runat="server"
BackColor="#00C 0C0"></asp:ListBox>
<asp:DropDownLi st ID="DropDownLis t1" runat="server"
BackColor="#808 0FF">
</asp:DropDownLis t>
<asp:CheckBoxLi st ID="CheckBoxLis t1" runat="server"
BackColor="#80F F80">
</asp:CheckBoxLis t>
<asp:RadioButto nList ID="RadioButton List1" runat="server"
BackColor="#FFC 080">
</asp:RadioButton List></div>
</form>
</body>
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>Untitl ed Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ListBox ID="ListBox1" runat="server"
BackColor="#00C 0C0"></asp:ListBox>
<asp:DropDownLi st ID="DropDownLis t1" runat="server"
BackColor="#808 0FF">
</asp:DropDownLis t>
<asp:CheckBoxLi st ID="CheckBoxLis t1" runat="server"
BackColor="#80F F80">
</asp:CheckBoxLis t>
<asp:RadioButto nList ID="RadioButton List1" runat="server"
BackColor="#FFC 080">
</asp:RadioButton List></div>
</form>
</body>
Maybe you should try putting some ListItme within your CheckBoxList and
RadioButtonList .
<asp:CheckBoxLi st ID="CheckBoxLis t1" runat="server" BackColor="#80F F80">
<asp:ListItem>T est1</asp:ListItem>
<asp:ListItem>T est2</asp:ListItem>
</asp:CheckBoxLis t>
<asp:RadioButto nList ID="RadioButton List1" runat="server"
BackColor="#FFC 080">
<asp:ListItem>T est1</asp:ListItem>
<asp:ListItem>T est2</asp:ListItem>
</asp:RadioButton List></div>
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>Untitl ed Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ListBox ID="ListBox1" runat="server"
BackColor="#00C 0C0"></asp:ListBox>
<asp:DropDownLi st ID="DropDownLis t1" runat="server"
BackColor="#808 0FF">
</asp:DropDownLis t>
<asp:CheckBoxLi st ID="CheckBoxLis t1" runat="server"
BackColor="#80F F80">
</asp:CheckBoxLis t>
<asp:RadioButto nList ID="RadioButton List1" runat="server"
BackColor="#FFC 080">
</asp:RadioButton List></div>
</form>
</body>
Maybe you should try putting some ListItme within your CheckBoxList and
RadioButtonList .
<asp:CheckBoxLi st ID="CheckBoxLis t1" runat="server" BackColor="#80F F80">
<asp:ListItem>T est1</asp:ListItem>
<asp:ListItem>T est2</asp:ListItem>
</asp:CheckBoxLis t>
<asp:RadioButto nList ID="RadioButton List1" runat="server"
BackColor="#FFC 080">
<asp:ListItem>T est1</asp:ListItem>
<asp:ListItem>T est2</asp:ListItem>
</asp:RadioButton List></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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 possible to group checkboxes in 1 CheckboxList?
Something like this:
*************************
|
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 status.
David
|
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)
{
ListControl l = null;
ListItem item = new ListItem("a", "b");
|
by: Nobody |
last post by:
CheckBoxList and RadioButtonList have the same inheritence tree:
-INamingContainer
-IPostBackDataHandler
-IRepeatInfoUser
--ListControl
----WebControl
------Control
--------IComponent
----------IDisposable
|
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 list
generated, but now there are two problems I haven't been able to
overcome:
1) ASP.Net is munging the checkbox ID/Names of the checkboxes: I...
| |
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 that the custom attribute can be accessed using
javascript?
Cheers
|
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 = myDbObject.RunProcedure("GetRFPServiceTypes",
parameters)
RFPServiceTypes.DataTextField = "Description"
RFPServiceTypes.DataBind()
RFPServiceTypes.Items.Insert(0, "All Services")
|
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 radiobuttonlist contains two items
(yes,no). Both the
checkboxes and the radiobuttonlist are NOT autopostbacked ( .autopostback =
false). When i press...
|
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,
return either a textbox or checkbox (or even a user control). What is the
best way to do that?
Thanks for the help.
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |