Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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
    
Can you please work on your accept rate? You haven't accepted a single answer yet, meanwhile you have asked 7 questions already. Just click small check-mark next to the correct answer. This will help people to recognize the right answer and inspire site experts to answer your questions. –  Andrey Markeev Nov 7 '11 at 9:46
    
I've accepted all. From now on I wii accept all. Sorry –  user3145 Nov 7 '11 at 13:27
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.