UserControls - Textbox Blur Event issue

  • Thread starter Thread starter bsm
  • Start date Start date
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?
 
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)
 
Back
Top