Framework
Framework
ASP.NET
Dr
op
Im
ag
e
Introduction
He
re
Dr
ag
Dr an
ag d
an Dr
d op
Dr Im
op
op Im
ag
Im e
ag He
e re
He
re
DIANA VICTORIA
Dr
ag
Dr an
ag d
an Dr
d op
D
Topic & Structure of The Lesson
01 02 03 04
s
Static Web Pages
Definition
Static web pages are simple and written in the HTML
language and stored in web server.
Request Process
Whenever server receives a request regarding a web page, it
sends a response along with the requested web page to the client
without performing any additional processing. It just locates that
page on its hard disk and add HTTP headers and reply back an
HTTP response.
Dynamic Web Pages
Definition
Dynamic web pages are complex and written in the server-side
scripting language and stored in web server.
Request Process
The web server calls a program located on the hard disk which
can access a database, perform transaction procedure, etcetera.
The application program produces HTML output, which is used
to construct an HTTP response by the web server. The web
server sends the HTTP response thus created, back to the web
browser.
Dynamic vs Static Website
Your Title Text Goes Here
Comparisons
Dynamic Websites Static Websites
It is complex to construct and design. It is simple to construct.
Server-side scripting allows the server to generate Static web pages are difficult to alter because it requires
unique content each time the page is loaded with the the change to be implemented at each point manually.
same source code.
Dynamic web pages are created using CGI (Common Static web page involves technology such as HTML,
Gateway Interface) and languages like AJAX, C#, PERL, JavaScript, CSS, etcetera for its construction.
PHP, etcetera server-side scripting languages
The page content in dynamic web pages changes The static web pages display the same content each
according to the user. time when someone visits it.
A database is used in at the server end in a dynamic web In contrast, There is no database used in a static web
page. page.
Dynamic web pages take more time while loading. HTML pages can be loaded quickly by consuming less
time.
HTML
WebForm
Drag and Drop Image Here .NET
A software development framework
and ecosystem for desktop and web
application engineering.
It consists of .NET Framework, .NET
Core, Xamarin, and Universal
Windows Platform (UWP)
The Ease of
Light-Weight Cross-Platform Solution for Deployment and Great
Nature Development Enterprises Maintenance Documentation
Enterprise
-scale
Scalable Infrastruct
Product ure
When
to Cross
use .NE Platform
T? Need
Includes
Multi-tier, optimizations
database- for
intensive performance,
applications testing and
Introduction security
to ASP.NET XHTML
ASPX files documents
• Static
What is ASP.NET?
• ASP.NET is a server side scripting technology that enables scripts
(embedded in web pages) to be executed by an Internet server.
• aspx.designer.cs file
contains all the
definition of the
controls that are being
used by the page.
Object Oriented
• ASP.NET is inherently object-oriented.
• If you’re familiar with programming and have worked with
object-oriented programming languages such as C++ or
Java, you’ll appreciate the benefits immediately.
• A major attraction of ASP.NET’s object orientation is that it
allows you to take advantage of a vast library of predefined
classes known as the .NET Framework.
Visual Studio
• One of the best features of ASP.NET is Visual Studio, the
integrated development environment that combines a
Web-page editor, a code editor, a debugger, and several
other development tools into one easy-to-use program.
• The more you work with Visual Studio, the more you come
to appreciate the many ways it simplifies the job of creating
ASP.NET Web applications.
• Scripting delimiters <% and %>
• Wrapped around C# or VB.NET code
• Compiled and executed on the server
A Simple • @ Page directive
• Specifies information needed by CLR (Common
ASP.NET Language Runtime) to process file
• Language attribute
Example • Specifies C# or VB.NET as scripting language
• runat attribute with value “server”
• Indicates script should be processed on server
A Simple ASP.NET Example
Object Name Description
Request Used to access information passed by an
HTTP request.
Response Used to control the information sent to the
client.
Server Used to access methods and properties on the
server.
Commonly used ASP.NET objects.
Web Forms
• <form> tag
• Designate ASP.NET Web Form
• Web controls
• Web server controls
• Form-like controls such as drop-down lists and text
boxes
• Validation controls (validators)
• Required field validator
• Range validator
• etc
ASP.NET Controls
• Types of websites
• .Net
• ASP.Net
• Form Controls
• Validators
• Visual Studio
Q&A
“Experience
is a hard teacher
because
she gives the test first,
the lesson afterward.”