Better ways to learn together.
General
function Change (clientId) {
var samplequantity = $ ("input[id*=" + ClientId + "_textboxsamplenumber]"). Val ();//number of samples
var qualfiedquantity = $ ("input[id*=" + ClientId + "_textboxqualfiednumber]"). Val ();//Qualifying number
var labelunqualfiednumber = document.getElementById (clientId + "_labelunqualfiednumber");
var Labelyield = document.getElementById (clientId + "_labelyield");
if (samplequantity! = 0) {
if (qualfiedquantity! = ") {
labelunqualfiednumber.innerhtml = (parsefloat (samplequantity)-parsefloat (Qualfiedquantity)). ToString ();
labelyield.innerhtml = ((parsefloat (qualfiedquantity)/parsefloat (samplequantity)). ToFixed (3) + "%";
} else {
labelunqualfiednumber.innerhtml = ";
labelyield.innerhtml = ";
}
}
}
Js+jquery calculates the value of the server control textbox and displays it on lable