CustomBinding in a FormView

Discussion in 'ASP .Net Building Controls' started by Mike, Jan 30, 2006.

  1. Mike

    Mike Guest

    I have a FormView control on my page with, among other things, a ListBox
    control bound to a sqlDataSource. In the EditItemTemplate, I want that
    ListBox to be bound to the same sqlDataSource, but the chosen values need to
    be preselected. I understand how to set the DataBinding to match to a value
    from the main EditItemTemplate query. But my issue is that the selected
    values for that ListBox don't come out of that main query, they reside in a
    separate table. I assume I'll have to use a code expression to query the
    other table, but I cannot find any sort of insight into how this is done.

    I'm using C#. I've got a lot of experience on classic ASP, but am new to
    ASP.NET. Any insight is greatly appreciated.
     
    Mike, Jan 30, 2006
    #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. =?Utf-8?B?c2NrMTA=?=

    FormView Control

    =?Utf-8?B?c2NrMTA=?=, Oct 1, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    2,020
    Steven Cheng[MSFT]
    Oct 18, 2004
  2. CJ Taylor

    2.0 Formview question

    CJ Taylor, Oct 3, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    1,431
    Jon Stranger
    Oct 10, 2004
  3. Juan Irigoyen

    FormView in ASP 2.0

    Juan Irigoyen, Oct 6, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    356
    Juan Irigoyen
    Oct 6, 2004
  4. Chris

    Formview within Formview

    Chris, May 19, 2007, in forum: ASP .Net
    Replies:
    0
    Views:
    572
    Chris
    May 19, 2007
  5. David Thielen

    FormView/Repeater/ Eval(FormView data)

    David Thielen, Jun 16, 2006, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    695
    David Thielen
    Jun 16, 2006
Loading...

Share This Page