Logo

Navigation
  • Home
  • Services
    • ERP Solutions
    • Implementation Solutions
    • Support and Maintenance Solutions
    • Custom Solutions
    • Upgrade Solutions
    • Training and Mentoring
    • Web Solutions
    • Production Support
    • Architecture Designing
    • Independent Validation and Testing Services
    • Infrastructure Management
  • Expertise
    • Microsoft Development Expertise
    • Mobile Development
    • SQL Server Database and BI
    • SAP BI, SAP Hana, SAP BO
    • Oracle and BI
    • Oracle RAC
  • Technical Training
    • Learn Data Management
      • Business Intelligence
      • Data Mining
      • Data Modeling
      • Data Warehousing
      • Disaster Recovery
    • Learn Concepts
      • Application Development
      • Client Server
      • Cloud Computing Tutorials
      • Cluster Computing
      • CRM Tutorial
      • EDI Tutorials
      • ERP Tutorials
      • NLP
      • OOPS
      • Concepts
      • SOA Tutorial
      • Supply Chain
      • Technology Trends
      • UML
      • Virtualization
      • Web 2.0
    • Learn Java
      • JavaScript Tutorial
      • JSP Tutorials
      • J2EE
    • Learn Microsoft
      • MSAS
      • ASP.NET
      • ASP.NET 2.0
      • C Sharp
      • MS Project Training
      • Silverlight
      • SQL Server 2005
      • VB.NET 2005
    • Learn Networking
      • Networking
      • Wireless
    • Learn Oracle
      • Oracle 10g
      • PL/SQL
      • Oracle 11g Tutorials
      • Oracle 9i
      • Oracle Apps
    • Learn Programming
      • Ajax Tutorial
      • C Language
      • C++ Tutorials
      • CSS Tutorial
      • CSS3 Tutorial
      • JavaScript Tutorial
      • jQuery Tutorial
      • MainFrame
      • PHP Tutorial
      • VBScript Tutorial
      • XML Tutorial
    • Learn Software Testing
      • Software Testing Types
      • SQA
      • Testing
  • Career Training
    • Career Improvement
      • Career Articles
      • Certification Articles
      • Conflict Management
      • Core Skills
      • Decision Making
      • Entrepreneurship
      • Goal Setting
      • Life Skills
      • Performance Development
      • Personal Excellence
      • Personality Development
      • Problem Solving
      • Relationship Management
      • Self Confidence
      • Self Supervision
      • Social Networking
      • Strategic Planning
      • Time Management
    • Education Help
      • Career Tracks
      • Essay Writing
      • Internship Tips
      • Online Education
      • Scholarships
      • Student Loans
    • Managerial Skills
      • Business Communication
      • Business Networking
      • Facilitator Skills
      • Managing Change
      • Marketing Management
      • Meeting Management
      • Process Management
      • Project Management
      • Project Management Life Cycle
      • Project Management Process
      • Project Risk Management
      • Relationship Management
      • Task Management
      • Team Building
      • Virtual Team Management
    • Essential Life Skills
      • Anger Management
      • Anxiety Management
      • Attitude Development
      • Coaching and Mentoring
      • Emotional Intelligence
      • Stress Management
      • Positive Thinking
    • Communication Skills
      • Conversation Skills
      • Cross Culture Competence
      • English Vocabulary
      • Listening Skills
      • Public Speaking Skills
      • Questioning Skills
    • Soft Skills
      • Assertive Skills
      • Influence Skills
      • Leadership Skills
      • Memory Skills
      • People Skills
      • Presentation Skills
    • Finding a Job
      • Etiquette Tips
      • Group Discussions
      • HR Interviews
      • Interview Notes
      • Job Search Tips
      • Resume Tips
      • Sample Resumes
 

Whats New in ASP.NET 2.0

By Exforsys | on August 11, 2005 |
ASP.NET 2.0

What’s New in ASP.NET 2.0

In this tutorial you will learn What’s New in ASP.NET 2.0, New Controls, Master Pages, Site Navigation, User Management, Personilizaiton, Themes and Skins, Mobile Devices, Site Counters, Configuration and Deployment

What’s New in ASP.NET 2.0

The team led by Scott Gurthie focused upon the following enhancements to ASP.NET:

1. Improving Development productivity by reducing the lines of code to be written by 70%. Most of the frequently required code is now available out of the box.

2. Making ASP.NET easier to use with existing devices like Web browsers, PDAs, Cell phones and so on with a potential to connect to new devices that may emerge in the future.

3. Increasing performance and scalability for developing fast web applications platforms by providing facilities such as caching.

4. Simplifying the administration and management of web applications

5. Providing enhanced hosting opportunities for Internet Service providers

6. Ensuring 100% backward compatibility.

The team split the process of enhancement into three parts:–Application services, Page effects and Rich controls. They focused on each of these parts to come up with an application development platform that is exciting and extremely developer friendly.

We shall briefly look at these enhancements in this section.

New Controls

It is expected that the final release of ASP.NET will include 40 new controls. The existing controls will be retained to ensure backward compatibility.

The data controls have received a face lift. The Grid View control has features for sorting, paging, selection and editing of contents out of the box. The communication with the database is transparently handled and is enabled for both reading and writing data to the database.

The DetailsView control displays single records in a vertical listing of data. This control can be configured to provide for custom outputs.

The TreeView control supports the Data Source Provider concept and a number of data sources can be bound to it, including XML data.

The Bulleted list control designed for data binding displays highly configurable HTML lists and provides support for hyperlinks and link buttons.

Apart from the above major new controls a number of other new controls have been introduced to for use of image maps, upload of files and rapid implementation of Wizards.

Master Pages

Master pages have been designed to help web developers design templates with place holders for content. Unlike in the earlier versions of ASP.NET developers can now rely on visual design support to design their pages.

Site Navigation

Implementation of navigation has been made simple with the integrated navigation structure based on XML data. The provider does the job of feeding the navigation structure with data instead of using the site map support. The provider acts as a bridge between the common framework functions and custom implementation.

User Management

An entire user management system is provided out of the box! Extensive API, special controls for registration, login and so on with data providers to handle the data storage without any code are the highlights of this feature. The configuration user management system and the creation of the database is also assisted by a Wizard. The administration feature helps the developer decide how passwords will be stored, reset and so on and also enables the management of user roles.

Personalization

Personalization makes it possible to assign information to an user account, save it to persistent storage and automatically load it back for the next session. This feature can be used in conjunction with the user management system. Complex data structures like shopping carts can also be persisted using XML serialization. The personalization feature also allows users define one or more zones and within the zone information (web parts) can be arranged using drag and drop. This implies that content can be moved, changed or deleted with ease. The Data Provider takes care of the data storage, freeing the developer from designing ways and means of storing data. All data can be stored in SQL Server or Microsoft Access database.

Themes and Skins

With the new ASP.NET allows developers define themes and skins for their applications. The only effort required is the definition of the theme. Some sample themes are included in the standard installation and they can be activated by making some configuration adjustments in the application. The Implementation of themes provides for design properties, CSS support and integration of individual graphics. A theme and a sub theme(called skin) can be local to the application, the page or the control.

Mobile devices

Mobile computing has been taken to new heights with ASP.NET 2.0. Controls for mobile devices included in ASP.NET 1.1 are still available but are not recommended for use. The new ASP.NET introduces the concept of “adaptive rendering” which makes controls redundant. Regular web controls will adapt to the requirements of the target device! A set of adapter classes have been defined and assigned to each control and they are included for common browsers and mobile devices. Customized adapters can also be defined by the developer. This leaves Microsoft with the option to add adapters for new devices that may enter the market in the future.

Site Counters

This feature helps in counting page requests and also clicks of controls (e.g. AdRotator, Button, link button etc). The .NET framework provides an extensive API to analyze, visualize and process the data.

Configuration

The new ASP.NET does away with the cumbersome configuration files of its earlier versions. The voluminous API to read and write configuration files like web.config in type safe manner makes the whole job easier. Each object gets one corresponding configuration segment and a whole collection where necessary. These objects can be edited and then saved back to the file. In the process every setting in the web application can be controlled by the developer. Web Site Administration tools and Configuration Settings Editor are two major additions under this head.

Deployment

ASP.NET 2.0 opens up several new possibilities for the deployment of the applications. Developers can now create or open projects using the file system or the local IIS, FrontPage Extensions or even FTP. The Web Copy Assistant supports the synchronization of local development version with the live server. The new functionality for compiling complete web applications includes copying of Dynamic link Libraries(DLLs) to the Web server. These libraries contain compiled source code and the content of the aspx and ascx files. This implies that no design time files will be required to be placed on the server and hence modification of the application becomes difficult.

Since we propose to use C#.NET as the programming language, let us briefly also have a look at what is new in C#.NET 2005.

The new features of C#.NET are classified into four categories:- Generics, Iterators, Anonymous methods and Partial Classes.

Generics were introduced to enable developers create type safe data structures. They can be defined as utility helper classes that do not commit the developer to the actual data types being used. This feature improves performance and results in higher quality code as the algorithms can be reused without duplicating type specific code. They are an extension to the CLR type system and allow developers to define types which are unspecified. They are then specified at runtime as the code references the generic type and fills in the details, tailoring the type to particular needs. Though generics serve a similar purpose as C++ templates in managed code they have some additional features which include absences of code bloat and developer confusion. Four distinct benefits accrue to the developer at compile time—Type safety, binary code reuse, performance and clarity.

Iterators are used to iterate over data structures such as arrays, collections using a foreach loop. The condition being that the GetEnumerator method is implemented to return an IEnumerator interface. C# 2.0 defines the generic type safe IEnumerable and IEnumerator interfaces in System.Collections.Generics namespace to overcome these problems. There is no need to work with a design pattern. A single typed method called GetEnumerator() is sufficient. The values will be returned directly. The new keyword yield replaces the return keyword. The compiler then converts the new implementation into a enumerator pattern and eases the process of development. It avoids unnecessary coding and keeps the source code short. A significant feature is that any method can be made enumerable. The method has to return a value defined by the IEnumerable and use the yield keyword to return a single value.

C#.NET 2.0 supports delegates as means of invoking one or more methods. The Delegates provide operators and methods for adding or removing target methods and are frequently used in .NET Framework for events, callbacks, asynchronous calls and multithreading. Anonymous methods are a new feature in C#.NET 2.0 that lets the developer define an anonymous method called by a delegate. This method is defined inline and is not a member method of any class and there is no way of applying method attributes to it. The anonymous method cannot define generic types or add generic constraints. The compiler has to infer the type of delegate used, instantiate a new delegate object of the inferred type, wrap the new delegate around the anonymous method and assign it to the delegate used in the definition of the anonymous method. Anonymous methods can be used anywhere and can be passed to any method that accepts the appropriate delegate type as a parameter. Anonymous methods can use generic types as parameters.

Partial Classes are classes whose definition and implementation are split into two or more separate files. Every part of the class is marked with the new modifier partial. The compiler then looks for the marked and parts and merges the component parts and merges them into one complete implementation at runtime. A precondition is that the assembly of the code parts must be in the same project and a parallel compilation. The classes also should be matched logically and must have identical modifiers, supported interfaces etc. All attributes assigned at class level are handled automatically. This feature was directed towards rapid application development and probably for distinguishing between generated and custom code.

The new features of Visual Studio.NET 2.0 and its repository of software including ASP.NET, C#.NET etc are dedicated solutions created to address specific problems of the developer. It attempts to simplify the overall programming model. The compiler is designed to generate most of the code and the developer is freed from repetitive programming tasks. Code has become more concise and readable.

« « Working with Visual Studio.NET Web Applications
Creating an ASP.NET Application » »

Author Description

Avatar

Editorial Team at Exforsys is a team of IT Consulting and Training team led by Chandra Vennapoosa.

Free Training

RSSSubscribe 391 Followers
  • Popular
  • Recent
  • Application Development in .NET

    November 21, 2007 - 0 Comment
  • ASP.NET Security

    September 2, 2005 - 0 Comment
  • ASP.NET Code Directory

    August 12, 2005 - 0 Comment
  • ASP.NET DataBound Controls – Details View

    September 13, 2005 - 0 Comment
  • What’s New in the .NET Framework 2.0 ?

    July 26, 2005 - 0 Comment
  • Forms Authentication in ASP.NET

    September 2, 2005 - 0 Comment
  • ASP.NET Page Object Model

    August 14, 2005 - 0 Comment
  • ASP.NET Using a Grid to Display Detail Information

    September 13, 2005 - 0 Comment
  • ASP.NET Working with Web Parts

    August 22, 2005 - 0 Comment
  • ASP.NET Managing Membership and Roles

    August 6, 2005 - 0 Comment
  • Application Development in .NET

    November 21, 2007 - 0 Comment
  • ASP.NET Advanced Site Functionality

    September 16, 2005 - 0 Comment
  • ASP.NET : Dynamic Image control

    September 16, 2005 - 0 Comment
  • ASP.NET Creating Web Wizards

    September 16, 2005 - 0 Comment
  • Displaying Master-Detail Data on Separate Pages in ASP.NET

    September 16, 2005 - 0 Comment
  • ASP.NET Displaying Master-Detail Data on the Same Page

    September 13, 2005 - 0 Comment
  • ASP.NET DataBound Controls – Details View

    September 13, 2005 - 0 Comment
  • ASP.NET Using a Grid to Display Detail Information

    September 13, 2005 - 0 Comment
  • ASP.NET Adding Sorting and Paging in GridView

    September 10, 2005 - 0 Comment
  • ASP.NET GridView Filtering

    September 10, 2005 - 0 Comment

Exforsys e-Newsletter

ebook
 

Related Articles

  • Application Development in .NET
  • ASP.NET Advanced Site Functionality
  • ASP.NET : Dynamic Image control
  • ASP.NET Creating Web Wizards
  • Displaying Master-Detail Data on Separate Pages in ASP.NET

Latest Articles

  • Project Management Techniques
  • Product Development Best Practices
  • Importance of Quality Data Management
  • How to Maximize Quality Assurance
  • Utilizing Effective Quality Assurance Strategies
  • Sitemap
  • Privacy Policy
  • DMCA
  • Trademark Information
  • Contact Us
© 2023. All Rights Reserved.IT Training and Consulting
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.AcceptReject Read More
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT