Chapter 4 : Introduction to ASP.
Net
Training Presentation
Topics
Introduction to ASP.NET
ASP.NET Web Page Syntax
ASP.NET Web Page Coding Model
Creating First ASP.NET Application
The Single File Page Model
The Code Behind Page Model
Introduction to
ASP.NET
Introduction to ASP.NET
ASP.NET is a specification
developed by Microsoft
to create dynamic Web
applications, Web sites,
and Web services.
ASP.NET is part of the
.NET Framework, and
when coding ASP.NET
applications we have
access to classes in
the .NET Framework.
Introduction to ASP.NET
We can code your applications in any language
compatible with the common language runtime
(CLR), including Microsoft Visual Basic and C#.
These languages enable us to develop ASP.NET
applications that benefit from the common
language runtime, type safety, inheritance, and
so on.
Introduction to ASP.NET
ASP.NET pages use a
compiled, event -
driven programming
model that improves
performance and
enables the separation
of application logic and
user interface.
event-driven programming
model
Introduction to ASP.NET
In this example , when
user clicks on the login
button after submitting
username and password
an event generates
which fires the
application logic to run.
event-driven programming
model
Introduction to ASP.NET
In this example , when
user clicks on the ‘like’
button on face book
page an event generates
which fires the
application logic to run
and in response counter
works.
event-driven programming
model
Brands using ASP.NET Technology
Introduction to Visual Studio IDE
Toolbars
Document Window
Properties
Window
View Tabs
Solution
Explorer
Toolbox
Server Explorer
Visual Studio IDE is very
much similar to
Carpenter ’s Workbench
where appropriate tools
are used to build
furniture.
New Tools can also be
added and customized
Carpenters
Workbench is like
Visual Studio
Introduction to Visual Studio IDE
Creating First
ASP.NET
Application
Creating First ASP.NET Application
ASP.NET Web
Page Syntax
Creating First ASP.NET Application
ASP.NET Web
Page Coding
Model
Creating First ASP.NET Application
The Single File Page Model
On OLX we can sell
and buy goods similarly
in single asp.net model
coding and designing is
done in single file.
The Single File Page Model
In this example the HTML
markup and C-Sharp code
is written in the same file.
The Single File Page Model
In this example, An OLX
website offers us to buy
and sell the products
unlike other shopping
websites similarly in
single file page model the
user interface and
application logic are in
the same physical .aspx
file.
The Code
Behind Page
Model
The Code Behind Page ModelThe code-behind page
model allows us to keep
the markup in one file -
the .aspx file - and the
programming code in
another file. The name of
the code file varies
according to what
programming language we
are using.
The Code Behind Page Model
In this example, All
shopping websites offers
us only to buy several
products similarly in code
behind page model the
user interface and
application logic are in
the separate .aspx files.
Example
Chapter1  introduction to asp.net

Chapter1 introduction to asp.net

  • 1.
    Chapter 4 :Introduction to ASP. Net Training Presentation
  • 2.
    Topics Introduction to ASP.NET ASP.NETWeb Page Syntax ASP.NET Web Page Coding Model Creating First ASP.NET Application The Single File Page Model The Code Behind Page Model
  • 3.
  • 4.
    Introduction to ASP.NET ASP.NETis a specification developed by Microsoft to create dynamic Web applications, Web sites, and Web services. ASP.NET is part of the .NET Framework, and when coding ASP.NET applications we have access to classes in the .NET Framework.
  • 5.
    Introduction to ASP.NET Wecan code your applications in any language compatible with the common language runtime (CLR), including Microsoft Visual Basic and C#. These languages enable us to develop ASP.NET applications that benefit from the common language runtime, type safety, inheritance, and so on.
  • 6.
    Introduction to ASP.NET ASP.NETpages use a compiled, event - driven programming model that improves performance and enables the separation of application logic and user interface. event-driven programming model
  • 7.
    Introduction to ASP.NET Inthis example , when user clicks on the login button after submitting username and password an event generates which fires the application logic to run. event-driven programming model
  • 8.
    Introduction to ASP.NET Inthis example , when user clicks on the ‘like’ button on face book page an event generates which fires the application logic to run and in response counter works. event-driven programming model
  • 9.
  • 10.
    Introduction to VisualStudio IDE Toolbars Document Window Properties Window View Tabs Solution Explorer Toolbox Server Explorer
  • 11.
    Visual Studio IDEis very much similar to Carpenter ’s Workbench where appropriate tools are used to build furniture. New Tools can also be added and customized Carpenters Workbench is like Visual Studio Introduction to Visual Studio IDE
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
    The Single FilePage Model On OLX we can sell and buy goods similarly in single asp.net model coding and designing is done in single file.
  • 19.
    The Single FilePage Model In this example the HTML markup and C-Sharp code is written in the same file.
  • 20.
    The Single FilePage Model In this example, An OLX website offers us to buy and sell the products unlike other shopping websites similarly in single file page model the user interface and application logic are in the same physical .aspx file.
  • 21.
  • 22.
    The Code BehindPage ModelThe code-behind page model allows us to keep the markup in one file - the .aspx file - and the programming code in another file. The name of the code file varies according to what programming language we are using.
  • 23.
    The Code BehindPage Model In this example, All shopping websites offers us only to buy several products similarly in code behind page model the user interface and application logic are in the separate .aspx files. Example