Solved

How to sum up fields using C3 and ASp.net

Posted on 2014-09-04
1
88 Views
Last Modified: 2014-09-30
How do i sum  up 3 fields while inserting into the database. I have 3 fields
ext.1
ext.2
ext.3
total ext.
I need the total ext to sum up the three previews fields and pop up automatically on mouse over.
total ext = ext.1 + ext.2 + ext.3

any suggestion?
0
Comment
Question by:shpresa
1 Comment
 
LVL 82

Accepted Solution

by:
leakim971 earned 500 total points
ID: 40304499
window.onload = function() {
document.getElementById("popupLink").onmouseover = function() {
  var v1 = document.getElementById("<%= TextBox1.ClientID %>").value;
  var v2 = document.getElementById("<%= TextBox2.ClientID %>").value;
  var v3 = document.getElementById("<%= TextBox3.ClientID %>").value;
  var t0 = v1*1 + v2*1 + v3*1;
  showPopup( t0 );
}
}

Open in new window

0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question