hello, i am self-studying asp.net and was trying some small projects to help understand the concepts better.
i am creating a simple e-learning website using html and asp.net(c#), that has a fixed number of multiple choices questionnaire on one of its pages, i create the questionnaire by choosing random questions, out of a database table ,then creating a string that will hold the html code containing the questions properly formatted (questions in labels and answers as radio buttons),before inserting it into the innerhtml of a div tag. all the above being done on pageload(); the problem is that i need to check the answers against the answer sheet (i already stored the correct answers in an array),but since the html code get added after page load, the code behind cant see the tags or their ids.
The question: i've been told i can access the html tags using request.form["Q#"] ? can some1 please explain to me..how it can be done ?
and any other possible ways to do the same task ? (read the note below plz)
Note: i know i can create the questionnaire structure in html, and then add the questions/answers into labels.
or creating hidden fields with runat server properties and then storing the answers into them, and checking the answer sheet against them with server side code.