question

CharlesZvarimwa-7079 avatar image
1 Vote"
CharlesZvarimwa-7079 asked DuaneArnold-0443 commented

Creating a step-wise Wizard in ASP.net MVC 5 Razor Pages


I would like to create a wizard with 10 a minimum of steps that will allow user to fill in their data, save each step data so that they may continue later and finally submit the form after completing all the steps. Can anyone assist me on how I can achieve in this in razor pages

dotnet-aspnet-core-mvcdotnet-aspnet-core-razor
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

yogyogi avatar image
0 Votes"
yogyogi answered CharlesZvarimwa-7079 commented

I think you can easily get lot of tutorials on Razor Pages about this. I am sharing with you one such tutorial ASP.NET Core Razor Pages : CRUD Operations with Repository Pattern and Entity Framework Core


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you so much..

1 Vote 1 ·
DuaneArnold-0443 avatar image
2 Votes"
DuaneArnold-0443 answered DuaneArnold-0443 commented

Yeah I have done step wizard in ASP.NET Web forms and ASP.NET MVC solutions. You can do the same I feel in an ASP.NET Razor Page solution as well.

1) A SessionState database table will be needed that holds the XML serialized session object that holds the user data entered for all pages.

2) The session object is serialized and saved to the SessionState table when the user leaves the page.

3) The session object for the given user is retrieved from the SessionState table and put into session, and a given page is populated from the session object when going forward or backwardsin the step process.

4) The user does the submit from the last page in the steps, then the data in the session object is sent to the database to be persisted to the application's database tables.

5) The session object for the user is deleted out of the table.

If the user walks away from the screen and a session timeout occurs, then the reactivation process of the page the user left executes the session recovery code and gets the user's session object from the SessionState table and populates the current page from the session object as if nothing happened and all is well.

There is more to it but that's the jest of it.


· 6
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you @DuaneArnold-0443 for such insightful feedback. I am also quite new to Asp.net and I was wondering if you could by any chance show me a sample for this so that I can follow during implementation.

0 Votes 0 ·
DuaneArnold-0443 avatar image DuaneArnold-0443 CharlesZvarimwa-7079 ·

No I don't have any code, becuase I was doing the .NET solution for a client, and the .NET solution, the code, is proprietary to the client.

We can continue to discuss this with each other, and I can give you the requirements that will work for you in a razor page project that you will have to code for and implement in your .NET solution.

0 Votes 0 ·

Thank you @DuaneArnold-0443, I could send you a piece of what I have done for guidance

0 Votes 0 ·
Show more comments