dropdownlist

how to change picture using drop down list ?

Hello, I want to use a drop down list, every time i click the content in it, different pictures will show up. But i don't want to use the property 'value', because i want to use the values for other use. Example: <select name='test'> <option value='1'>1</option> <option value='2'>2</option> <option value='3'>3</option> <option value...

MsgBox is not displaying the right value

Hey, I have a DropDownList, and when SelectedIndex is changed any event is triggered. I'm putting on it for exemple msgbox, but it's not working. What's the problem ? EDIT; now that's working after doing AutoPostBack = True. I did this, but i't giving me always '0' as result Protected Sub VD_SelectedIndexChanged(ByVal sender As O...

Databind gridview with LINQ

I have two database tables, one for Users of a web site, containing the fields "UserID", "Name" and the foreign key "PageID". And the other with the fields "PageID" (here the primary key), and "Url". I want to be able to show the data in a gridview with data from both tables, and I'd like to do it with databinding in the aspx page. I'm...

Using a .delay() function before .css() manipulation in jQuery

I have this: var $ul = $(this).children("ul"); $ul.animate({opacity: 0}, 1000); $ul.delay(1000).css("display", "none") It's for my dropdown menu, and I want it to fade off before it disappears using the display: none; CSS property. However, it appears that the .delay() cannot be used on the .css(); it doesn't work, the $ul just disapp...

Jquery: change event not triggered in IE

Hi, I have some code updating a dropdownlist, and then I fire the "change" event manually. It works like it should in firefox, opera and so on, but not in Internet Explorer. Any idea why? Code attached below. $(".bringFraktvalgRadio").click(function() { var selectedValue = $(".bringFraktvalgRadio:checked").val(); $("#<%= dro...

Cascading dropdownlists in browser-enabled form

Im trying to fill a dropdownlist based on an other one: Departments and SubDepartments. i followed this link: http://www.sharepoint-tips.com/2007/01/infopath-form-services-implementing.html when i try to fill in a form it gives me an error: Request Failed (--> securityException) on this line: q.FileLocation = q.FileLocation + "&Filte...

problem with DropDownList asp.net

hey, I want to get the value of the specifed index in a DropDownList ...

How to get dropdown menu to open/close on click rather than hover?

Hello! I am very new to javascript and ajax/jquery and have been working on trying to get a script to open and close the drop menu on click rather that hover. The menu in question is found on http://www.gamefriction.com/Coded/ and is the dark menu on the right side under the header. I would like it to open and close like the other menu ...

dropdownlist itemsource and selected value in wpf

hi all i have a dropdownlist that bind to a collection of all system colors(ObjectDataProvider).it shows colors name and background of each items is draw with colorName.it works fine . but know i have a listbox that bind to an collection(CollectionViewSource) that shows a list of element with a property name "backcolor" ,i want to selec...

How to limit number of displayed items in html.dropdownlist?

I have a html.dropdownlist on my webpage as follows: <%=Html.DropDownList("MyDropDown", Model.Data, new { @class = "dropdown"})%> I am populating the dropdown with ~80 items. The issue is that when I click the dropdown the list of items is rendered from the top of the screen to the bottom of the screen. How can I set up the dropdown...

Setting values and display Text in Android Spinner

Hi, I need help in setting up value and display text in spinner. as per now I am populating my spinner by array adapter e.g mySpinner.setAdapter(myAdapter); and as far as I know after doing this the display text and the value of spinner at same position is same. The other attribute that I can get from spinner is the position on the i...

ASP.NET Adding OnClick event to asp:DropDownList control

Hi, I need to add the OnClick event to asp:DropDownList control, due to the existing events don't satisfy my current needs. Is it possible to achieve this? Thank you very much. ...

Difference between DropDownList.SelectedItem.Value And DropDownList.SelectedValue (ASP.NET)

Hey, I'm getting an error when SelctedIndexChanged, When the value change he gives me the previous selected value and not the new selected value. What's the problem here. And what's the difference between DropDownList.SelectedItem.Value DropDownList.SelectedValue ...

DropDownList: DataTextField, DataValueField... DataEnabledField?

I'm currently working with a control that inherits from DropDownList (it has some extra functionality that isn't really relevant to this question, but it gives me a nice place to implement the extra stuff I'm gonig to discuss). We're using data binding, with the DataTextField and DataValueField working absolutely fine. However, I find m...

ASP.NET DropDownList posting ""

I am using ASP.NET forms version 3.5 in VB I have a dropdownlist that is filled with data from a DB with a list of countries The code for the dropdown list is <label class="ob_label"> <asp:DropDownList ID="lstCountry" runat="server" CssClass="ob_forminput"> </asp:DropDownList> Country*</label>...

Dropdownlist disappears in IE7

In an ASP.Net application, I have a dropdownlist that, when you select something (causing an ajax postback), it disappears in IE7 (in IE8 running in IE7 mode, it does this: http://twitpic.com/1t9blq). Other browsers it is fine in ...

Django: Country drop down list?

I have a form for address information. One of the fields is for the address country. Currently this is just a textbox. I would like a drop down list (of ISO 3166 countries) for this. I'm a django newbie so I haven't even used a Django Select widget yet. What is a good way to do this? Hard-code the choices in a file somewhere? Put ...

what's the difference between populating via databind and via dropdownlist.items.add(new listitem)

I have a dropdownlist that list or major models, when selected it filters down to specific model on my 2nd dropdownlist, the problem is when I select on the 2nd dropdownlist the first time I get the correct selected value , the 2nd time I get the same model like it didn't refreshed. To illustrate: 1st dropdownlist General Model 1 Gener...

javasript for tooltip on each item in dropdown on change event

Hi, javasript for tooltip on each item in dropdown on change event. please help ...

Django/jquery: Address forms - dyamically adding state drop down list if country is United States?

I have a django html form for address information. There is standard street, city, state/province, postal code, country fields. The country field is a drop down list. How can I make the state/province field a drop down list if the selected country is united states and a free form text box if the country is anything else? I'd prefer n...