chapter 1 introducing asp net 2 0
Download
Skip this Video
Download Presentation
Chapter 1 Introducing ASP.NET 2.0

Loading in 2 Seconds...

play fullscreen
1 / 48

Chapter 1 Introducing ASP.NET 2.0 - PowerPoint PPT Presentation


  • 96 Views
  • Uploaded on

Chapter 1 Introducing ASP.NET 2.0. What is ASP.NET?. ASP.NET 2.0 is the current version of ASP.NET, Microsoft’s powerful technology for creating dynamic Web content.

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'Chapter 1 Introducing ASP.NET 2.0' - aolani


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
what is asp net
What is ASP.NET?
  • ASP.NET 2.0
    • is the current version of ASP.NET, Microsoft’s powerful technology for creating dynamic Web content.
    • is one of the key technologies of Microsoft's .NET Framework(which is both a development framework and software platform).
static vs dynamic web pages
Static vs Dynamic Web Pages
  • Most Web pages that you view are not static HTML pages.
  • Instead they are dynamic generated content output from programs that run on servers.
    • These programs can interact with server resources like databases and XML Web services.
dynamic web technologies
Dynamic Web Technologies
  • There are quite a number of different technologies for dynamically generating Web content.
    • ASP.NET
    • ASP
    • CGI
    • ColdFusion
    • JSP
    • PHP
    • Ruby on Rails
  • All of these technologies share one thing in common:
    • Using programming logic, they generate HTML on the server and send it back to the requesting browser.
asp net advantages
ASP.NET Advantages
  • ASP.NET provides a number of advantages compared to Microsoft’s earlier, "classic" ASP technology.
    • Better performance over ASP
      • because ASP.NET pages are compiled.
    • More powerful development environment.
      • It uses fully object oriented languages that work with a rich class library along with a very complete set of server-based controls that encapsulate common Web functionality that significantly reduces the amount of coding for Web developers.
    • Easier maintenance
    • Smoother deployment and configuration.
      • Due to the architecture of the .NET Framework.
the net framework
The .NET Framework
  • Many of the advantages that ASP.NET provides in comparison to other dynamic Web technologies are a result of its integration into Microsoft’s .NET Framework.
  • The .NET Framework is a development framework that provides a new programming interface to Windows services and APIs, and integrates a number of technologies that emerged from Microsoft during the late 1990s.
  • The .NET Framework is also a software platform for the running and deployment of Windows-based software systems
core features of net
Core Features of .NET
  • Language interoperability
    • A software system can be created using any combination of the available .NET languages.
  • Fully object-oriented languages
  • Common runtime engine shared by all languages
  • Base class library usable by all languages
  • Better security
  • Better performance
net architecture
.NET Architecture
  • The .NET Framework "sits" on top of the Windows operating system.
  • Consists of the following components:
    • Language compilers
    • Common Language Runtime
    • .NET Framework Base Class Library

Source: Lam and Tai, .NET Framework Essentials, 3rd Edition (O'Reilly, 2003).

asp net web forms
ASP.NET Web Forms
  • An ASP.NET web application :
    • Consists of any number of web pages, controls, programming classes, web services, and other files
    • Residing within a single web server application directory
  • The principal component of an ASP.NET web application are its web pages.
  • These are text files with an .aspx extension and are called web forms.
  • Consist of two parts:
    • The declaratively-defined (i.e., by markup/tags) visual elements.
    • The programming logic.
web form programming logic
Web Form Programming Logic
  • A web form's programming logic can exist in either:
    • The same file as the visual elements
      • i.e., the .aspx file.
      • This code is contained within a code-declaration block.
    • In a separate class file.
      • The file is usually called a code-behind file.
      • By convention, its filename is same as .aspx file but with a language extension.
        • HelloWorld.aspx <- web form
        • HelloWorld.aspx.cs <- code-behind file
helloworld aspx example
HelloWorld.aspx Example

<%@ Page Language="C#" %>

Hello World Embedded

Hello World

The date is

Page directive

Code declaration block

Necessary to make this a web form

Web server control

page directive
Page Directive
  • The Page directive is used to define page-specific instructions used by the ASP.NET environment.
    • This directive indicates that the programming code in any script blocks will be C#.
  • Directives are processing instructions for the parser and compiler when they process an ASP.NET page.
    • Although directives can be located anywhere in an .aspx file, the standard practice is to place them at the beginning of the file.
    • Directive statements are not case sensitive and quotation marks are not required around the attribute values.

<%@ Page Language="C#" %>

script element

  • Notice that the