asp.net - Grid view - Using radiobutton for single choice and checkbox for multiple choice(Kind of Quiz Application) -
i have questions in sql table, radiobutton , checkbox need used dynamically display questions , choices in grid. sql data table
question_id(int) | choice1 | choice 2 | choice3 | choice4 | correctanswer. the assumption made here if correctanswer length = 1 radiobutton control type else if correctanswer > 1 , check box type. based on can 1 please me how display these question in grid appropriate radiobutton , checkbox controls , checked answers onclicking submit button.
in gridview row databound event have check correct answer length , based on show or hide radio button or check box
you have put both in same row manage view based on condition , same thing have when going save result in database.
Comments
Post a Comment