asp.net is a programming tool that helps you generate html code quickly and easily, the ultimate goal is a full html page with all other components that should be displayed as scripts, images, ajax calls, etc.
a user control, like an object that also displays html, but you can use it many times, on different pages or on the same page.
For example, a user control can display an image and product details, and then, if you use it inside a repeater, you can display all the products in your database with just one control and a loop.
that the code that I write on my aspx pages in my web project is not all HTML.
What you write on your aspx page is actually programming code that parses asp.net and displays the last html page. Asp.net allows you to have both html and other text inside the code, and you separate the part that should be parsed from the rest of the text using special tags and declarations from asp.net.
source share