dropdownlist

Page refresh in MVC

Hi all, I'm studing Microsoft ASP MVC framework. Here is a problem I encounterd: I have a view with DropDownList containning a list of countries and another DropDownList for states. The OnChange event post the form back and then the controller sends data to the states drop down which should update. But the second DropDownList doesn't ch...

ASP.NET / C#: DropDownList SelectedIndexChanged event not firing

My selectedindexchanged event is not firing when I select values in my dropdown lists. These dropdown lists are implemented dynamically in the following code. I have tried changing autopostback and enableviewstate settings to no avail. I am using a static panel. Does anyone see how I can cause the selectedindexchanged event to fire? ...

How to use AJAX to populate state list depending on Country list?

I have the code below that will change a state dropdown list when you change the country list. How can I make it change the state list ONLY when country ID number 2234 and 224 are selected? If another country is selected is should change into this text input box <input type="text" name="othstate" value="" class="textBox"> The fo...

How can I display the same DataPager control in two places on a page at the same time?

I have a DataPager control that looks like this: <asp:DataPager ID="page1" PagedControlID="ExperienceList" runat="server" PageSize="3" OnPreRender="page1_PreRender"> <Fields> <asp:TemplatePagerField> <PagerTemplate> <asp:DropDownList ID="ddlPage" runat="server" AutoPostBack="true" CssClass="default" OnSelectedIndexChanged="ddlPage_Selec...

javascript: drop down box in form with a button to add a second copy of drop down box

I have a simple form that lists user names and for each user, the form displays a drop down box with a list of items that can be assigned to the user. Since it is often necessary to assign multiple items to a user, I need to display a button next to the drop down that says "add another item" which automatically inserts another an identic...

ASP.Net Html.DropDownList Selected Element not Selected

Hi, I have a site that was using ASP.Net MVC Beta 5, and I have just upgraded it to ASP.Net MVC 1.0. I am having trouble with the selected item in a drop down list. The follow person has a similar question (http://stackoverflow.com/questions/589935/html-dropdownlist-in-asp-net-mvc-rc-refresh-not-pre-selecting-item) but I there is no an...

ASP.NET VS2008 C# - dropdown list - postback

How can use a dropdown list without the autopostback=true. The value on the server is not being changed according to the one selected from the client side. As I already stated I do not wish that for each dropdown I have the autopostback will trigger a post back. ...

Bold part of an option in a drop down list

Is there a way to bold only part of the text in a drop down list option or is this not possible? I know that you can style the entire option with CSS, but that is not what I am looking for. And HTML inside of an option tag does not render. Here would be an example of a drop down list item: SomeID - Description of ID ...

How to make the value in dropdownlist not change after submit in JSP?

Let's say i have a jsp page which contains a dropdownlist. when user select a item and click submit to submit the JSP page to itself, after that , the JSP page will reload and item selected before will disselected. How can i make it not change even after reload the JSP page? ...

JQuery: How do I select a value from a dropdownlist case insensitive?

My scenario: I have a textbox that the user enters text The textbox has an onblur function that tries to select a value from a dropdownlist (if it exists) based on the textbox input This works perfectly fine if the textbox value is the same case as the dropdownlist value. But I want it to be case insensitive. So if the user types "...

How to SELECT a dropdown list item by value programatically

How to SELECT a drop down list item by value programatically in C#.NET? See PIC ...

dropdownlist client events like onchange()

Hi, I want to know the client side events (like OnChange for textbox) for drop down list. Help me in this asap. Thanks Rupa ...

Tooltips are possible in dropdowns in IE6?

Hi, Am using a dropdown control in my web application. I want tooltips to be displayed as i scroll down the list in the dropdown, and the tooltips should be the text that the focus is currently on. This works fine in IE7 and Mozilla, but IE6 does not display tooltips. Any suggestions here? Thanks in advance, Geetha ...

Databind ASP.NET List of ListItem to DropDownList issue

I've just come across this bizarre thing that I was expecting to work in a different (logical) way, but it doesn't. Is it a bug or a "feature"? So there's a DropDownList that I'm populating in the codebehind with a List of ListItem. Each new ListItem gets 2 arguments that, according to the intellisense-provided documentation, correspond...

DB generated list not working when created using jquery.

I have a simple form that has a list (dropdown list generated from a DB), when a user makes a selection, the selection is printed on the screen. The problem I'm having is that if I use jquery to call the php funciton that generates the list when the page is loading, the list will not work, but if I add the code directly in the html it wi...

Change default behaviour of Windows Combobox /Dropdown Win Forms C#

I need to make sure that the combobox popsup instead of popping down. as this dropdown is placed at the bottom of the form it doesn't looks good when it drops down. any suggestions? ...

How can I write a drop down box in JSF?

How can I write a drop down box in JSF? ...

Intercepting combobox dropdown

Urgh, I have spent the last couple of hours on this now. I normally end up finding the answer from a bit of Googling, but not with this one. Bit of a headache. My questions: How can I catch when a user clicks the dropdown arrow on a combobox and prevent the dropdown list from being displayed. How can I then clear and populate the dr...

$form->input in cakephp

hi, I'm trying to create a text box using the vales retrieved from the database. But instead of a text box, a select box (drop down box) is created. I do not understand why. I have given the type as text only, then why a select box is being created? echo $form->input($r['Attribute']['label'], array('label' => $r['Attr...

Firefox drop down list disables on postback with update panel

I have a problem in FireFox (3, 3.5...) browser with using AJAX Update Panel. There are DropDownList with some values and Button in the UpdatePanel. Update Panel works good in FireFox. So, after you click on Button, DropDownList stick, it’s impossible to change value in DropDownList. if change focus to another window and then back to ...