473,379 Members | 1,235 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,379 software developers and data experts.

this.Dropdownlist not working

I added a textbox to a c# page and can access it with code behind but added a
dropdown list by draging it on the page from the toolbar but when typing
this. the dropdown id is not selectable and I can not access any of its
attributes.
--
Paul G
Software engineer.
Jan 18 '06 #1
4 1145
assuming this is 1.x, you'll need to go in our codebehind, expand the
desiner region and add

protected DropDownList controlId;

like

protected DropDownList States;

you should see other similar controls there..

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"Paul" <Pa**@discussions.microsoft.com> wrote in message
news:BE**********************************@microsof t.com...
I added a textbox to a c# page and can access it with code behind but added
a
dropdown list by draging it on the page from the toolbar but when typing
this. the dropdown id is not selectable and I can not access any of its
attributes.
--
Paul G
Software engineer.

Jan 18 '06 #2
working now, not sure what happened.
--
Paul G
Software engineer.
"Paul" wrote:
I added a textbox to a c# page and can access it with code behind but added a
dropdown list by draging it on the page from the toolbar but when typing
this. the dropdown id is not selectable and I can not access any of its
attributes.
--
Paul G
Software engineer.

Jan 18 '06 #3
ok thanks for the reply. I thought all of that code was generated
automatically when you put the control on the form.
--
Paul G
Software engineer.
"Karl Seguin [MVP]" wrote:
assuming this is 1.x, you'll need to go in our codebehind, expand the
desiner region and add

protected DropDownList controlId;

like

protected DropDownList States;

you should see other similar controls there..

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"Paul" <Pa**@discussions.microsoft.com> wrote in message
news:BE**********************************@microsof t.com...
I added a textbox to a c# page and can access it with code behind but added
a
dropdown list by draging it on the page from the toolbar but when typing
this. the dropdown id is not selectable and I can not access any of its
attributes.
--
Paul G
Software engineer.


Jan 18 '06 #4
Most of the time ;)

Karl

--
http://www.openmymind.net/

"Paul" <Pa**@discussions.microsoft.com> wrote in message
news:C3**********************************@microsof t.com...
ok thanks for the reply. I thought all of that code was generated
automatically when you put the control on the form.
--
Paul G
Software engineer.
"Karl Seguin [MVP]" wrote:
assuming this is 1.x, you'll need to go in our codebehind, expand the
desiner region and add

protected DropDownList controlId;

like

protected DropDownList States;

you should see other similar controls there..

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"Paul" <Pa**@discussions.microsoft.com> wrote in message
news:BE**********************************@microsof t.com...
>I added a textbox to a c# page and can access it with code behind but
>added
>a
> dropdown list by draging it on the page from the toolbar but when
> typing
> this. the dropdown id is not selectable and I can not access any of its
> attributes.
> --
> Paul G
> Software engineer.


Jan 18 '06 #5

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

Similar topics

0
by: Chumley the Walrus | last post by:
I'm trying to add a drop down list to my data insertion script, using the sqlparamter object . The form coding on the web page: <asp:dropdownlist id="frmstate" runat="server"> <asp:ListItem...
4
by: Benton | last post by:
Hi there, I am working with ASP.NET. I have a TextBox and DropDownList (for customer info input) that I need to tie up, i.e., when the DropDownList item changes (the customer name), the TextBox...
1
by: Donal | last post by:
I have 3 related dropdowns. When the 1st is changed, the 2nd is updated, and when the 2nd is changed, the 3rd is updated. When i change the 1st dropdown (sites), the SelectedIndexChanged fires...
0
by: Evan Camilleri | last post by:
I managed to do a DropDownList in Datagrid on Edit (normally, the templates puts a label). My problem is that I cannot initialize it when I do the edit. I am doing the following ' Select the...
1
by: jimb | last post by:
I can get the dropdownlist into the datagrid, and I can populate it, but I can't read it. Anybody have a working example of a dropdownlist in an editable grid? Thanks. -- .....
1
by: Patrik Zdarsa | last post by:
Hi, I'm try VS 2005 and need UPDATE database record in viewform, all working when every filed is type TextBox (html INPUT) but I need change one TextBox to Listbox or dropdownlist and read data...
2
by: cider123 | last post by:
I have a SqlDataSource bound to a DropDownList Combo. Works just fine. I noticed 2 properties you can set in the DropDownList, 1 for the value to be displayed in the "Text" column and 1 for the...
0
by: stretch73 | last post by:
I have a repeater control with a DropDownList in the header template. I am trying to make a database call and sort the results by the selectedIndex property of the drop down. The...
11
by: harold.gimenez | last post by:
Hi group, I am trying to change the selection of an ASP Dropdownlist just like "Orange" is selected here: http://www.w3schools.com/js/tryit.asp?filename=try_dom_option_selected The...
5
by: nzkks | last post by:
Hi I am using these: ASP.Net 2.0, VB.Net, Visual Studio 2005, SQL Server 2005, Formview controls In a ASP.Net form I have 20 textboxes and 20 dropdownlists(ddl). All ddl(s) are databound and get...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.