".NET" Programming Language - Advanced ASP .NET

Started by sivaji, Jan 10, 2008, 08:37 PM

Previous topic - Next topic

sivaji

Advanced ASP.NET

Web Forms Overview

  * Create programmable Web pages
         * Use any .NET programming language
         * Provides a rich set of server-side controls
         * Web Forms event model
  * Run on any browser
  * Visual and logic parts of your Web application
  * System.Web.UI.WebControls namespace

Sample Web Forms

  * thisfile.aspx.cs:
  * thisfile.aspx:

Web Services

  * Black boxes providing specific functionality
  * Exposed over the Internet
  * To be consumed by applications independent of
        * Operating system
        * Programming language
        * Component model

Web Services Overview

  * For the most part, similar to COM programming
  * Based on simple, open standards
        * XML-based communication
  * Communication = Messaging
  * Client and Web Service are "loosely coupled"
  * URL—the key to Web Services
        * http://<serverName>/<VirtualDir>/<fileName>/<methodName>?var=value
  * Web Service Wire Formats
        * HTTP: GET and POST
        * SOAP
  * Web Services Description Language (WSDL)
        * XML-based
        * Abstract description of the Web Service
  * Transactions
        * ASP.NET transactions = COM+ transactions

Sample Web Service

Server Controls Overview

  * Web Forms Server Controls
  * Server Controls Families
        * HTML
        * ASP.NET
        * Validation
        * User
        * Mobile
  * Data Binding
  * Page Class
        * Reunion of code and content

Server Control Families

  * HTML Server Controls
        *  Map directly to HTML elements
        *  HTML attributes
        *  Samples: HtmlAnchor (<a>), HtmlTable (<table>)
  * ASP.NET Server Controls
        * Abstract controls
             * No one-to-one mapping to HTML server controls
        * Typed object model
        * Automatic browser detection
        * Rich set of controls
        * Sample: TextBox (<asp:textbox>)
  * Validation Controls
        * Check user input
        * Different types of validation
             * Required entry
             * Comparison, range checking, pattern matching
             * User defined
  * User Controls (Pagelets)
        * Partition and reuse UI functionality
        * .ascx file name extension
        * Object model support
  * Mobile Controls

Server Controls: Syntax

  * Focusing ASP.NET Syntax
        * <asp:controlName attributes />
        * controlName
               * TextBox, DropDownList, and so on
        * attributes
               * Id=controlID
               * runat=server

Server Controls Sample
 
  * Checkout.aspx:
  * Checkout.aspx.cs:

Working with Data
   
  * SQL and XML
          *Access and manipulate data
  * Managed data access APIs provided by the runtime
  * Essential Objects
         * OleDbConnection, OleDbCommand, and DataSet
  * Namespaces
         * System.Data and System.Data.OleDb
  *  ADO.NET Overview
         * Disconnected data architecture
         * Datasets are complete relational views of data
         * XML and XML schema
  * C#:
  * ASP.NET:

Caching

  *  Enhance performance of your Web application
  *  Output Caching
          * Store and retrieve pages or objects
          * Page caching
          * Fragment caching
  * Expiration Rules
  * Cache APIs
          * Customize caching principles

Web Applications

  * ASP.NET defines a Web application as the "sum of all files, pages, handlers, modules, and
     executable code that can be invoked or run in the scope of a given virtual directory on a
     web application server"
  *  Distributed Applications

ASP to ASP.NET Migration

  * ASP and ASP.NET can coexist on the same server
  * Make use of ASP.NET features
  * To migrate, ASP files must be modified
           *   ,,Migration Wizard" generates codebehind
           *  ,,Add existing item" and ,,Rename"
  * Performance
           *   Managed vs. unmanaged code
           *   Early vs. late binding

Migration Issues
 
  * Structure
          *  Code blocks and directives
  * Security
          *  ASP.NET security was described earlier
  * Languages
          *  C#, Visual Basic.NET
  * Data Access
          *  ADO to ADO.NET

Summary

   * Now you have been introduced to ASP.NET
          *   Configuration
          *   Web Forms and Web Services
          *   Security
          *   State Management
          *   Accessing Data
          *   Web Applications
          *   Migration
Am now @ Chennai