Hi Firuz,
C#
QuestionIndex++;
GetCurrentQuestion(QuestionIndex, DataTableQuestions, int.Parse(rbtnOptions.SelectedItem.Value));
Replace code
C#
QuestionIndex++;
if (rbtnOptions.SelectedValue == "")
{
GetCurrentQuestion(QuestionIndex, DataTableQuestions, QuestionIndex);
}
else
{
GetCurrentQuestion(QuestionIndex, DataTableQuestions, Convert.ToInt32(rbtnOptions.SelectedValue));
}
Screenshot
I hope works for you.