Professional Documents
Culture Documents
Lectures & Exercises
Lectures & Exercises
NET
Lectures & Exercises
is a server side scripting technology that enables scripts (embedded in web pages)
to be executed by an Internet server.
ASP stands for Active Server Pages
web programming technology developed by Microsoft
ASP.NET is a program that runs inside IIS
IIS (Internet Information Services) is Microsoft's Internet server
IIS comes as a free component with Windows servers
used to create dynamic web pages
successor to ASP
By: Jefferson A. Costales, MIT, IBM -CDA, MCTS, ZCE, OCE Chapter 1 of 8
Web Application Development Using ASP.NET
Lectures & Exercises
1.4 The Microsoft .NET Framework was developed to solve this problem through
.NET Frameworks keywords:
Easier and quicker programming
Reduced amount of code
Declarative programming model
Richer server control hierarchy with events
Larger class library
Better support for development tools
By: Jefferson A. Costales, MIT, IBM -CDA, MCTS, ZCE, OCE Chapter 1 of 8
Web Application Development Using ASP.NET
Lectures & Exercises
Not every element always appears on a given page, we will learn when to use
them
By: Jefferson A. Costales, MIT, IBM -CDA, MCTS, ZCE, OCE Chapter 1 of 8
Web Application Development Using ASP.NET
Lectures & Exercises
1.6.1 Directives
Control how the page is compiled
Specify settings when transferring between pages
Aid in debugging
Allow importing of classes
Start with the <@ sequence and end with a %> sequence
ASP.Net directives can appear anywhere on the page, but are usually placed as
the first lines in the file
The Import directive makes functionality defined elsewhere through the use of
namespaces as in:
<%@ Import Namespace=“System.Web.Mail” %>
The Register directive links a user control to the ASP.Net page as in:
<%@ Register TagPrefix=“ux” TagName=“footer” Src=“footer.ascx” %>
By: Jefferson A. Costales, MIT, IBM -CDA, MCTS, ZCE, OCE Chapter 1 of 8
Web Application Development Using ASP.NET
Lectures & Exercises
By: Jefferson A. Costales, MIT, IBM -CDA, MCTS, ZCE, OCE Chapter 1 of 8
Web Application Development Using ASP.NET
Lectures & Exercises
The difference between HTML comments and ASP.Net comments is that ASP.Net
comments are processed by the browser or the ASP.Net runtime
Don’t use HTML comments to comment out ASP.Net code
HTML comments only hide things from the browser
By: Jefferson A. Costales, MIT, IBM -CDA, MCTS, ZCE, OCE Chapter 1 of 8
Web Application Development Using ASP.NET
Lectures & Exercises
C#.Net was developed to keep the simplicity of VB and the power and
flexibility of C++ (some say to replace Java). C# does away with confusing
C++ syntax.
By: Jefferson A. Costales, MIT, IBM -CDA, MCTS, ZCE, OCE Chapter 1 of 8
Web Application Development Using ASP.NET
Lectures & Exercises
Write a program to display the following feedback form. The different options for
When the Submit Form button is clicked after entering the data, a message as
By: Jefferson A. Costales, MIT, IBM -CDA, MCTS, ZCE, OCE Chapter 1 of 8