Solved

How to sum up fields using C3 and ASp.net

Posted on 2014-09-04
1
87 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
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…

786 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