I have two Web Programs, working with .Net Framework 4.8.1 and 4.5.2. is it required to migrate to .NET 8?
It depends.
Unless you need the features available in the .NET 8.0, how about upgrading only .NET Framework 4.5.2 application to 4.8.1?
Support of .NET 8.0 will end on Nov 10, 2026 while .NET Framework 4.8.1 will be supported as long as it is installed on a supported version of Windows. Please see the following documents:
If your applications are ASP.NET Web Forms, there will be no choice other than staying on .NET Framework.