Γνωριμία με την asp.net 2.0

Download Γνωριμία με την ASP.NET 2.0

If you can't read please download the document

Upload: stelios-karabasakis

Post on 16-Apr-2017

3.481 views

Category:

Technology


0 download

TRANSCRIPT

PowerPoint Presentation

ASP.NET 2.0

DI.UOA 8 2007 -

Web Development Platforms

open source

: 1994 | : 5.2

C

server-side scripting

Sun Microsystems

: 1999 | : 2.1

, Java

Microsoft

: 2002 | : 2.0

.NET

framework

PythonColdFusionPerlLispRuby...

Web Development Platforms

Operating System

DBMS

Platform Acronym

(NetCraft, 2007)

LAMP/WAMP

WISA

MySQL

MS SQL Server

any

Linux, Windows

Windows

any

Apache

IIS

Apache Tomcat

PHP

ASP.NET

JSP

Web Server

56%

31%

2%

ASP.NET;

.NET Framework

ASP

Component-based

(RAD)

web services

.NET Framework, - .NET,- .NET, managed - class library .NET

ASP Classic,

Component Based, framework components

Web Forms

(PHP, ASP Classic .)

Browser

Server

RequestResponseM Web Forms (ASP.NET)

Browser

Server

State'stateful' programming over a stateless protocol

ASP.NET

website

VS.NET 2005

Web Form

Events Postback

state

Databinding

website

Debugging & Monitoring

Master Pages

Sitemaps

ASP.NET

website

VS.NET 2005

Web Form

Events Postback

state

Databinding

ASP.NET

ASP.NET ( .aspx)

ASP.NET

ASP.NET ( .aspx)

protected void MakeUpper (object sender, EventArgs e) { ResultLabel.Text = (InputTextBox.Text).ToUpper(); }

Sample ASP.NET Page

Convert to Uppercase Results:

page_inline.aspx

(inline code)

...

...

page_codebehind.aspx

(code-behind)

page_codebehind.aspx.cs

public class page_codebehind { // Code}

...

ASP.NET

website

VS.NET 2005

Web Form

Events Postback

state

Databinding

web site

ASP.NET

website

VS.NET 2005

Web Form

Events Postback

state

Databinding

VS.NET 2005

ASP.NET

website

VS.NET 2005

Web Form

Events Postback

state

Databinding

web form

web form

1: layout controls Toolbox

web form

2: properties controls

web form

3: Validation controls

web form

4: event handlers events

ASP.NET

website

VS.NET 2005

Web Form

Events Postback

state

Databinding

Postback

postback ASP.NET

postback, state controls server

events postback

' postback state (reentrant form), property PostBackUrl.

events

Global Application Events( global.asax)Page Life Cycle events( page class)Application_Start | Application_Error | Application_EndSession_Start | Session_EndControl eventsevents controlscontrol-specificeventsPage_Init | Page_DisposedPage_Load | Page_Error | Page_ UnloadInit | Load | Unload | DisposedPreRenderDataBindingTextBox: TextChangedDropDownList, RadioButtonList: SelectedIndexChangedButton: ClickCheckBox: CheckedChanged

ASP.NET

website

VS.NET 2005

Web Form

Events Postback

state

Databinding


state

Application SessionViewState
serverApplication.Add(name, value);

Application.Set(name, value)

Application.Get(name)

Application[name]


session sessionSession.Add(name, value);

Session[name]

requests ViewState.Add(name, value);

ViewState[name]

ASP.NET

website

VS.NET 2005

Web Form

Events Postback

state

Databinding

SQL Server Express 2005

To Visual Studio SQL Server Express, SQL Server.

SQL databases SQL Server.

web site

Add New Item... > SQL Database database ( .mdf) App_Data instance SQL Server

instance , Connection String.

.. data source=.\SQLEXPRESS;Integrated Security=SSPI;
AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true

VS.NET

table designer

table viewer/editor

diagram editor

...

ASP.NET

website

VS.NET 2005

Web Form

Events Postback

state

Databinding

Data Source Objects & Databound Controls

Data-
binding

website

Debugging & Monitoring

Master Pages

Sitemaps

.config

machine.config

default websites

path: %WINDIR%\Microsoft.NET\Framework\\CONFIG

web.config

override default machine.config website

website

debugging.

ASP.NET Web Site Administration Tool

interface web.config

Website > ASP.NET Configuration

, :

/ debugging tracing

error page site

site

ASP.NET Web Site Administration Tool

website

Debugging & Monitoring

Master Pages

Sitemaps

O web server VS.NET 2005

, web server, .

VS.NET web server (Cassini). , debugging, web server.

O Cassini Start Debugging ( F5).

O web server VS.NET 2005

, .

non-default ( 80 8080), web servers.

web IIS, Windows XP Home.

Tracing

To tracing .

web.config ASP.NET Configuration Tool

Trace.Write() trace

browser trace.axd site, Trace Viewer

Trace Viewer

website

Debugging & Monitoring

Master Pages

Sitemaps

Master Pages

ASP .NET 2.0

Master Page ( .master) layout

website master page

website master pages

master page property Page.MasterPageFile

master page

tag

tags

website

Debugging & Monitoring

Master Pages

Sitemaps

Sitemaps

sitemap ( .sitemap) XML website.

website sitemaps

controls Menu TreeView bind sitemap.

navigation .

Sitemaps

.sitemap

website

Debugging & Monitoring

Master Pages

Sitemaps

ASP.NET

Login Controls

Stylesheets

Skins

Themes

Localization

Personalization & User Profiles

Adaptive Rendering

Custom Controls

Application Data Caching

ASP.NET

Click to edit the outline text format

Second Outline Level

Third Outline Level