UserControls - Textbox Blur Event issue

B

bsm

I have created one User controls which contains
1. Textbox and
2. ImageButton (to display calendar)
(I tried to create my own datetime control).

I have created "onblur" event on textbox event, so that It will
validate that Textbox should not empty. I shown calendar window when
user clicks the ImageButton.

My problem is when user enters into Textbox and he has to fill the
field and then only he can click ImageButton (to select date from
Calendar). Otherwise it will trigger the onblur and shown the
validation message.

Anyidea to workaround this?
 
B

bruce barker

have the onblur use a window.setTimeout() to schedule the validation.
then the onclick or onfocus of the button can cancel the validation.

note: it should self cancel in case its called from a submit request.

-- bruce (sqlwork.com)
 

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,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top