Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a legacy application in asp.net web forms and I would like to convert it into asp.mvc. I am using SQL server session state. Currently, I am planning to convert page by page, this means both web forms and mvc pages co exist in the application. I would like to share the session between both pages. Please help me.

What I have tried:

I am in search for a good solution
Posted
Updated 4-May-23 21:40pm

1 solution

Use the .NET Upgrade Assistant[^] to do a side-by-side incremental upgrade.

Upgrading your .NET projects with Visual Studio - .NET Blog[^]
Migrating from ASP.NET to ASP.NET Core with Project Migrations Part 5 - .NET Blog[^]

This will use the Microsoft.AspNetCore.SystemWebAdapters.FrameworkServices[^] package to enable you to share session state between the two projects.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900