I have 4 text boxes namely start date,start time,end date and end time. In here for date textboxes I use ajax CalendarExtender
to choose the dates and for time textboxes I use MaskedEditExtender
to enter the time.
The help I need is how to get the duration based on the values I specify in the textboxes. First I need to get no of days duration based on start and end dates and then I have to calculate the time duration separately based on start and end time.
After completing them in the fifth textbox named Duration the value must be automatically calculated and displayed on it. The main help I need is although the date and time is separately the duration should be calculated only by comparing the date and time and then the final calculated duration should be displayed on the textbox.
I am using Visual Studio 2008
with back-end as SQL Server 2008
and the technology is ASP.net
with C#
Code.