dropdownlist

Text box with drop down suggestions

I currently have a databound dropdown list on my ASP.Net C# 2.0 website that has around 400 items in it. I want to replace it with something similar like the textbox in google search where you enter letter and only the entries starting with those letters pop up what is a good way of implementing it? Are there controls that already exist...

Getting Selected Value from an ASP.NET DropDownList

I can't get the selected value of a programmatically generated list of items: Protected Sub ddlMMMYY2_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles ddlMMMYY2.PreRender If Not Page.IsPostBack Then 'Value= 08.2009 Text=Aug 09 Dim d As Date d = Now ...

.NET Object Datasource, DetailsView and DropDownList

Ok, I am going to try and give a very bried yet detailed description of what I need to accomplish. First, I have a LinqToSQL datacontext defined that has an employee object. I then created a BLL (partial of employee) that handles my validations, inserts, updates etc. Everthing is good at this point. Next, I created a detailsview wi...

Read Excel data from Drop down into C# object array

Hi all! From within C# I'm trying to read data from an Excel sheet into an C# object. Everything works fine except one small detail, Excel data from drop down lists. Somehow the result in the array is null for every corresponding Excel drop down list entry. My code so far below: var range = sheet.get_Range("A1", "D3"); var value...

Dropdown not getting populated in IE?

I am trying to get the values to a select list for subcategories on the basis on what is chosen in categories select list. It doesn't seem to work on IE. Can anyone suggest the problem? In the php file I have <body onload="setSubcategories(default_value);"> In the js file I have something like subcategories = new Array(); subcateg...

Erasing the background of the drop-down list of a subclassed combo

Hello, I have an issue with the drop-down list of a subclassed combo box, with its background actually. The situation is the following: there is a big holder window which contains a combo box, subclassed. The window class of the main window specifies a gray brush (COLOR_3DFACE), used by Windows to erase its background. The combo box i...

Applying css with jQuery stops <select> from showing drop down list

So I've got some <select> tags that I would like to show the entire contents in IE. I've looked around and found a few fixes, but I don't want to include YUI since I'm already using jQuery elsewhere, and would prefer to keep the selects on the page instead of replacing it with DIVs. In the code that I've come up with, FF3 works great. ...

html helper html.dropdownlist in asp.net mvc

give me full demonstration of html.dropdownlist how it is implimented? how to set values in the list? how to use it in .aspx and in controller file? ...

ASP.NET MVC DropDownList UI Template

Hi, I have a ui template for the property ShopID in my Order class. Instead of displaying the ShopID as an integer in my dropdown I want to be able to display the ShopName from my Shop class but when I post back to the controller method I still want the Order class to have the selected ShopID. How would I do this? ...

How do I save data from drop down lists?

I have a FormView which contains 5 dynamic DropDownLists. By dynamic, I mean the lists of dropdowns can be increased or decreased - depending on how many questions I have in my DB. When I click the save button, I'm able to retrieve and store the content of the text boxes. But I'm not able to retrieve the DropDownLists. One of the prob...

some jQuery/javascript help. Add items to optgroup

I have an array called tmp var tmp = ["05", "13", "27"]; if an option value is equal to a value within tmp, I want to add that option to a particular optgroup, else add it to the other optgroup. I keep getting everything added to optgroup #2, except the option with the value "27". What am I doing incorrectly? var groups = $("opt...

create a drop down on a php webpage

I wanted to create static and a dynamic drop down for an online application form on my web page The static drop down would a list of clearance levels where the dynamic one would be based on a list of job openings (which is in turn taken from a folder that has 1 pdf file for each job opening) the end goal is that an email would be sent ...

how to show a textbox when a particular option from a dynamic dropdown is selected in javascript

i have this code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script language="javascript" type="text/javascript"> function dropdown...

DropDownList tooltip in Chrome and Safari

To add a tooltip to my DropDownList items I have DropDownList1.Items[i].Attributes.Add("title", tooltip); Problem is this doesn't work in Chrome and Safari. Any other way to add a tooltip, or any way to fix this in Chrome and Safari? ...

Send an onclick to a dropdown list

Is it possible to show the list of items in a dropdown list when the user presses the up or down arrow keys, when focus is on that dropdown control? I think this would involve sending an onclick to the dropdown list using onkeydown for Keycode 38(arrow up) & 40(arrow down)? But I cannot figure out how to do this. ...

How to create a dropdown that contains multiple editable paragraphs (sections) in a Word file?

I need to create a Word template where I can choose from different paragraphs the one I need in the first section of the document. Something like a dropdown just instead of values I need paragraphs. It does not necessarily needs to be a dropdown, but any kind of functionality that will allow me to select from different pharagraphs (somet...

Select dropdownlist item after button click

I have an asp drowndownlist and I'd like to change its selection after a button click. I can't seem to find a way to do this, is there a way? (Its a reset button of sorts, and I would like the dropdownlist to return to the "default" value.) ...

drop down options depending on the selected radio button in javascript

i have two radio buttons: in-campus and off-campus. when in-campus is selected the dropdown will have some options and when off-campus is selected there will be a different set of options. how can i do this in javascript? ...

C# webbrowser sudden refresh

I use Visual studio 2008. In my form there is a System.Windows.Forms.WebBrowser control. I have a custom header in the form just above the webBrowser control. In the webBrowser there is a form with a select/drop-down thing made with html. When I click the drop-list and it overlaps the custom header (because of the many options in it) The...

Cant get text of a DropDownList in code - can get value but not text.

I am using ASP.NET 3.5 I have a dropdownlist called lstCountry with an item in it like this..... <asp:ListItem Value="United States">Canada</asp:ListItem> This will display Canada but in code the value will be "United States". How can i retrieve the value "Canada" also in my code? I have tried all of these and all of them return "Un...