It will depend on the quality of the code of the previous site. If it used a dal or an ORM then this can be converted. If it used webform direct databinding then it’s more work.
Webforms was component based, and razor pages is template based, so you will redesign this.
You may need a new state management design. Webforms stored page state in a hidden field. You will want a new approach.
An approach you might want to look at, is to first convert the site to 4.8 mvc 5 in place. You can recode each page one by one or a group, but still have a running site. Then it’s a simple migrate to .net 6. Just be sure to learn the features not in asp.net core (HttpContext.Current for example). You can build a parallel .net 6 site to test compatibility.
The main downside, is your new code will be limited to c# 7.3 features.