Results 1 to 2 of 2

Thread: [2005] DropDownList SelectedValue ? [resolved]

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2001
    Location
    Austin
    Posts
    397

    [2005] DropDownList SelectedValue ? [resolved]

    Any idea why i'm not seeing the SelectedValue property for a DropDownList?


    I'm trying to do something like this with no luck:

    Code:
    <asp:DropDownList ID="DropDownList1" runat="server" 
       DataSourceID="AccessDataSource2"
       DataTextField="CategoryName" 
       DataValueField="CategoryID" 
       SelectedValue='<%# Bind("CategoryID") %>' />
    http://www.mikepope.com/blog/AddComm...px?blogid=1423
    Last edited by texas; Jun 5th, 2007 at 04:24 PM.

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2001
    Location
    Austin
    Posts
    397

    Re: [2005] DropDownList SelectedValue ? [resolved]



    the data types in my tables didn't match... this was causing me to get the following error:


    SelectedValue which is invalid because it does not exist in the list of items



    (live and learn)

Posting Permissions

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



Click Here to Expand Forum to Full Width