cis 264 - asp tim brown. .html www .html www .html www

25
CIS 264 - ASP Tim Brown

Upload: charles-ferguson

Post on 26-Dec-2015

257 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: CIS 264 - ASP Tim Brown. .html www .html www .html www

CIS 264 - ASP

Tim Brown

Page 2: CIS 264 - ASP Tim Brown. .html www .html www .html www

.html

www

Page 3: CIS 264 - ASP Tim Brown. .html www .html www .html www

.html

www

Page 4: CIS 264 - ASP Tim Brown. .html www .html www .html www

.html

www

Page 5: CIS 264 - ASP Tim Brown. .html www .html www .html www

.html

www

Page 6: CIS 264 - ASP Tim Brown. .html www .html www .html www

.html

www

JavaScriptVBScript

Page 7: CIS 264 - ASP Tim Brown. .html www .html www .html www

.html

.cgi

www

PerlJavaScriptVBScript

Page 8: CIS 264 - ASP Tim Brown. .html www .html www .html www

.html

.cgi

www

db

OS

PerlJavaScriptVBScript

Page 9: CIS 264 - ASP Tim Brown. .html www .html www .html www

.html

.cgi

.asp

www

db

VBScriptJScript

JavaScriptVBScript

Perl

Page 10: CIS 264 - ASP Tim Brown. .html www .html www .html www

.html

.cgi

.asp

www

db

Page 11: CIS 264 - ASP Tim Brown. .html www .html www .html www

ASP .NET Requirements

1. IIS 5.0 or higher (or equivalent) (component of XP Pro, Vista, and Win 7)

2. Development Environment or Text Editor(Visual Studio is optional, but recommended)

Page 12: CIS 264 - ASP Tim Brown. .html www .html www .html www

Overview of Unit 1

1. Create Web Forms

2. Code-behind files

3. Redirection

4. Validation controls

5. State Preservation

6. Master Pages

Page 13: CIS 264 - ASP Tim Brown. .html www .html www .html www

Overview of Unit 2

1. Site Navigation

2. Themes

3. Data Sources

4. ListView control

5. Gridview Control

6. DetailsView and FormView controls

Page 14: CIS 264 - ASP Tim Brown. .html www .html www .html www

Overview of Unit 3

1. ListView and DataPager Controls

2. Object Data Sources

3. LINQ data sources4. Optional: SSL, Authentication, Authorization

5. Optional: User Controls, Custom Controls

6. Optional: Web Services

Page 15: CIS 264 - ASP Tim Brown. .html www .html www .html www

Visual Studio Advantages

• Solution Explorer - file, folder, and project management tools.

• Intellisense – syntax assistance

• HTML editor – WYSIWYG page design

• Debugger – step-by-step execution

Page 16: CIS 264 - ASP Tim Brown. .html www .html www .html www

Web Form Control Types

• HTML

• HTML Server

• ASP (Web) Server

• Validation

• User and Custom

Page 17: CIS 264 - ASP Tim Brown. .html www .html www .html www

Server control benefits

• Server side event procedures

• State preservation

• Data binding

• Browser-version sensitive

Page 18: CIS 264 - ASP Tim Brown. .html www .html www .html www

<asp:controlType id=“name” … runat=“server” />

controlType is the type of control (Label, TextBox, Button, etc.)name is an identifier used to refer to the control from code

Page 19: CIS 264 - ASP Tim Brown. .html www .html www .html www

<asp:controlType id=“name” … runat=“server” > </asp:controlType>

controlType is the type of control (Label, TextBox, Button, etc.)name is an identifier used to refer to the control from code

Page 20: CIS 264 - ASP Tim Brown. .html www .html www .html www

<asp:Labelid=“name”text=“caption”runat=“server” />

Page 21: CIS 264 - ASP Tim Brown. .html www .html www .html www

<asp:TextBoxid=“name”text=“caption”…runat=“server” />

Page 22: CIS 264 - ASP Tim Brown. .html www .html www .html www

<asp:Buttonid=“name”text=“caption”… runat=“server” />

Page 23: CIS 264 - ASP Tim Brown. .html www .html www .html www

Page Directive Attributes

• Language– specifies lanuage of embedded code

• Codebehind– specifies file name of code-behind file

• Inherits– name of class aspx will inherit from

• AutoEventWireup– automatically associates page events with

event procedures having correct names

Page 24: CIS 264 - ASP Tim Brown. .html www .html www .html www

Page and Control Events

• InitializeComponent

• Page_Init

• Page_Load

Page 25: CIS 264 - ASP Tim Brown. .html www .html www .html www

Exercise 1