Custom controls in a Formview

V

VictorH

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
 
M

Mark Nelson

Please check events correpsonding to event click is firing for every first
time you clikc the image
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,829
Messages
2,569,737
Members
45,521
Latest member
maryb

Latest Threads

Top