I am trying to use Enrico's asp.net online quiz script but keep getting an error.
The page loads in for the first time ok with the question showing but when i click the submit button I get this error:
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceExcept
ion: Object reference not set to an instance of an object.
Line 43: 'Correct answer?
Line 44: If rblAnswer.SelectedItem.Val
ue = ViewState("CorrectAnswer")
Line 45: intScore += 1
Line 46: arrAnswerHistory.Add(0)
What does this mean? How do I fix it?