Click here to Skip to main content
11,709,536 members (45,566 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: ASP ASP.NET
My Webpage contains 40 textboxs.
In one textBox I have to enter the start Date.
In another textbox I am entering Duration.
In the third one I want the total.

To display the result in the third textBox, I need to reload the whole page, so its taking too much time.

Please suggest me the alternative way.

I don't need the date calculation, that is done.
Posted 2-Feb-13 9:39am
Edited 2-Feb-13 9:54am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

You can use javascript/Jquery for this rather than doing a post back.

$('element').change(function() { // do something } );

if you really want to do this on server side. You can use Ajax (Update Panel) for that as well or PageMethod. You can search a lot of examples of that on internet and use which best suits your requirements.
Sourav Sarkar-SS2 at 3-Feb-13 8:37am
can you please give me some link of AJAX update panel
Irbaz Haider Hashmi at 3-Feb-13 15:34pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 590
1 OriginalGriff 250
2 Maciej Los 225
3 Peter Leow 219
4 Mika Wendelius 160
0 OriginalGriff 9,428
1 Sergey Alexandrovich Kryukov 9,037
2 CPallini 5,189
3 Maciej Los 4,991
4 Mika Wendelius 3,856

Advertise | Privacy | Mobile
Web04 | 2.8.150819.1 | Last Updated 2 Feb 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100