Visual Web part: It's pretty new to the Sharepoint 2010 and it has the following files:
- ASCX file
- .cs file
- elements.xml file
- .webpart file
How it works:
- Create a Visual Web Part from Visual Studio 2010 Template
Press F5 after starting the new Visual Web Part, solution is deployed to the server and is ready to run.