DropDownList.SelectedValue not changing

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

  1. #1

    Default DropDownList.SelectedValue not changing

    I have a DropDownList that is bound and properly filled from my DataSet
    when the page loads. but when the I try to retrieve any value I always
    get the first value...Any ideas?

    Jesse Guest

  2. Similar Questions and Discussions

    1. changing the dropdownlist
      I read in the MSDN that it is not possible to add attributes to listitems of dropdownlist control in c# web application. I wanted to know if...
    2. Retrieving SelectedValue from DropDownList
      I have a few DropDownList controls used for new record entry in the footer of a datagrid and I want to limit the options available in one list based...
    3. Losing one row of datagrid when changing dropdownlist inside it.
      Thanks in advance for your time- Hello. I have a datagrid with one row. I have a button that adds a new row. I am trying to implement that...
    4. Changing text without changing frames.
      I have a small flash movie that is basically a color chooser. Rather than changing the color of an item by putting the color in a frame I change...
    5. Persisting DDL.SelectedValue or DDL.SelectedItem.Value without Viewstate
      Use the forms collection. Something like Request.Form("myDDL") in VB. "Paul Aspinall" <paul@nospamaspy.co.uk> wrote in message...
  3. #2

    Default Re: DropDownList.SelectedValue not changing

    Do you bind the DroPDownList only on initial request that is checking
    !IsPostBack (Not isPostBack)?

    --
    Teemu Keiski
    MCP, Designer/Developer
    Mansoft tietotekniikka Oy
    [url]http://www.mansoft.fi[/url]

    AspInsiders Member, [url]www.aspinsiders.com[/url]
    ASP.NET Forums Moderator, [url]www.asp.net[/url]
    AspAlliance Columnist, [url]www.aspalliance.com[/url]


    "Jesse" <spootwo@hotmail.com> wrote in message
    news:u91a3LgUDHA.2052@TK2MSFTNGP10.phx.gbl...
    > I have a DropDownList that is bound and properly filled from my DataSet
    > when the page loads. but when the I try to retrieve any value I always
    > get the first value...Any ideas?
    >

    Teemu Keiski Guest

  4. #3

    Default Re: DropDownList.SelectedValue not changing

    Thank you...I had no idea

    Teemu Keiski wrote:
    > Do you bind the DroPDownList only on initial request that is checking
    > !IsPostBack (Not isPostBack)?
    >
    Jesse Guest

  5. #4

    Default DropDownList.SelectedValue not changing

    Please Set "Autopost back" PROPERT to "true" and you will
    be cool.

    >-----Original Message-----
    >I have a DropDownList that is bound and properly filled
    from my DataSet
    >when the page loads. but when the I try to retrieve any
    value I always
    >get the first value...Any ideas?
    >
    >.
    >
    DudeGuy Guest

  6. #5

    Cool Re: DropDownList.SelectedValue not changing

    Add AppendDataBoundItems="true" in dropdown Properties



    asp:DropDownList ID="ddlProject" runat="server" AutoPostBack="true" AppendDataBoundItems="true"

    onselectedindexchanged="ddlProject_SelectedIndexCh anged"
    Rose Guest

  7. #6

    Exclamation DropDownList.SelectedValue not changing

    my dropdownlist's selectedvalue is showing 0 always?
    any idea to change it accrding to selection
    Unregistered 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