Solved

java script using RadNumericTextBox

Posted on 2010-09-23
4
934 Views
Last Modified: 2012-05-10
what is wrong with this: the text boxes are all RadNumericTextBox

 function calcTotal()
{    
document.getElementById('txtTotalPrice').set_value = document.getElementById('txtPricePerUnit').get_value * document.getElementById('txtQuantity').get_value

return true;
}
0
Comment
Question by:vbnetcoder
  • 3
4 Comments
 
LVL 51

Expert Comment

by:HainKurt
ID: 33748648
what is set_value & get_value?
0
 
LVL 51

Expert Comment

by:HainKurt
ID: 33748659
maybe this is enough

<script>
function calcTotal(){
  document.getElementById('txtTotalPrice').value = document.getElementById('txtPricePerUnit').value * document.getElementById('txtQuantity').value;
}
</script>
0
 

Author Comment

by:vbnetcoder
ID: 33748738
0
 
LVL 51

Accepted Solution

by:
HainKurt earned 500 total points
ID: 33750060
you should use

<script type="text/javascript">
var txtTotalPrice= $find("<%= txtTotalPrice.ClientID %>");
var txtPricePerUnit= $find("<%= txtPricePerUnit.ClientID %>");
var txtQuantity= $find("<%= txtQuantity.ClientID %>");
txtTotalPrice.set_value = txtPricePerUnit.get_value * txtQuantity.get_value
</script>

I guess ;)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I've been trying to accomplish this for a while and it just struck me yesterday how to accomplish this task. I have done searches all over the internet looking for ways to email pages from my applications and finally I have done it!!! Every single s…
Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
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…

867 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

22 Experts available now in Live!

Get 1:1 Help Now