?
Solved

How to sum up fields using C3 and ASp.net

Posted on 2014-09-04
1
Medium Priority
?
93 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 82

Accepted Solution

by:
leakim971 earned 2000 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
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…

777 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