Solved

How to sum up fields using C3 and ASp.net

Posted on 2014-09-04
1
83 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
Comment Utility
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
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…

762 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now