In my application i have jquery function,ajax updatepanel ,div tags .When i run my application intially sum of textboxes function in jquey works fine for expenses. My applciation has 3 parts 1. <divTSMAin>Sun to saturday link button with textboxes</Div>2.<DivTSDetails>Textboxes</div>3.<divExpenses>textboxes</div>.
When i click onsunday linkbutton to opens DivTSDetalis with sundaylabel anda date and it shows all textboxes ,dropdown .after i enter data and save it closes divtsdetails and comes to main page.In main page it shows expenses table with texboxes
when i try to enter values in textboxes and calculate the sum of textboxes it is not showing sum .once i click submit button it save all data in database . In my application i have edit and view button ,when i click on edit button it goes to that page
and im able to see expenses with those values and sum of textboxes total also .
i have autopostback for every textbox in company expenses and it calculates sum of all textboxes in each row, everytime when i move to next textbox it postbacks because of this issue i used jquery for sum of tb to this application.In the bellow
code initially when i run this application it shows divmain,divexpenses only it will not show divdetails at firsttime time if i enter values in textboxes of expenses it calculates sum .When i click on linkbutton it goes to divdetails and close divdetails
it comes back to main page at that time im not able to see any calculation in textboxes why this is happening ?because of updatepanel?
Member
134 Points
507 Posts
ajax and jquery
Apr 07, 2014 09:30 AM|emaak|LINK
Hi,
In my application i have jquery function,ajax updatepanel ,div tags .When i run my application intially sum of textboxes function in jquey works fine for expenses. My applciation has 3 parts 1. <divTSMAin>Sun to saturday link button with textboxes</Div>2.<DivTSDetails>Textboxes</div>3.<divExpenses>textboxes</div>.
When i click onsunday linkbutton to opens DivTSDetalis with sundaylabel anda date and it shows all textboxes ,dropdown .after i enter data and save it closes divtsdetails and comes to main page.In main page it shows expenses table with texboxes when i try to enter values in textboxes and calculate the sum of textboxes it is not showing sum .once i click submit button it save all data in database . In my application i have edit and view button ,when i click on edit button it goes to that page and im able to see expenses with those values and sum of textboxes total also .
All-Star
30411 Points
3628 Posts
Re: ajax and jquery
Apr 07, 2014 10:37 PM|Fuxiang Zhang - MSFT|LINK
Hi emaak,
Thanks for your post.
Based on your description, I understand you want to complete the edit or add or delete features using ajax and jquery in aspx.
For this issue, I think you should follow some examples and see what they do.
http://www.codingfusion.com/Post/Jquery-JSON-Add-Edit-Update-Delete-in-Asp-Net
http://forums.asp.net/t/1735555.aspx?Edit+Delete+in+jquery+Ajax
If I misunderstand your issue, please feel free to back and share your code with us.
Thanks.
best Regards!
Member
134 Points
507 Posts
Re: ajax and jquery
Apr 08, 2014 04:26 PM|emaak|LINK
Thanku below is the code.
i have autopostback for every textbox in company expenses and it calculates sum of all textboxes in each row, everytime when i move to next textbox it postbacks because of this issue i used jquery for sum of tb to this application.In the bellow code initially when i run this application it shows divmain,divexpenses only it will not show divdetails at firsttime time if i enter values in textboxes of expenses it calculates sum .When i click on linkbutton it goes to divdetails and close divdetails it comes back to main page at that time im not able to see any calculation in textboxes why this is happening ?because of updatepanel?
All-Star
30411 Points
3628 Posts
Re: ajax and jquery
Apr 08, 2014 11:05 PM|Fuxiang Zhang - MSFT|LINK
Hi emaak,
Thanks for your back.
For this issue, please note that UpdatePanel can refresh selected parts of the page instead of refreshing the whole page with a postback.
This is referred to as performing a partial-page update.
So your javascript would not be executed after a partial postback. Please call your javascript code in the pageLoad() method.
That will be execute both partial postback and fullpost.
http://encosia.com/document-ready-and-pageload-are-not-the-same/
Hope that helps, thanks.
Best Regards!