SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to make a web part with a quiz (or exam). Tests and questions are stored in 2 separate lists, so I want on the first step to select an exam and based on that selection I want to add steps (there are different number of steps based on exam) by code. The problem is that after I add steps (tehere are added) and I click next at first step the steps dissapear (I think it's something with ViewState). I can't add steps (or the whole wizard) on Init or prerender because the numeber of steps differ from exam to exam. Any ideas ? Thank's

share|improve this question
I've accepted all. From now on I wii accept all. Sorry – user3145 Nov 7 '11 at 13:27
up vote 1 down vote accepted

I anticipate this issue is not related to SharePoint itself. We have asp:Wizard control in our own solution and it works like a charm.

So please ensure that your dynamic steps controls are recreated each postback.

For details, have a look at following articles:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.