dropdownlist

Symbols in dropdownlist

How i can inset symbols in dropdownlis text like like in html or != ...

ASP .net GridView DropDownList - Select from Distinct values

Hello All, I have a SQL table (Trade Mapping) with the following columns: BTF_TRADE_MAPPING_KEY int BTF_SYSTEM_CODE varchar BACHE_CATEGORY_DESC varchar I need a grid view to enable users to edit the data from a website. The problem is the category column. When the user edits a row it needs to display a distinct list of categori...

one codebehind method handles two distinct dropdowns - isn't supposed to

Hello folks, I have one page with two dropdownlists with different IDs and in my codebehind I have two distinct methods, one for each dropdownlist, with distinct names and handlers. BUT, in my codebehind, only one dropdownlist calls it's method - and sometimes it calls both methods! - while the other dropdownlist never calls its method...

populating dropdown list with column names in visual studio 2008

Hi, I have a database in SQL Server with a table that has 18 columns. I want to create a drop down list in visual studio 2008 that will display each of these column names and be data bound. Is this possible, and if so, how? Thanks! ...

How to add custom object to DropDownList Items?

Hi, I'm using DropDownList within my WebApplication. I need to keep additional piece of information with each Item on list. How can I achieve this? ...

Is there a way to overload Items.Add procedure in inherited class from DropDownList?

Hi, I have my own custom class which inherits from DropDownList. Is there a way to override Items.Add procedure? How? ...

Selecting all dropdowns

Inside my form, I've declared dropdows the following way: Html.DropDownList(String.Format("Record[{0}].Action", i), new[] { new SelectListItem { Text="Ajustar Quantidade", Value= ((int)InventoryGoodsActionEnum.AdjustQuantity).ToString()}, new SelectListItem { Text="Relocalizar", Value= ((int)InventoryGoodsActionEnum.AdjustLocati...

In asp:CreateUserWizard a DropDownList won't save to db?

In the 2nd step of the wizard, I have a dropdownlist that is populated from the db. when I go to the 3rd step RegisterUser.ActiveStepChanged event if fired. In there I save the data to the db. My textboxes are saving properly but my the vb code isn't pulling the selectedIndex/Value from the dropdown. I tried populating the dropdown in Lo...

DropDownList switches from Spanish into English?

Why would a DropDownList switch from Spanish into English when one selects a new item in it? And how does one prevent that from happening? <asp:DropDownList ID="ddl_r1pc" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlRelationship_SelectedIndexChanged"> <asp:ListItem></asp:ListItem> <asp:ListItem ...

How to save two different values from one dropdown selection

Hi, in the backend a user can select a country via dropdown menu, e.g. "Germany". The frontend is bilingual so i have to dump "Germany" if language A is set and "Deutschland" if language B is set. How can i save the selection and its translation to separate fields in the database? Thank you for any help! ...

Select dropdown element with 1 million options, ahem...dependent too

Say we have three dependent select dropdowns (selecting parent asynchronously populates the child via a database query): DD1: [People of this world]     DD2: [Hair Strands]         DD3: [Keratin Molecules] Ok, our options' lists won't be as large as what the names here imply, but each dropdown is going to house about 1 million option i...

how to populate a drop down list from the database with jstl?

I know this has been asked before, but it just doesn't work for me. I'm trying to populate a drop down list from a database using jstl, here's the class i use as a usebean: public class feedData { Connection con; public feedData() throws ClassNotFoundException, InstantiationException, IllegalAccessException, SQLException { ...

Code Igniter: How do I add these anchor tags to a dropdown menu?

This is probably pretty simple but I am new to this. All I want to do is put some of the current links I have working inside a dropdown menu. Here are the working links I would like to display in a dropdown: <p> <?=anchor('tasks/AddTask', 'Add a Task')?> <?=anchor('tasks', 'All Tasks')?> <?=anchor('tasks/mjh', 'Mike')?> <?=anchor('tas...

Magento: getting attributes from an attribute set without a product

I have set an attribute set in my Magento shop which has several binary attributes. For a pulldown I need a list of ALL the attributes inside this one attribute set, including their internal name and their label. Since this pulldown should appear in places that not necessarily have a product selected I can't go the usual route of "getti...

ASP.NET DropDownList / HTML select list default selection

For my ASP.NET page, in the code behind I load various items/options into a DropDownList but I do not set a default by assigning SelectedIndex. I notice for the postback SelectedIndex is set to 0, even if I never set focus to or changed the value in the DropDownList. If not otherwise specified in the code behind or markup, will a defaul...

asp.net: Bind XML from Webservice to a dropdownlist

Hi, how do i bind a xml (http://www.webservicex.net/country.asmx/GetCountries) to a dropdownlist? Currently I'm working with ASP.NET 2.0. Greetings... ...

How accessible are dropdown lists on mobile devices?

I am developing as site for mobile devices which requires the user to select a product (there are ~70 in total). I however do not have a testing device with me at the moment (I am also currently on a Mac and do not know of any mobile browser emulators for Macs). My question is, would a drop down list of length ~70 be way too long? How h...

Go to page based on two menu selections

Javascript noob here (I'm assuming I will need Javascript to solve this). I need to make a page which directs a user depending on the selection they make from two dropdown lists. Lets say I have a form with two lists: A contains <option>1</option> <option>2</option> <option>3</option> B contains <option>1</option> <option>2</optio...

Removing same values from a dataset

Hi Could anybody help me for avoiding this issue. My issue is that i have one dataset that populates some values like value1, value2, value3, value1, value3, etc. And i am showing this values in a dropdown list. But my requirement is that i have to show the same value once. That is the dropdown should be display like this, value1, value...

Anchors in a dropdown menu

I have a page with several links. I want to make that when a user clicks link #1 he will be redirected to a contact form and select item #1 in the dropdown menu. Same goes for #2 and item #2 in the dropdown menu. Is this possible ? ...