473,325 Members | 2,442 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

UserControls - Textbox Blur Event issue

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?

Apr 24 '07 #1
1 1955
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)
bsm wrote:
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?
Apr 24 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: George Hester | last post by:
http://home.nycap.rr.com/foryorisonly/site.htm The top one is very different from the bottom one. If you do not recognize the difference scroll the images to the right. Not that the toolbar...
3
by: threepins | last post by:
Howdy, Just wondering how the following might be done: I have a couple of different webpages that need to call a function to clear the textbox onFocus of the textbox. I'm wanting to use one...
1
by: Santa | last post by:
I'm creating a webform this winter, and using multiple usercontrols on the page. Each of these controls has a textbox and button. When page gets postedback the button I clicked event handler...
6
by: TN Bella | last post by:
I have a simple text box called txtrefnum, if the user enters a number length less than 9 characters long than I need to have lead zeros added to it. Does anyone know how to do this? I couldn't...
2
by: N. Demos | last post by:
I have a user control with code behind of which two instances are created/declared in my aspx page. The aspx page has code behind also, as I need to access methods of the usercontrols on page...
1
by: Mian Mahboob | last post by:
Nicholas Paldino in my application a have an Windows form on that i place an Panel Control. in Form load event i ganerate an Form in Panel Control on Runtime then get an design time create...
5
by: David Lozzi | last post by:
Hello, I have an interesting issue, so bear with me as I try to explain. I have a datalist posing as tabs for my application. And as each tab is clicked, a placeholder is then populated with the...
8
by: nil | last post by:
Hello all, It's urgent... i want to add autocomplete textbox facility in my application like google. as you type it suggests option to the user..i want the same kind of facility...i know i...
2
by: rajkm42 | last post by:
Hi friends, I have a gridview which loads an XML file to display a textbox and other dropdownlists. Which is used for data entry. The user will enter an empid in the textbox. Once leaving the...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.