public string Quizeloader(string TestID, int _PageItems, int pageindex, string TSRelationshipID) { string htmltext = ""; if (Dst.statecount == 0) { BindQuizable(TestID, TSRelationshipID); } htmltext += "<table class=\"Quiz_table\">"; if (_PageItems != 0) { PageItems = _PageItems; int Pages = QuizCount % PageItems == 0 ? QuizCount / PageItems : (int)(QuizCount / PageItems) + 1; QuizPagerCount = Pages; for (int j = 0; j < PageItems; j++) { int ex = pageindex * _PageItems - _PageItems + j; string temp = Dst.Readex(ex) + ""; if (temp != "") { htmltext += temp; } } } else { string temp = Dst.Read() + ""; while (temp != "") { htmltext += temp; temp = Dst.Read() + ""; } } htmltext += "</table>"; return(htmltext); }