Search Result

Collapse
14 results in 0.0041 seconds.
Keywords
Members
Tags
dropdownlist
  •  

  • GoldenKing
    started a topic MVC3 razor view dropdownlist from Enum

    MVC3 razor view dropdownlist from Enum

    I am filling my dropdownlist with items from Enum.How can I get the index of enum items to dropdown list ?

    Here is my Enum
    Code:
    public enum Colors{ red,blue,green,yellow,orange,white,black,Teal,Custom }
    Here is my dropdownlist
    Code:
     @Html.DropDownList("SelectedColourId", Model.ColourList, "(Select one Color)")
    Here is my ViewModel
    Code:
     myPageViewModel:BasicViewModel
    ...
    See more | Go to post

  • How do I fill a DetailsView form from a DropDownList SelectedValue

    How do I fill a DetailsView form from a DropDownList SelectedValue? I'm using ASP.NET Entity Framework with Visual Express Edition C# and SQLExpress
    See more | Go to post

  • BbEsy
    started a topic Combobox Backgroud Color problem

    Combobox Backgroud Color problem

    Hello all,
    i tried to set background color to combobox.. All works fine but...

    when i use ComboBoxStyle.D ropDownList.. Combobox is still gray.. How simple make the cbox take color when dropdonwlist is setted?
    See more | Go to post

  • janetb
    started a topic Gridview with two dropdownlists causing error.

    Gridview with two dropdownlists causing error.

    I have a dropdownlist2 in a gridview whose datasource and select control parameter is based on the selected value of dropdownlist1 in the same gridview. Everything works great for insert, but when I edit the row in the gridview and change the selected value in dropdownlist1, I get an error of "'dropdownlist2 ' has a SelectedValue which is invalid because it does not exist in the list of items. Parameter name: value" This kinda makes sense...
    See more | Go to post

  • customized CreateUserWizard control is firing dropdown's OnSelectIndexChanged event

    I have a CreateUserWizar d control, for which I customized the first step.

    All I did was add 3 DropdownLists to represent Date of Birth fields. So I have Month, Day, and Year dropdowns.

    I have ViewState disabled at application level (disabled it in web.config).

    I enabled viewstate on Month, enabled AutoPostback = true, and have a method for the event OnSelectedIndex Changed.

    Depending on the...
    See more | Go to post

  • urbn
    started a topic asp.net DropDownList XML multiple datatextfield

    asp.net DropDownList XML multiple datatextfield

    Is there a way to display several records in the datatextfield in a asp dropdownlist?

    I know the fix when populating the dropdownlist from a datagrid was to edit your SQL query but the values I am receiving are sent via an XML string.


    The idea would be to display a name, price, and date in the dropdown text.

    Currently I am getting the following error:
    DataBinding: 'System.Data.Da taRowView'...
    See more | Go to post

  • eliza64
    Guest started a topic Change the UI of ListBox and DropDownList on the fly

    Change the UI of ListBox and DropDownList on the fly

    1. From ServerSide (In c#)

    To change ListBox to DropDownList just change the Rows property of the ListBox with “1” Then it will behave as the Dropdown list in UI.
    → ListBox1.Rows = 1;

    For the reverse Add
    → DropDownList1.A ttributes.Add(" size", "3");

    2. In ClientSide (By Javascript)
    DropDownList &...
    See more | Go to post
    Last edited by Frinavale; Mar 26 '10, 07:08 PM. Reason: Please post code in [code] ... [/code] tags. Added code tags. Removed link.

  • netspace
    started a topic ASPX form doesn't send any dropdown or listbox data
    in .NET

    ASPX form doesn't send any dropdown or listbox data

    I am new to .net and would appreciate some advice.
    All of the form results are sent, except the DropDownList and ListBox.
    code is;
    <asp:DropDownLi st id="Hear_About_ Us" Tabindex="85" runat="server">
    <asp:listitem Text="Select one" value="Select_o ne" />
    <asp:listitem Text="Direct...
    See more | Go to post

  • user1980
    started a topic Dropdownlist's enableviewstate not workin

    Dropdownlist's enableviewstate not workin

    Hi there..

    This problem is stopping me from winding up my project. I have a webform where there is a pop-up page that populates one text box and 2 dropdowns. And I also have a checkbox list that does a postback. Whenever the checkboxlist does a postback, one of the dropdownlist's value is reset. It happens with only one dropdown list. The text box and the other dropdownlist retain their value. I have put enableviewstate = true at both...
    See more | Go to post

  • why does the ASP dropdownlist not work when binding?

    I have placed a dropdown list in the edititemtemplat e of a formview control and followed specific MSDN instructions on how to bind the list source to a separate SQL lookup data source but have the formview bound to the main data source. If I set the selecteditem value to bind to the formview control I always get the following error:
    'DropDownList2' has a SelectedValue which is invalid because it does not exist in the list of items.
    ...
    See more | Go to post

  • alternative for tool tip and horizontal scroll for javascript drop down list

    Hi,
    As we know IE SELECTdrop down list has limitations on tool tip on individual option items and also horizontal scroll bar.
    Can any one please tell any other alternative to show the tool tip using javascript or has any one implemented drop down list using div which has all the functionalites of drop down list.


    Thanks,
    Nags
    See more | Go to post

  • AnaOlinto
    started a topic DropDownList with CheckBoxes

    DropDownList with CheckBoxes

    Hi,

    For the page I'm developing I need a DropDownList with CheckBoxes on it, so that the users can choose more than one option without having to use the Ctrl key (and it's more intuitive). Because my options are being retrieved from the Database, the list of option can be really big, so using a CheckBoxList would use a lot of space.
    Please, can anyone help me with this? I'm almost desperate! I have been search for a couples day,...
    See more | Go to post
    Last edited by AnaOlinto; Aug 12 '09, 07:26 PM. Reason: Add more details

  • Getting a DropDownList value to concatenate with String in a textbox

    Hi all. I need help about this particular aspect.

    In a webform I have an <asp:textbox> (txtName) and <asp:DropDownLi st> (lstSchool) with 2 values inside.

    I have typed in a value for the textbox. When I select an option from the dropdownlist, I would like that value(String) to be concatenated with the textbox's value. How do I achieve this in JavaScript?
    (Microsoft Visual Studio 2005)

    ...
    See more | Go to post

  • Selecting a value of ASP:DropDownList to concatenate with another String in a textbox

    Hi all. I need help about this particular aspect.

    In a webform I have an <asp:textbox> (txtName) and <asp:DropDownLi st> (lstSchool) with 2 values inside.

    I have typed in a value for the textbox. When I select an option from the dropdownlist, I would like that value(String) to be concatenated with the textbox's value. How do I achieve this in JavaScript?
    (Microsoft Visual Studio 2005)

    ...
    See more | Go to post
Working...