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.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
"gaurav" <gauravsrivastava2003@.yahoo.com> wrote in message
news:1116421111.732062.97490@.f14g2000cwb.googlegroups.com...
> 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.
>
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment