Guest User

Untitled

a guest
Jan 16th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. success: function(result){
  2. $('#divSubjectQuestions').html(result);
  3. },
  4.  
  5. int SubjectId = Convert.ToInt32(sSubjectId);
  6. DataTable QuestionsTable = QuestionDataAccess.RetrieveSubjectQuestion(SubjectId);
  7.  
  8. string head = "<table class='gridstyle' cellspacing='0' rules='all' border='1' style='border-collapse:collapse;width: 100%;'><tr class='headerclass'><th scope='col'>Subject l Questions</th></tr>";
  9. string body = "";
  10. foreach (DataRow row in QuestionsTable.Rows)
  11. {
  12. body += " <tr><td> <a href='QuestionDisplay.aspx?Id=" + row.ItemArray.GetValue(1) + "'style='font-size:Small;text-decoration:none;'>" + row.ItemArray.GetValue(0) + "</a><br /><span style='font-size:XX-Small;'>" + row.ItemArray.GetValue(2) + "</span>&nbsp;<span style='color:Gray;font-size:XX-Small;'>Boosts" + row.ItemArray.GetValue(5) + "</span>&nbsp;<span style='font-size:XX-Small;'>" + row.ItemArray.GetValue(4) + "</span>&nbsp;<span style='font-size:XX-Small;'>" + row.ItemArray.GetValue(3) + "</span>&nbsp;<span style='font-size:XX-Small;'>" + row.ItemArray.GetValue(6) + "</span></td></tr>";
  13. }
  14. // return head + body + "</table>";
  15. return "<p>boom!</b>";
  16.  
  17. success: function(result){
  18. $('#divSubjectQuestions').html(result[0]);
  19. },
Add Comment
Please, Sign In to add comment