Text Changed Event for a button

G

gaurav

There are two text box, one is from date and another is to date
textbox. Each text box having a calender popup button to select From
date and To date. Both text box having a TextChanged event
attached.There is one more text box named as No. of Days, No. of days
means the difference b/w from date and to date, to calculate the No. of
Days i have written the code in TextChanged event. When i am entering
date manually in both text box the TextChanged Event is working and i
am getting the no. of days. But when i am selecting a date from
calender popup, then the TextChanged Event is not working and i am not
getting the difference in No. of Days test box.
 
E

Eliyahu Goldin

Attach a server OnClick event to the popup button. Then on the server side
take values of From and To dates and calculate No.of Days. You should not
care whether the postback originated from TextChanged or OnClick event.

Eliyahu
 

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,969
Messages
2,570,161
Members
46,710
Latest member
bernietqt

Latest Threads

Top