SlideShare a Scribd company logo
Chapter 1: An Introduction To
ASP.NET Web Programming
Liu, Jie
Professor
Department of Computer Science
Western Oregon University
Liuj@wou.edu
Web Applications
 The Client/Server model -- a computation model for PCs to connect to
other computers, like the monitor and mainframe architecture model.
• Client –sends a request
 Thin client
 Thick client
• Server – answers the requests
 For Web based applications
• Communication are through HTTP (hypertext Transfer Protocol)
 What is a protocol
• Client is a browser such as IE (Internet Explorer)
• A browser displays pages defined using HTML tags (Hypertext, Markup
Language)
 Static pages – not going to change
 Dynamic pages – formed dynamically according to the requests
• The application itself is defined on a web server such as IIS (Internet
Information Services), with in turn may interact with other server such as a
Database Management System (DBMS) that is hosted on a database
server
Web Applications
Domain name
Path
http://sundown.wou.edu:81/en/mail.html?lang=en&laurel=on&cal=1
Protocol
Port
Page/file
Start of parameters
Parameter #1
Parameter #2
Dynamic Pages
 A dynamic page is generated each time it is called
 The same page may be posted back to the server for
processing.
 Nevertheless, the page itself is stateless, i.e., it will not
maintain the value of a variable between each loading of
the page
More About State
 “State” refers to the values of a variable or object
 Variables in a web page is stateless meaning that
they do not “remember” their previous values
 Methods used to maintain a variable’s state
include
• Use view state
• Use session or application state object
• Using static variable (C# feature)
• Use cookie
• Use database
(show Website 3 example and Visual Studio)
A Closer Look at the example
 The .ASPX page
• Page directives
<%@ Page Language="C#" AutoEventWireup="true"
CodeFile="Default.aspx.cs" Inherits="_Default" %>
AutoEventWireup allows Page_Load linked with page load event and
called when the page is loaded
 The .ASPX.CS page
using System.Web.UI.HtmlControls;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
… …
if (IsPostBack)
… …
A Closer Look at the example
 More about the Visual Studio in coming chapters
 A page and a page behind it (separation of
presentation and business logic)
 Controls, properties, and events
 If I change nTemp to be a static variable, what will
happen?
 Different between design view and source view
The .Net Framework Structure
Remote users
over Internet
Any Browser
Remote Systems
Over Internet
Any Hardware/OS
Local users
Traditional Window
application
ASP.NET
Application Services
Web Forms Web Services
Windows Forms
Controls Windows Application Services
.Net Compliant Programming Languages **
VB.NET, C++, C#, J++, etc
.Net Framework Class Library
Common Language Runtime
Operating System
Windows 2000/2003/NT/98/ME/XP and may be other OSs
.Net Framework
VB, C#, and J++
// Declare and initialize a string.string
strFruit = "oranges,apples,peaches,kumquats,nectarines,mangos";
// Declare an array.
string[] arrFruit;
// Place each word in an array element.
arrFruit = strFruit.Split(new Char [] {',', '.', ':'});
// Sort the array.
System.Array.Sort(arrFruit);
// Put the sorted array back in the string.
strFruit = System.String.Join(" ", arrFruit);
Summary
 Have general understanding about the following
• Web applications
• Web page
• Stateless
• ASP.NET components (IIS, frame work, CLR, etc)
• Client/Server
• Dynamic pages
• URL
 Helpful web sites
• www.msdn.microsoft.com
• www.Asp.net

More Related Content

PPTX
ASP.NET Lecture 1
PDF
Introductionto asp net-ppt
PPT
DevNext - Web Programming Concepts Using Asp Net
PPTX
ASP.NET Presentation
PDF
Asp.netrole
PPTX
Asp.net
PDF
Asp.net web application framework project.pdf
PPT
The complete ASP.NET (IIS) Tutorial with code example in power point slide show
ASP.NET Lecture 1
Introductionto asp net-ppt
DevNext - Web Programming Concepts Using Asp Net
ASP.NET Presentation
Asp.netrole
Asp.net
Asp.net web application framework project.pdf
The complete ASP.NET (IIS) Tutorial with code example in power point slide show

Similar to Introduction to ASP related to basics of asp (20)

PPTX
Asp.net and .Net Framework ppt presentation
PPT
Developing an ASP.NET Web Application
PPT
How to develop asp web applications
PPTX
NET_Training.pptx
PPT
PPT
Intro To Asp Net And Web Forms
ZIP
ASP.Net Presentation Part1
PPTX
Web tech
PPTX
Web techh
PPTX
Web tech
PPTX
Web tech
PPTX
ASP.NET Presentation
PPT
Asp dot net long
PPTX
PPTX
Introduction to asp.net
PPT
Intro to asp.net
PPTX
Introduction to ASP.NET
PPTX
Aspnet architecture
PDF
Asp.Net 3 5 Part 1
Asp.net and .Net Framework ppt presentation
Developing an ASP.NET Web Application
How to develop asp web applications
NET_Training.pptx
Intro To Asp Net And Web Forms
ASP.Net Presentation Part1
Web tech
Web techh
Web tech
Web tech
ASP.NET Presentation
Asp dot net long
Introduction to asp.net
Intro to asp.net
Introduction to ASP.NET
Aspnet architecture
Asp.Net 3 5 Part 1
Ad

Recently uploaded (20)

PDF
Skskkxiixijsjsnwkwkaksixindndndjdjdjsjjssk
PPTX
mahatma gandhi bus terminal in india Case Study.pptx
PPTX
CLASS_11_BUSINESS_STUDIES_PPT_CHAPTER_1_Business_Trade_Commerce.pptx
PPTX
12. Community Pharmacy and How to organize it
PDF
BRANDBOOK-Presidential Award Scheme-Kenya-2023
PPT
Machine printing techniques and plangi dyeing
PDF
Trusted Executive Protection Services in Ontario — Discreet & Professional.pdf
PDF
Design Thinking - Module 1 - Introduction To Design Thinking - Dr. Rohan Dasg...
DOCX
The story of the first moon landing.docx
PDF
Interior Structure and Construction A1 NGYANQI
PPTX
Tenders & Contracts Works _ Services Afzal.pptx
PPTX
DOC-20250430-WA0014._20250714_235747_0000.pptx
PPTX
An introduction to AI in research and reference management
PDF
Facade & Landscape Lighting Techniques and Trends.pptx.pdf
PDF
Key Trends in Website Development 2025 | B3AITS - Bow & 3 Arrows IT Solutions
PDF
The Advantages of Working With a Design-Build Studio
PPTX
LITERATURE CASE STUDY DESIGN SEMESTER 5.pptx
PPTX
Wisp Textiles: Where Comfort Meets Everyday Style
PDF
Phone away, tabs closed: No multitasking
PPTX
ANATOMY OF ANTERIOR CHAMBER ANGLE AND GONIOSCOPY.pptx
Skskkxiixijsjsnwkwkaksixindndndjdjdjsjjssk
mahatma gandhi bus terminal in india Case Study.pptx
CLASS_11_BUSINESS_STUDIES_PPT_CHAPTER_1_Business_Trade_Commerce.pptx
12. Community Pharmacy and How to organize it
BRANDBOOK-Presidential Award Scheme-Kenya-2023
Machine printing techniques and plangi dyeing
Trusted Executive Protection Services in Ontario — Discreet & Professional.pdf
Design Thinking - Module 1 - Introduction To Design Thinking - Dr. Rohan Dasg...
The story of the first moon landing.docx
Interior Structure and Construction A1 NGYANQI
Tenders & Contracts Works _ Services Afzal.pptx
DOC-20250430-WA0014._20250714_235747_0000.pptx
An introduction to AI in research and reference management
Facade & Landscape Lighting Techniques and Trends.pptx.pdf
Key Trends in Website Development 2025 | B3AITS - Bow & 3 Arrows IT Solutions
The Advantages of Working With a Design-Build Studio
LITERATURE CASE STUDY DESIGN SEMESTER 5.pptx
Wisp Textiles: Where Comfort Meets Everyday Style
Phone away, tabs closed: No multitasking
ANATOMY OF ANTERIOR CHAMBER ANGLE AND GONIOSCOPY.pptx
Ad

Introduction to ASP related to basics of asp

  • 1. Chapter 1: An Introduction To ASP.NET Web Programming Liu, Jie Professor Department of Computer Science Western Oregon University Liuj@wou.edu
  • 2. Web Applications  The Client/Server model -- a computation model for PCs to connect to other computers, like the monitor and mainframe architecture model. • Client –sends a request  Thin client  Thick client • Server – answers the requests  For Web based applications • Communication are through HTTP (hypertext Transfer Protocol)  What is a protocol • Client is a browser such as IE (Internet Explorer) • A browser displays pages defined using HTML tags (Hypertext, Markup Language)  Static pages – not going to change  Dynamic pages – formed dynamically according to the requests • The application itself is defined on a web server such as IIS (Internet Information Services), with in turn may interact with other server such as a Database Management System (DBMS) that is hosted on a database server
  • 4. Dynamic Pages  A dynamic page is generated each time it is called  The same page may be posted back to the server for processing.  Nevertheless, the page itself is stateless, i.e., it will not maintain the value of a variable between each loading of the page
  • 5. More About State  “State” refers to the values of a variable or object  Variables in a web page is stateless meaning that they do not “remember” their previous values  Methods used to maintain a variable’s state include • Use view state • Use session or application state object • Using static variable (C# feature) • Use cookie • Use database (show Website 3 example and Visual Studio)
  • 6. A Closer Look at the example  The .ASPX page • Page directives <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> AutoEventWireup allows Page_Load linked with page load event and called when the page is loaded  The .ASPX.CS page using System.Web.UI.HtmlControls; public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { … … if (IsPostBack) … …
  • 7. A Closer Look at the example  More about the Visual Studio in coming chapters  A page and a page behind it (separation of presentation and business logic)  Controls, properties, and events  If I change nTemp to be a static variable, what will happen?  Different between design view and source view
  • 8. The .Net Framework Structure Remote users over Internet Any Browser Remote Systems Over Internet Any Hardware/OS Local users Traditional Window application ASP.NET Application Services Web Forms Web Services Windows Forms Controls Windows Application Services .Net Compliant Programming Languages ** VB.NET, C++, C#, J++, etc .Net Framework Class Library Common Language Runtime Operating System Windows 2000/2003/NT/98/ME/XP and may be other OSs .Net Framework
  • 9. VB, C#, and J++ // Declare and initialize a string.string strFruit = "oranges,apples,peaches,kumquats,nectarines,mangos"; // Declare an array. string[] arrFruit; // Place each word in an array element. arrFruit = strFruit.Split(new Char [] {',', '.', ':'}); // Sort the array. System.Array.Sort(arrFruit); // Put the sorted array back in the string. strFruit = System.String.Join(" ", arrFruit);
  • 10. Summary  Have general understanding about the following • Web applications • Web page • Stateless • ASP.NET components (IIS, frame work, CLR, etc) • Client/Server • Dynamic pages • URL  Helpful web sites • www.msdn.microsoft.com • www.Asp.net