473,385 Members | 1,356 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,385 software developers and data experts.

Text Changed Event for a button

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.

Nov 19 '05 #1
1 1653
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" <ga******************@yahoo.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.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.

Nov 19 '05 #2

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

Similar topics

9
by: Lance Johnson | last post by:
I would like for when a tab page changes, that my controls on the previous tab page would receive a visiblechanged event or some other event so they are aware of that. We have db locks in some of...
9
by: Pam Ammond | last post by:
I need the code to update the database when Save is clicked and a text field has changed. This should be very easy since I used Microsoft's wizards for the OleDBAdapter and OleDBConnection, and...
2
by: Alpha | last post by:
Hi, I have a window based program. One of the form has several textboxes and a datagrid. The textboxes are bind to the same dataset table as the datagrid and the text changes to reflect different...
7
by: theyas | last post by:
How can I get my code to NOT display two "Open/Save/Cancel/More Info" dialog boxes when using the "Response.WriteFile" method to download a file to IE I've asked about this before and didn't get a...
1
by: ProgramAnalyst | last post by:
Hey all, I have a label that gets its text from a DB. This text can be changed on the page in a textbox and after the save button is clicked the new text is updated in the DB and the page...
5
by: tshad | last post by:
Is there a way to allow a user to press a radio button if it is already selected? There is an onCheckedChanged event that fires when the person presses the button and it is isn't selected...
19
by: Joe | last post by:
I have an aspx page (referred to here as page_1) with a datagrid whose first column contains hyperlinks. When a user clicks one of these hyperlinks, he will navigate to another aspx page (referred...
3
by: Barbara Alderton | last post by:
I'm writing a small ASP.NET app (written in VB.NET). It starts off with a Login screen It contains a drop-down box for the username, a textbox for the password and a link button for the sign on ...
2
by: jason | last post by:
hello. i am just trying to save a TextBox.Text value to a database, but strangely, when the value is changed on the web form, the changes are not recognized in the event where i try to save the...
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.