Dropdown List with Parameters

Discussion in 'ASP .Net Web Controls' started by TJHerman, Jun 22, 2006.

  1. TJHerman

    TJHerman Guest

    I have a dropdown list within a Formview on a web form (using ASP.NET, vb)
    that uses parameters to filter the list that is displayed (After a client
    name is chosen in another dropdown list, this dropdown list filters the
    contact names based on the company ID).

    When I try to bind this dropdown list to the value that I want to store, I
    get an error saying that it must be a data-bound control -- which it is. If I
    don't explicitly bind the dropdown list and only have the datavaluefield
    selected, the value is not included on an insert. If I take off the
    parameters, it stores the value fine.

    Can I not store/insert values with a dropdown list that uses parameters?
     
    TJHerman, Jun 22, 2006
    #1
    1. Advertising

  2. http://www.webswapp.com/codesamples/aspnet20/dependentlists/default.aspx
    --
    HTH,
    Phillip Williams
    http://www.societopia.net
    http://www.webswapp.com


    "TJHerman" wrote:

    > I have a dropdown list within a Formview on a web form (using ASP.NET, vb)
    > that uses parameters to filter the list that is displayed (After a client
    > name is chosen in another dropdown list, this dropdown list filters the
    > contact names based on the company ID).
    >
    > When I try to bind this dropdown list to the value that I want to store, I
    > get an error saying that it must be a data-bound control -- which it is. If I
    > don't explicitly bind the dropdown list and only have the datavaluefield
    > selected, the value is not included on an insert. If I take off the
    > parameters, it stores the value fine.
    >
    > Can I not store/insert values with a dropdown list that uses parameters?
     
    Phillip Williams, Jun 22, 2006
    #2
    1. Advertising

  3. TJHerman

    TJHerman Guest

    Thank you -- I'll check this out.

    "Phillip Williams" wrote:

    > http://www.webswapp.com/codesamples/aspnet20/dependentlists/default.aspx
    > --
    > HTH,
    > Phillip Williams
    > http://www.societopia.net
    > http://www.webswapp.com
    >
    >
    > "TJHerman" wrote:
    >
    > > I have a dropdown list within a Formview on a web form (using ASP.NET, vb)
    > > that uses parameters to filter the list that is displayed (After a client
    > > name is chosen in another dropdown list, this dropdown list filters the
    > > contact names based on the company ID).
    > >
    > > When I try to bind this dropdown list to the value that I want to store, I
    > > get an error saying that it must be a data-bound control -- which it is. If I
    > > don't explicitly bind the dropdown list and only have the datavaluefield
    > > selected, the value is not included on an insert. If I take off the
    > > parameters, it stores the value fine.
    > >
    > > Can I not store/insert values with a dropdown list that uses parameters?
     
    TJHerman, Jun 22, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. vishnu
    Replies:
    1
    Views:
    1,213
    Patrick.O.Ige
    Mar 25, 2006
  2. Mike
    Replies:
    1
    Views:
    811
  3. acadam
    Replies:
    0
    Views:
    760
    acadam
    Dec 27, 2006
  4. Replies:
    2
    Views:
    438
  5. Steve Myers
    Replies:
    2
    Views:
    276
    Steve Myers
    Nov 20, 2003
Loading...

Share This Page