dropdownlist

Copy data from one sheet to other, on selection of data from the dropdown list.

Hi, Please help me in writing the Macro.I have no idea writing VB Macro and its SyntaX. The scenario is: An excel document has two sheets.The first sheet contains the marks,grades and project details of students. The second sheet contains the dropdown lists of Project version number, different Company names, and post. Project version...

ASP dropdownlist city selector

Hi, I have an asp dropdownlist loaded with cities/countries. They are loaded directly in code <asp:ListItem Value="MIA">Miami, Florida</asp:ListItem> I would like to extend the control with Ajax in order to allow a user to start typing and show similar matching options from a dropdownlist below. Is this possible using this control and...

Joomla 1.0 - need to add drop down menu into existing template

What is the best and easiest way to add a drop down menu to an existing template in Joomla 1.0 (can't upgrade it)? Thanks ...

Best jQuery drop-down nav Suckerfish alternative that works with Flash?

I think that my Suckerfish drop-down navigation does not play well with flash. I've done everything I can think of, yet my drop-down navigation keeps displaying underneath my flash movie. If I replace the movie with an image, it displays just fine. Only when I use a flash movie does the navigation display underneath the flash movie. I ha...

Masterpage Dropdown List not keeping Selected Index

Ok, my masterpage has a dropdown which controls size which affects a lot of things. I need to access the dropdown index from content pages so I do it using this code. public partial class MasterPage : System.Web.UI.MasterPage { public DropDownList MySize { get { return _ddlSize; } } } I am using Ajax and when the size changes the menu...

ASP.Net: drop down list and data source created dynamically

I have about 10 drop down list controls that get populated. Instead of copying/pasting and modifying a few fields on each, I would like to create them programmatically. Can this be done? Here is what one of them looks like. I would like to programmatically add 10 dropdownlist controls and their respective SqlDataSource controls. <...

C# DropDownList with a Dictionary as DataSource

I want to set DataTextField and DataValueField of a Dropdownlist (languageList) using a Dictionary (list) of languageCod (en-gb) as key and language name (english) as the text to display. Relevant Code: string[] languageCodsList= service.LanguagesAvailable(); Dictionary<string, string> list = new Dictionary<string, ...

asp.net add templatefield items for many dropdownlist to detailsview control

How can I add the following templatefield programmatically for each of the dropdownlist control inside the details view? <asp:TemplateField HeaderText="Your Gender"> <EditItemTemplate> <asp:DropDownList ID="ddlGender" runat="server" DataSourceid="ddlDAGender" DataTextField="Ge...

integrating jquery with AJAX using MVC for ddl/html.dropdownlist

Hi guys, the situation: a user on the page in question selects a category from a dropdown which then dynamically populates all the users of that category in a second dropdown beside it. all the data is being retrieved using LinqtoSQL and i was wondering if this can be done a) using html.dropdownlist in a strongly typed view? b) using...

dropdownlist in html table

Hi, I am using asp.net and i would like to create a table which allows the user to enter multiple rows. some of the rows are to be dropdownlists. I dont know how to do this :S can someone help me please? Thank you ...

How to set dropdownlist in .aspx page from managed code via DOM

I've a control that sits in the .aspx page, but the dynamic code is in separate project in Page.xaml.cs. On the same page as the control, I have: <asp:DropDownList ID="DropDownAppServer" runat="server" > In the Page.xaml.cs I've tried doing this: HtmlElement element = doc.GetElementById( "DropDownAppServer" ); element.SetAttribute(...

CSS Dropdown menu help.

Can someone tell me why the CSS dropdown menu (rollover "Software Solutions") works here : http://deltaassocc.web704.discountasp.net/temp/page-works.html but not here: http://deltaassocc.web704.discountasp.net/temp/page.html This has been driving me crazy! I'm using Firefox 3.0.10. Please help.. ...

ASP.NET 3.5 GridView - row editing - dynamic binding to a DropDownList

This is driving me crazy :-) I'm trying to get a ASP.NET 3.5 GridView to show a selected value as string when being displayed, and to show a DropDownList to allow me to pick a value from a given list of options when being edited. Seems simple enough? My gridview looks like this (simplified): <asp:GridView ID="grvSecondaryLocations" ru...

concatenate two fields in a dropdown

in an sql table there's an id, first name and last name field. i'd like to concatenate the first and the last name fields and display it as one in a dropdown control. this is the vb.net code: con() sqry = "[SELECT QUERY]" sqcom = New SqlCommand(sqry, sqcon) da.SelectCommand = sqcom ds.Clear() da.Fill(ds) ddl_a...

problem in dropdownlist within gridview

hi to all how to add a dropdownlist to gridview and how to add a datasource to dropdown. for example: i have gridview with 5 colomns c1,c2,c3,c4,c5 here i want to add a dropdownlist only c1 and c2 what is the procedure for do this work note: vs2008,asp.net with c# thanks ...

Keep getting extra added in details view

I am unable to edit Gender lookup field. I am having problem with post back edits. Every time I edit, the row YourGender keeps getting repeated. I am getting null values for GenderLookup value field. What is the right way to populate dynamically this look up in detailsview control. How does the get request and post back request with this...

Getting Id of a .net dropdownlist in javascript on client click

I need to get the ID of a dropdownlist (ASP.Net Control) So that I can tell if an item has been selected. Right now I am trying to just write the count of the dropdownlist to an alert box as follows: OnClientClick="alert(document.getElementID('<%=ListBox1.ClientID %>').options.length) The error I get is 'document required.' ...

Change style on ASP DropDownlist

Hi, Is it possible to change the graphics for the arrow down on the dropdownlist control, without having to create a custom control? I need all the normal properties, just want to style the arrow down a bit. ...

How to Search Through a C# DropDownList Programmatically

I am having a hard time figuring out how to code a series of "if" statements that search through different dropdownlists for a specific value entered in a textbox. I was able to write code that finds a specific value in each dropdownlist; but, before this happens, I need to add an "if" statement saying, "if dropdownlist doesn't contain ...

Change dropdownlist CSS when clicked or hover ?

Hi! Inspired by http://stackoverflow.com/questions/624102/enable-a-currently-disabled-dropdown-list-when-clicking-the-dropdown-list I tried something and I added some grey background to disabled selection. The problem is that when I click on some selection (which radio button was disabled) the background of the dropdown list remains gr...