Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 50269
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T16:34:01+00:00 2026-05-10T16:34:01+00:00

In one of my ASP.NET Web Applications, I am using a BulkEditGridView (a GridView

  • 0

In one of my ASP.NET Web Applications, I am using a BulkEditGridView (a GridView which allows all rows to be edited at the same time) to implement an order form. In my grid, I have a column which calculates the total for each item (cost x quantity) and a grand total field at the bottom of the page. Currently, however, these fields are only refreshed on every post-back. I need to have these fields updated dynamically so that as users change quantities, the totals and grand total update to reflect the new values. I have attempted to use AJAX solutions to accomplish this, but the asynchronous post-backs interfere with the focus on the page. I imagine that a purely client-side solution exists, and I’m hopeful that someone in the community can share.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T16:34:01+00:00Added an answer on May 10, 2026 at 4:34 pm

    If your calculations can be reproduced in JavaScript the easiest method would be using jQuery to get all the items like this:

    $('#myGridView input[type='text']').each(function(){   this.change(function(){     updateTotal(this.value);   }); }); 

    Or if your calculations are way too complex to be done in JavaScript (or time restraints prevent it) then an AJAX call to a web service is the best way. Lets say we’ve got our webservice like this:

    [WebMethod, ScriptMethod] public int UpdateTotal(int currTotal, int changedValue){   // do stuff, then return } 

    You’ll need some JavaScript to invoke the webservice, you can do it either with jQuery or MS AJAX. I’ll show a combo of both, just for fun:

    $('#myGridView input[type='text']').each(function(){   this.change(function(){     Sys.Net.WebServiceProxy.invoke(       '/Helpers.asmx',       'UpdateTotal',       false,       { currTotal: $get('totalField').innerHTML, changedValue: this.value },       showNewTotal     );   }); });  function showNewTotal(res){   $get('totalField').innerHTML = res; } 

    Check out this link for full info on the Sys.Net.WebServiceProxy.invoke method: http://www.asp.net/AJAX/Documentation/Live/ClientReference/Sys.Net/WebServiceProxyClass/WebServiceProxyInvokeMethod.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The ASP.NET web applications that I'm working on is using multiple web.config files. One
I have two ASP.NET MVC web applications. One of them logs unhandled exceptions to
I have started upgrading one of our internal software applications, written in ASP.NET Web
I'm working on Asp.net MVC3 web application. I'm having one page on which appx.
In one of my asp.net web applications I need to hide the location of
I have developed in c# 2 applications. One ASP .NET web service and a
I have been using Asp.Net for designing web applications recently and was wondering if
I've got two different, but closely related ASP.Net web applications that use the same
I am only using RazorViewEngine on one of my ASP.NET MVC 3 applications and
I'm about to add IMAP email integration to one of our web applications (ASP.NET

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.