ASP.NET - DropDownList Get's First Select value

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default ASP.NET - DropDownList Get's First Select value

    I have an ASP.NET website using C# that has a Web Control DropDownList. The
    DropDownList is filled by a database call to SQL Server. The problem is
    that when I click to change what is selected from the DropDownList, it only
    select the 'first' value in the DropDownList no matter what I select.

    Any idea? Thanks in advance


    Micheal Guest

  2. Similar Questions and Discussions

    1. #39116 [Opn->Bgs]: var_export get's fatal error on recursion
      ID: 39116 Updated by: derick@php.net Reported By: dekelb at gmail dot com -Status: Open +Status: ...
    2. #39116 [NEW]: var_export get's fatal error on recursion
      From: dekelb at gmail dot com Operating system: linux PHP version: 5.2.0RC5 PHP Bug Type: Feature/Change Request Bug...
    3. Dropdownlist "Select Value Equal To" Gives an Error
      In DW MX 2004 (C#), when I set the "select value equal to" for a dropdownlist item, I get the following .NET error once I try to view the webpage: ...
    4. Javascript onblur prevents users to select dropdownlist
      Hello I have a popup window that I would like to keep on top so I am using the foloowing javascript: window.onblur = function() {...
    5. DropdownList: How to select by value programaticly?
      I have an ASP DropdownList populated. What I want is to select a new item, in my code, by set a datavale to dropdownlist's selectedItem.Value...
  3. #2

    Default Re: ASP.NET - DropDownList Get's First Select value

    It sounds like you are populating your dropdown list every time the page
    loads.

    have a condition like this:

    if not ispostback then
    'fill the dropdown list
    end if

    -Mike


    "Micheal" <frooyo@sbcglobal.net> wrote in message
    news:uVoJZWtVDHA.2328@TK2MSFTNGP12.phx.gbl...
    > I have an ASP.NET website using C# that has a Web Control DropDownList.
    The
    > DropDownList is filled by a database call to SQL Server. The problem is
    > that when I click to change what is selected from the DropDownList, it
    only
    > select the 'first' value in the DropDownList no matter what I select.
    >
    > Any idea? Thanks in advance
    >
    >

    Joe Bleaux Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139