CIS 264 - ASP Tim Brown
Dec 26, 2015
CIS 264 - ASP
Tim Brown
.html
www
.html
www
.html
www
.html
www
.html
www
JavaScriptVBScript
.html
.cgi
www
PerlJavaScriptVBScript
.html
.cgi
www
db
OS
PerlJavaScriptVBScript
.html
.cgi
.asp
www
db
VBScriptJScript
JavaScriptVBScript
Perl
.html
.cgi
.asp
www
db
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)
Overview of Unit 1
1. Create Web Forms
2. Code-behind files
3. Redirection
4. Validation controls
5. State Preservation
6. Master Pages
Overview of Unit 2
1. Site Navigation
2. Themes
3. Data Sources
4. ListView control
5. Gridview Control
6. DetailsView and FormView controls
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
Visual Studio Advantages
• Solution Explorer - file, folder, and project management tools.
• Intellisense – syntax assistance
• HTML editor – WYSIWYG page design
• Debugger – step-by-step execution
Web Form Control Types
• HTML
• HTML Server
• ASP (Web) Server
• Validation
• User and Custom
Server control benefits
• Server side event procedures
• State preservation
• Data binding
• Browser-version sensitive
<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
<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
<asp:Labelid=“name”text=“caption”runat=“server” />
<asp:TextBoxid=“name”text=“caption”…runat=“server” />
<asp:Buttonid=“name”text=“caption”… runat=“server” />
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 and Control Events
• InitializeComponent
• Page_Init
• Page_Load
Exercise 1