I have a program where I`ll generate a HTML table and save it to a file, now the report has some column content which are quiet big and I dont want to display all of it at once, instead give a 'read more'/'read less' options? Is it possible to do that in C# html? I had referred 'Datatable to html Table' to do this.
I have seen posts using CSS we can do that but I dont have that option since I am generating this in C# building HTML table.
I want to add 'read more' option to the json text in the td tag below, am now even okay to add CSS within the code below.
HTML Code:
<tr align='left' valign='top'>
<td align='left' valign='top' style='width:100px' bgcolor='#F9F8F6'><font size='3'>{
"quiz": {"sport": { "q1": { "question": "Which one is correct team name in NBA?", "options": [ "New York Bulls", "Los Angeles Kings", "Golden State Warriros", "Huston Rocket" ], "answer": "Huston Rocket" }},"maths": { "q1": { "question": "5 + 7 = ?", "options": [ "10", "11", "12", "13" ], "answer": "12" }, "q2": { "question": "12 - 8 = ?", "options": [ "1", "2", "3", "4" ], "answer": "4" }}
}
} </font></td>
</tr>