ASP.NET help to add random questions to the data table
Posted on 2009-05-06
I am having situation where I need to add 30 random question to the temp table (data table) i am trying to make at the run time....
I have a script already to show random questions one at a time on the page, every time you click on the next button you get the next random question from the total 100 questions.
All I am trying here is to use the same script but instead of the click event I would have to use a For Loop to return 30 random questions and assign them to the table...
I hope you may understand If you could please see the attached code snippet.
I will be glad if someone of you may advise me the correct form to fetch and assign them to the temp table.
Once I have the data ready I can then send the dynamic table to the crystal report to produce the report in the desired output format, ex: PDF.
Your help would greatly be appreciated.