Click here to Skip to main content
14,882,105 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Updated 2-Feb-13 9:54am
v2

1 solution

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


JavaScript
$('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.
   
Comments
[no name] 3-Feb-13 8:37am
   
can you please give me some link of AJAX update panel
Irbaz Haider Hashmi 3-Feb-13 15:34pm
   
http://msdn.microsoft.com/en-us/library/bb399001(v=vs.100).aspx

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




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900