Posted on: 5/17/2011 11:10:28 AM | Views : 208

i have to calculate score for 27 questions but i m getting score for 26 questions only . can u please tell  watz the error/mistake i have done
thank you
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="appraisalrating.ascx.cs" Inherits="ERP.UserControl.appraisalrating" %> <html> <head> <script type="text/javascript"> function addTemplae() { var tempName=window.prompt("Enter template Name","XXX"); document.getElementById('<%=Label1.ClientID%>').Text=tempName; } var score=0; function check() { score=0; no_Questions=26; var x; for(var inc=1;inc<27;inc++) { x='form'+inc; var temp=document.getElementById(x); for(var i=0;i<temp.length;i++) { if(temp.elements[i].checked) { score=parseInt(score)+parseInt(temp.elements[i].value); break; } else if(temp.elements[i].value=="0") { no_Questi ...

Go to the complete details ...