开发者

What is the best way to create a wizard for web?

开发者 https://www.devze.com 2022-12-26 04:03 出处:网络
I want to create a wizard that includes a few steps, that in the final steps we need to include all the steps a开发者_开发百科nd save to the data base.

I want to create a wizard that includes a few steps, that in the final steps we need to include all the steps a开发者_开发百科nd save to the data base. What is the best design to do this ?

Is there an implementation for jquery ? Do I need to save the steps in session till the final save ?


If you will not go to the database on each wizard page, then you will have to use either sessions or cookies to store the data between page requests.

You can also use client side tricks that will utilize javascript and hidden frames to hold the data.


I have created a few wizard for www usage. If you need to create 2 or more wizards then it is better to create a simple wizard framework responsible for navigation and data storage in session.

In my case every wizard step implements IWizardStep interface responsible for temporary data storage, as well as some common information like step number, display strings, next & previous steps etc. Then I just put them together and the framework takes care of displaying them in order, navigation and processing.


I'm not that sure if this is what you need but the C# has a wizard control that is a good way to implement wizard type processes.

http://weblogs.asp.net/scottgu/archive/2006/02/21/438732.aspx

Else, If you want to implement your own flow, use session to capture the values per step and save it later on the last step. cheers..

0

精彩评论

暂无评论...
验证码 换一张
取 消