Difference Between ASP.NET 1.x & ASP.NET 2.0
Difference Between ASP.NET 1.x & ASP.NET 2.0
1. Code behind file
- About code behind file is now a partial class rather than a full class,
A partial class is a new .NET construct that allows you to define a single class in multiple source files
The new code behind file is much cleaner and easier to read. The code behind file has automatic access to any controls added to the ASP.NET page
It creates automatically /Bin, /app_code, /app_globalresources, /app_localresources, /app_webreferences, /app_data, /app_browsers, /app_themes.
App_code: Any classes you place inside the /app_code directory are automatically accessible from any ASPX page in your application. Visual Studio 2005 and the ASP.NET compiler both automatically create an assembly from these classes and place a reference to the assembly in your Web application.
3. Intellisense in Web.config file
Reduces chances of mis configured files.
4. Administrative Website
Through this tool, an administrator can manage the application by configuring services such as user management, the personalization providers, security, debugging - tracing information and profiles.
Visual Studio 2005 includes a light weight Web server
You can use the built-in server, and get full debugging support. Another important advantage is any user can build and test an application. You no longer need to be an administrator on the computer. It should be noted that you must still deploy your final applications on IIS. This web server comes in picture when we select the FileSystem while creating the new Website project.
ASP.NET 2.0 uses a wide variety of providers, including:
- Membership—The membership provider manages supports user authentication and user management.
- Profile—The profile provider supports storage and retrieval of user specific data linked to a profile.
- Personalization—The personalization provider supports persistence of Web Part configurations and layouts for each user.
- Site Navigation—The site navigation provider maps the physical storage locations of ASP.NET pages with a logical model that can be used for in-site navigation and linked to the various new navigation controls
- Data providers—ADO.NET has always used a provider model to facilitate the connection between a database and the ADO.NET API. ASP.NET 2.0 builds upon the data provider by encapsulating many of the ADO.NET data calls in a new object called a data source.
New Features in ASP.NET 2.0
Master Pages
Themes and Skins .skin
Login Controls, GridView,
DetailsView
Profiles
Within machine.config or Web.config, you can define a profile with
0 Comments:
Post a Comment
<< Home