Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- success: function(result){
- $('#divSubjectQuestions').html(result);
- },
- int SubjectId = Convert.ToInt32(sSubjectId);
- DataTable QuestionsTable = QuestionDataAccess.RetrieveSubjectQuestion(SubjectId);
- 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>";
- string body = "";
- foreach (DataRow row in QuestionsTable.Rows)
- {
- 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> <span style='color:Gray;font-size:XX-Small;'>Boosts" + row.ItemArray.GetValue(5) + "</span> <span style='font-size:XX-Small;'>" + row.ItemArray.GetValue(4) + "</span> <span style='font-size:XX-Small;'>" + row.ItemArray.GetValue(3) + "</span> <span style='font-size:XX-Small;'>" + row.ItemArray.GetValue(6) + "</span></td></tr>";
- }
- // return head + body + "</table>";
- return "<p>boom!</b>";
- success: function(result){
- $('#divSubjectQuestions').html(result[0]);
- },
Add Comment
Please, Sign In to add comment