How to create dropdown list with "new value" option ?
I would like to create a dropdown list where the last option will be to enter a new value. How could I create this ? Is there any jQuery plugin that provides such thing ? ...
I would like to create a dropdown list where the last option will be to enter a new value. How could I create this ? Is there any jQuery plugin that provides such thing ? ...
Hi, So, here's the scenario: I have a .aspx page having two dropdowns, the data to be loaded in them is usually static(but may change everyday), the first dropdown always displays the main categories and the second dropdown is initially empty. Now, the requirement is: As the user selects a category from the first dropdownlist, the se...
i want to link 2 drop downs in an asp.net application. they will contain release and project data such that each release will have multiple projects. whats the best and most efficient way to do this? I was thinking to use ajax for this but dont want a server call each time a new release is selected since this will typically not chang...
I have a dropdown list of companies. I also have some dropdown lists of contacts (primary_contact, sales_contact, insurance_contact) which all belong to class "contact". When the company changes, I update the list of available contacts using the following code: $('#company').change(function () { var company = $(this)[0].value....
I have a DropDownList on an ASP.NET page that gets populated by a SQL database. <asp:DropDownList ID="ddlName" runat="server"></asp:DropDownList> The population is down in the code behind file: ddlName.DataSource = SqlDataSource1; ddlName.DataValueField = (this.ddlName.SelectedValue); ddlName.DataTextField = "ccName"; ddlName.DataBin...
Hi there, Using Visual Web Developer Express 2010 with ASP.NET 4.0. I have a FormView and I want to set a default value from the database. I can't get it to bind to the value in the database. My FormView looks like this: <asp:FormView ID="frmOrderDetails" DataSourceID="sdsFormOrderDetails" runat="server" DataKeyNames="orderId"> <...
Hello there, Using ASP.Net MVC1 and am dynamically creating the html in a model that is then dropped into the view and rendered at run time. My view is a single page that looks like this: <%@ Page Language="VB" Inherits="System.Web.Mvc.ViewPage" %> <%=(ViewData("Content"))%> This dynamically created content is mostly dropdownlis...
I have two selection boxes in the same form. I would like to have one disabled based on some of the options that can be selected in the other selection box. I'm looking for a solution in JavaScript if possible. ...
I have dropdown list (HTML select element) which simply contains a heap of dollar amounts. E.g. $50,000 $100,000 $150,000 $200,000 and so on.. An example of one of the option elements inside it would be: <option value="150000">$150,000</option> I want the user to be able to start typing in 1..5..0.. and get it to auto-jump down ...
I'm having trouble with this simple scenario. First, I'm using ASP.NET WebForms. I'm making an ajax call using jQuery after the user select a value on a first dropdown (select). This call will return me an array of values with which I fill a second DropDownList. After a postback, of course the DropDownList has no items. I have tried ...
What would be the easiest method to replace the default arrow of the dropdown list with my own arrow image ? ...
I'm trying to initiate an ajax request whenever a person changes the value of a drop down list. I want to send the selected item of the drop down as a query string parameter. How do I get the selected item from the drop down list using MooTools? var theUrl = 'http://someurl.com'; window.addEvent( 'domready', function() { $('ddl').ad...
I have a Person class displayed below. In the view I need to display its properties, plus the DepartmentName that exists in a different Table. DepartmentId in the class below is a Foreign Key. I am using Linq to SQL. I am also display my PersonRepository and Controller code below. I need to display the DepartmentName in the Index Vi...
Basically, I'm building a mobile site with LOTS of content. I have a header, then a menu with three buttons that I need to open select menus so that the iPhone's select wheel will appear. Any ideas? So far my searching says not possible... ...
Hey! I'm trying to populate a second dropdown in a dynamic way based on a previs selected dropdown. However, I've managed to write get the page to reload when I choose anything in the dropdownbox but the chosen value isnt passed after reloading. I have register_globals turned off (and prefer to) and i'm using the GET function to submit ...
I see a bunch of solutions about editing the template, but seeing as how my gridview changes between 10 different datasources a template isn't possible. Any idea of how I can accomplish this? ...
I want to set selecteditem for asp. net dropdownlist control programmatically. So I want to pass a value to the dropdownlist control to set the selected item where is the item equal to the passed value. ...
Hi all, I have the following scenario: <div class="dropMenuWrapper_content"> <img src="images/dropMenu.gif" class="menu_head_content" /> <ul class="menu_body_content scroll-pane" id="SmallDropDown"> <li><a class="modalWindow cboxElement" href="http://mysite.com/service/0.aspx">1</a></li> <li><a class="modalWindow cbo...
Hello all, I'm using Seesion in my project that stores the useTypeID (admin, manager and so on) and for the backoffice only the admin and the manager can enter, so in every page in my backoffice in the first line i check if the seesion is stile alive and only then the user can enter the page: if (!EmployeeSession.IsAuthenticated || Empl...
I need to show items like in below image. I'm using this code to bind dropdownlist. var options = (from option in _serviceOptions select new { OptionId = option.OptionId, OptionText = option.OptionText + " - " + option.Price + "£/month" }).ToLi...