binding detailsview via codebehind

Discussion in '.NET' started by jg100309, Aug 25, 2009.

  1. jg100309

    jg100309

    Joined:
    Aug 25, 2009
    Messages:
    1
    Hi,

    I have a dropdown list on a page that is bound a field (text:FirstName, value:EmployeeID) from a query I make on my codebehind page.
    I would like to add a detailsview to the page, and define a different query to populate the dv with the remaining fields in the table (LastName, EmployeeID, Location), based on the selectedvalue in the dropdown list.
    Currently, when I run my website, I only see the dropdown list that has been populated. I cannot see the detailsview.
    I am familiar with the common method of databinding, however, I would like to bind the detailsview from the code behind.

    Please help!

    Thank you for your assistance.
     
    jg100309, Aug 25, 2009
    #1
    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. nobody@somewhere.com
    Replies:
    2
    Views:
    1,066
    nobody@somewhere.com
    Mar 22, 2005
  2. =?Utf-8?B?Q2VyaV9EYXZpZXM=?=

    Binding a textbox to a detailsview in asp.net 2.0

    =?Utf-8?B?Q2VyaV9EYXZpZXM=?=, Mar 22, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    995
    =?Utf-8?B?Q2VyaV9EYXZpZXM=?=
    Mar 22, 2005
  3. Andrew Robinson

    DetailsView Data Binding

    Andrew Robinson, Sep 30, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    15,106
    Steven Cheng[MSFT]
    Oct 10, 2005
  4. 47computers@gmail.com

    Re-Binding A DropDownList Within A DetailsView

    47computers@gmail.com, Mar 23, 2007, in forum: ASP .Net
    Replies:
    0
    Views:
    491
    47computers@gmail.com
    Mar 23, 2007
  5. Feege
    Replies:
    0
    Views:
    485
    Feege
    Dec 20, 2005
Loading...

Share This Page