The .NET Framework is a software development platform that provides a comprehensive programming model for building applications that have visually stunning user experiences, seamless and secure communication, and the ability to model a range of business processes. It consists of a large library of coded solutions to common programming problems and a virtual machine that manages the execution of programs written specifically for the framework.
ASP.NET is a web application framework built on the .NET Framework. It provides a programming model for building web applications and services that are easy to develop, deploy, and maintain. ASP.NET includes a number of features such as server controls, master pages, themes, and a rich set of server-side controls that make web development easier.
For example, a .NET Framework application could be a Windows desktop application, a web application, or a mobile application. An ASP.NET application, on the other hand, would be a web application.