Referencing controls within a Formview

Discussion in 'ASP .Net' started by msch-prv@bluewin.ch, Jul 26, 2006.

  1. Guest

    Sorry to bother. This is somewhat related to a post I made today. But I
    am really stuck!

    Is it possible to directly reference a control within a form view? For
    example, is it possible to assign the text attribute of a control using
    a control that is databound to a db? Or, must that be done via a
    specific script?

    I created an script using a FindControl("lbl1"), Label) to update label
    controls after the form is submitted. What I would like to do is use a
    similar approach to initialize all unbound labels at binding time by
    looking up the values of the bound controls.

    This is fairly trivial in VBA (the control source of a textbox can be
    easily assigned to another textbox control). Surely there must be some
    way of doing this or am I mistaken?

    TIA, Mark
     
    , Jul 26, 2006
    #1
    1. Advertising

  2. Guest

    The data can be updated in the formview's DataBound event. But it is a
    really code intensive. Isn't there a more elegant approach?
     
    , Jul 26, 2006
    #2
    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. 2obvious
    Replies:
    0
    Views:
    346
    2obvious
    Sep 13, 2004
  2. 2obvious
    Replies:
    2
    Views:
    399
    2obvious
    Jan 11, 2005
  3. Neil
    Replies:
    0
    Views:
    574
  4. Neil
    Replies:
    1
    Views:
    491
  5. Ned Balzer
    Replies:
    4
    Views:
    2,482
    Ned Balzer
    Aug 3, 2006
Loading...

Share This Page