Custom controls in a Formview

Discussion in 'ASP .Net Building Controls' started by VictorH, Feb 20, 2007.

  1. VictorH

    VictorH Guest

    I have a custom control in a Formview. This custom control consists of a
    textbox, a label and some code-behind. The code behind generates a codenumber
    in the label based on a database and the entry in the textbox. Everything
    works fine. I bind with two properties the textbox and the label text to a
    datasource and technically it all works.
    But (there is always a but), the Form view does not update the record on the
    first click on Update (Image button with tha appropiate commandname). The
    second click works. This only happens when the textbox is changed. As if the
    first save click takes the focus out of the textbox (although the cursor) is
    still there.

    Is this some small property or trick that I'm overlooking?
    --
    --
    Victor Heijke
    Microsoft Certified Professional
    Software architect at Flores Automatisering
    Amsterdam, the Netherlands
    http://www.flores.nl
    VictorH, Feb 20, 2007
    #1
    1. Advertising

  2. VictorH

    Mark Nelson Guest

    Please check events correpsonding to event click is firing for every first
    time you clikc the image
    --
    Thanks & Regards,
    Mark Nelson


    "VictorH" wrote:

    > I have a custom control in a Formview. This custom control consists of a
    > textbox, a label and some code-behind. The code behind generates a codenumber
    > in the label based on a database and the entry in the textbox. Everything
    > works fine. I bind with two properties the textbox and the label text to a
    > datasource and technically it all works.
    > But (there is always a but), the Form view does not update the record on the
    > first click on Update (Image button with tha appropiate commandname). The
    > second click works. This only happens when the textbox is changed. As if the
    > first save click takes the focus out of the textbox (although the cursor) is
    > still there.
    >
    > Is this some small property or trick that I'm overlooking?
    > --
    > --
    > Victor Heijke
    > Microsoft Certified Professional
    > Software architect at Flores Automatisering
    > Amsterdam, the Netherlands
    > http://www.flores.nl
    Mark Nelson, Feb 22, 2007
    #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. Chris

    Formview within Formview

    Chris, May 19, 2007, in forum: ASP .Net
    Replies:
    0
    Views:
    521
    Chris
    May 19, 2007
  2. user
    Replies:
    1
    Views:
    434
    Kevin Spencer
    Jul 19, 2007
  3. rodchar
    Replies:
    0
    Views:
    393
    rodchar
    Nov 26, 2007
  4. anon
    Replies:
    0
    Views:
    210
  5. David Thielen

    FormView/Repeater/ Eval(FormView data)

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

Share This Page