private void NonScoreTable(int AOID) { StringBuilder sb = new StringBuilder(); Assessment ass = new Assessment(); if (AOID != 0) { ass = ass.GetAssessmentByOID_QuestionSheet(AOID); Section sec; for (int sn = 0; sn < ass.SectionList.Count; sn++) { sec = ass.SectionList[sn]; if (sec.SectionName == "NoScore") { // AllQList.Clear(); Collection<Question> QList = new Collection<Question>(); QList = sec.QuestionList; for (int i = 0; i < QList.Count; i++) { Question qu = QList[i]; { AllQList.Add(qu); } } sb.Append(" <table width ='100%' >"); sb.Append("<tr>"); sb.Append("<td width='100%' valign='top'>"); sb.Append(" <table width ='100%' >"); sb.Append("<tr>"); int countLoop = 0; int modCounter = 0; foreach (Question q in AllQList) { sb.Append(" <td class='Groupnonscorequestion_" + QuestionCounter + "'>"); sb.Append("<div class='qustion_title_bg' id='div" + q.QuestionOID + "'>" + q.QuestionText + "</div> <br />"); //sb.Append("<div id ='" + q.QuestionOID + "'>" + q.QuestionRespList.Count + "</div> <br />"); sb.Append("<input type= 'hidden' id ='" + q.QuestionOID + "' value= '" + q.QuestionRespList.Count + "' />"); countLoop = 0; modCounter++; foreach (QuestionResponse resp in q.QuestionRespList) { countLoop = countLoop + 1; sb.Append("<label><input class='nonscorequestions_" + QuestionCounter +"' id='Radio" + q.QuestionOID + countLoop + "' value =" + resp.Response + " name='A" + q.QuestionOID + resp.QuestionResponseOID + "' onclick=' clearAllRadios(" + q.QuestionOID + countLoop + ", " + q.QuestionRespList.Count + ",0)' type='radio' runat='server' enableviewstate='true'/>" + resp.Response + "</label><br />"); } sb.Append("</td>"); if (modCounter % 2 == 0) { sb.Append("</tr>"); sb.Append("<tr>"); } QuestionCounter++; } sb.Append("</td>"); sb.Append("</tr>"); sb.Append(" </table>"); sb.Append(" </td>"); sb.Append("</tr>"); sb.Append(" </table>"); } } divSoreTable.InnerHtml = sb.ToString(); } }