SlideShare a Scribd company logo
Server side technologies
ASP.Net
Amelina Ahmeti, Sultonmamad, Usman
Web Technologies – Prof. Dr. Ulrik Schroeder – WS 2010/111
The slides are licensed under a
Creative Commons Attribution 3.0 License
Overview
 ASP.Net v/s PHP
 The need for ASP.Net
 Introduction to ASP.Net
 .Net Framework
 .aspx and Code Behind files
 Page Life Cycle
 Controls
 State Management
 Configuration Files
ASP.Net Presentation2
Objectives
 Introduction to ASP.Net
 Basic Advantages
 Some Examples
ASP.Net Presentation3
Comparison with PHP
 Wide belief that PHP is faster
 ASP.Net is a platform
 Cost
 Web Server
 Propriety
 JIT (Just In Time) Compilation
 Discussed in Detail Later!
4 ASP.Net Presentation
ASP – Active Server Pages
 Server-side scripts
 Also client-side scripts
 Validate user inputs
 Access database
 ASP provides solutions for transaction processing and managing
session state.
 One of the most successful languages for Web development.
ASP.Net Presentation5
Problems with ASP
 Interpreted and Loosely typed code
 Late binding of Variables
 Uses Jscript or VBScript
 Mixes layout (HTML) and logic (scripting code)
 Frequent switches between HTML and ASP code
 Hard to separate Content and Business Logic
 Limited Development and Debugging Tools
 Visual InterDev, Macromedia helped
 Debugging done using “Response.Write()”
ASP.Net Presentation6
Problems with ASP
 No real state management
 Process Dependent
 Server Farm Limitations
 Cookie Dependent
 Update files only when server is down
 To update components based site you have to stop the server
 If not Application fails
 Obscure Configuration Settings
 Configurations stored in IIS Metabase
 Difficult to port application
ASP.Net Presentation7
ASP.Net – Issues to Address
 Make sure ASP runs fine
 Since ASP was widely used
 Had a very large programmer base
 Introduction of .Net Framework
 ASP.DLL not modified while installing framework
 IIS could run ASP and ASP.Net simultaneously
 Overcome the short comings in ASP
ASP.Net Presentation8
ASP.Net - Advantages
 Support for compiled languages
 Separation of Code from HTML
 Use services provided by the .NET Framework
 Easier Debugging using Visual Studio
 Graphical Development Environment
 Session Management
 Update files while the server is running!
 XML-Based Configuration Files
ASP.Net Presentation9
ASP.Net - Overview
 Server side technology
 Web Forms used to build Web Applications
 Provides services to create and use Web Services
 Controls
 HTML Controls
 Web Server Control
 User Controls
 Ease of application development
ASP.Net Presentation10
.Net - Framework
ASP.Net Presentation11
ASP.Net - Files
 A simple ASP.Net file consists of two files
 Presentation (.aspx)
 Code Behind (.aspx.cs for C#)
 Web Services have the extension .asmx
 Configuration Files
 Global.asax (also has a code behind file)
 Optional file containing global logic
 Also has a code behind file
 Web.config
 Application Configuration file
 Allows defining Name, Value pairs that could be accessed by application
ASP.Net Presentation12
Preserving Data Across Pages
 Session
 InProc
 StateServer
 SqlServer
 Cookies
 Query String
 Cookie Independent (Visual Studio 2010)
ASP.Net Presentation13
Execution Cycle
 Request aspx page
 ASP.Net runtime parses file for code to be compiled
 Generation of Page class (ASP.Net Page)
 Instantiates server controls
 Populates server controls
 Rendering of Controls
 Send the HTML to client browser
ASP.Net Presentation14
Execution Process
 Compiling the code
 First time request
 Code compiled to MSIL(Microsoft Intermediate Language)
 Similar to Assembly Language
 Used to achieve platform independency
 Not the target what Microsoft wants
 CPU independence
 Efficient conversion to Native code
 CLR(Common Language Runtime) compiles the code
 A copy of Page is Cached
 Used until changes are made to the page, and it needs to be compiled again
 Updating the page causes a re-build
ASP.Net Presentation15
Page Life Cycle
Web Technologies16
ASPX Page RequestedASPX Page Requested
Request
Page
StartStart
InitializationInitialization
LoadLoad
Post Back Event HandlingPost Back Event Handling
RenderingRendering
UnloadUnload
<html>
…
</html>
Web BrowserWeb Browser
15/10/2010 ASP.Net Presentation17
Just-In-Time Compilation
ASPX
File
ASPX
File
Code
Behind
Code
Behind
Page
Class
File
Page
Class
File
ASPX
Engin
e
ASPX
Engin
e
Page
Class
Page
Class
Request #1Request #1
Request #nRequest #n
Courtesy:
Patrick
Stalljohann​
Courtesy:
Patrick
Stalljohann​
ASP.Net Controls
 HTML server controls
 HTML elements programmable in server code.
 HTML tags are left as is by compiler
 Web server controls
 Defined as Abstract controls
 Have more built-in features than HTML controls e.g. Calendar,
Menus etc.
 Validation controls
 Perform client side validation
 Can be used to build own validators
 User controls
 Controls created by the User as ASP.Net webpages
 Re-usability and Power to User.
ASP.Net Presentation18
Global.asax
 Declare application level Events and Objects
 Code for events like
 Application Start
 Application End
 Session Start
 Session End
 Since this code cannot be placed in application itself
 Also used for Application and Session State Management
 Compiled just like any other ASP.Net page
ASP.Net Presentation19
Web.config
 Stores configuration information in XML format
 Optional
 Allows for creating Name, Value pairs that could be accessed
by the web application to apply configurations
 Portable
ASP.Net Presentation20
References
 www.w3schools.com
 www.codeproject.com
 msdn.microsoft.com
 CiL – Center for Innovative Learning Technologies, RWTH Aachen
University
21 ASP.Net Presentation

More Related Content

PPT
Asp dot net long
PPS
Asp Architecture
PPT
Asp.net basic
PPTX
Introduction to asp.net
PPT
Concepts of Asp.Net
PPT
Webconnection
ODP
My view on XPages
Asp dot net long
Asp Architecture
Asp.net basic
Introduction to asp.net
Concepts of Asp.Net
Webconnection
My view on XPages

What's hot (19)

PPTX
ASP.NET Presentation
PPT
ASP.NET Tutorial - Presentation 1
PPT
Intro To Asp Net And Web Forms
PPTX
Asp .net folders and web.config
PPT
Be project ppt asp.net
PPT
Asp.net
PPTX
06.m3 cms set-upwebserver
PDF
Server-side Java Programming
PPTX
Asp.net presentation by gajanand bohra
PPTX
Industrial training seminar ppt on asp.net
PPT
INTRODUCTION TO IIS
PPT
]project-open[ CVS+ACL Permission Configuration
PPTX
Synapse india sharing info on dotnet framework part1
PPT
Introduction server Construction
PPTX
ASP.NET - Introduction to Web Forms and MVC
PPTX
Developing an aspnet web application
PPTX
Introduction to ASP.NET
ASP.NET Presentation
ASP.NET Tutorial - Presentation 1
Intro To Asp Net And Web Forms
Asp .net folders and web.config
Be project ppt asp.net
Asp.net
06.m3 cms set-upwebserver
Server-side Java Programming
Asp.net presentation by gajanand bohra
Industrial training seminar ppt on asp.net
INTRODUCTION TO IIS
]project-open[ CVS+ACL Permission Configuration
Synapse india sharing info on dotnet framework part1
Introduction server Construction
ASP.NET - Introduction to Web Forms and MVC
Developing an aspnet web application
Introduction to ASP.NET
Ad

Viewers also liked (9)

ODP
Presentación1
ODP
Eguberrietako aurkezpena
PPTX
Microsoft power point
ODP
Eguberrietako aurkezpena
ODP
Eguberrietako aurkezpena
ODP
Eguneroko ibilbidea
PDF
Enjoy Vip
ODP
Eadweard Muybridge
ODP
Eadweard Muybridge
Presentación1
Eguberrietako aurkezpena
Microsoft power point
Eguberrietako aurkezpena
Eguberrietako aurkezpena
Eguneroko ibilbidea
Enjoy Vip
Eadweard Muybridge
Eadweard Muybridge
Ad

Similar to Asp dot net final (1) (20)

PDF
Asp dot net final (2)
PPTX
Web development using asp.net
PPTX
Asp.net
PPTX
Unit - 1: ASP.NET Basic
PPT
.Net Framework Overview. Fundamentals of .Net Framework
PPT
Rupie asp.net
DOCX
Beginners introduction to asp.net
PPT
Buildingwebapplicationswith.net
PPTX
Aspnet architecture
DOC
Asp.Net Tutorials
PPT
Aspnet
PDF
Introduction to asp.net
PPTX
Introduction to asp
PDF
Asp-net
PPT
Asp.net.
PPTX
Asp.net and .Net Framework ppt presentation
PPTX
Lect 1 About ASP.NET webforms and freme
PPTX
1.introduction to web programming using asp.net
PPT
Introduction to ASP.NET
PDF
Chapter 1 (asp.net over view)
Asp dot net final (2)
Web development using asp.net
Asp.net
Unit - 1: ASP.NET Basic
.Net Framework Overview. Fundamentals of .Net Framework
Rupie asp.net
Beginners introduction to asp.net
Buildingwebapplicationswith.net
Aspnet architecture
Asp.Net Tutorials
Aspnet
Introduction to asp.net
Introduction to asp
Asp-net
Asp.net.
Asp.net and .Net Framework ppt presentation
Lect 1 About ASP.NET webforms and freme
1.introduction to web programming using asp.net
Introduction to ASP.NET
Chapter 1 (asp.net over view)

Recently uploaded (20)

PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
sap open course for s4hana steps from ECC to s4
PPTX
Big Data Technologies - Introduction.pptx
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Unlocking AI with Model Context Protocol (MCP)
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
Spectroscopy.pptx food analysis technology
PPT
Teaching material agriculture food technology
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Electronic commerce courselecture one. Pdf
PPTX
Cloud computing and distributed systems.
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Diabetes mellitus diagnosis method based random forest with bat algorithm
Chapter 3 Spatial Domain Image Processing.pdf
sap open course for s4hana steps from ECC to s4
Big Data Technologies - Introduction.pptx
Reach Out and Touch Someone: Haptics and Empathic Computing
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Digital-Transformation-Roadmap-for-Companies.pptx
Unlocking AI with Model Context Protocol (MCP)
“AI and Expert System Decision Support & Business Intelligence Systems”
Per capita expenditure prediction using model stacking based on satellite ima...
Spectroscopy.pptx food analysis technology
Teaching material agriculture food technology
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Electronic commerce courselecture one. Pdf
Cloud computing and distributed systems.
Network Security Unit 5.pdf for BCA BBA.
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf

Asp dot net final (1)

  • 1. Server side technologies ASP.Net Amelina Ahmeti, Sultonmamad, Usman Web Technologies – Prof. Dr. Ulrik Schroeder – WS 2010/111 The slides are licensed under a Creative Commons Attribution 3.0 License
  • 2. Overview  ASP.Net v/s PHP  The need for ASP.Net  Introduction to ASP.Net  .Net Framework  .aspx and Code Behind files  Page Life Cycle  Controls  State Management  Configuration Files ASP.Net Presentation2
  • 3. Objectives  Introduction to ASP.Net  Basic Advantages  Some Examples ASP.Net Presentation3
  • 4. Comparison with PHP  Wide belief that PHP is faster  ASP.Net is a platform  Cost  Web Server  Propriety  JIT (Just In Time) Compilation  Discussed in Detail Later! 4 ASP.Net Presentation
  • 5. ASP – Active Server Pages  Server-side scripts  Also client-side scripts  Validate user inputs  Access database  ASP provides solutions for transaction processing and managing session state.  One of the most successful languages for Web development. ASP.Net Presentation5
  • 6. Problems with ASP  Interpreted and Loosely typed code  Late binding of Variables  Uses Jscript or VBScript  Mixes layout (HTML) and logic (scripting code)  Frequent switches between HTML and ASP code  Hard to separate Content and Business Logic  Limited Development and Debugging Tools  Visual InterDev, Macromedia helped  Debugging done using “Response.Write()” ASP.Net Presentation6
  • 7. Problems with ASP  No real state management  Process Dependent  Server Farm Limitations  Cookie Dependent  Update files only when server is down  To update components based site you have to stop the server  If not Application fails  Obscure Configuration Settings  Configurations stored in IIS Metabase  Difficult to port application ASP.Net Presentation7
  • 8. ASP.Net – Issues to Address  Make sure ASP runs fine  Since ASP was widely used  Had a very large programmer base  Introduction of .Net Framework  ASP.DLL not modified while installing framework  IIS could run ASP and ASP.Net simultaneously  Overcome the short comings in ASP ASP.Net Presentation8
  • 9. ASP.Net - Advantages  Support for compiled languages  Separation of Code from HTML  Use services provided by the .NET Framework  Easier Debugging using Visual Studio  Graphical Development Environment  Session Management  Update files while the server is running!  XML-Based Configuration Files ASP.Net Presentation9
  • 10. ASP.Net - Overview  Server side technology  Web Forms used to build Web Applications  Provides services to create and use Web Services  Controls  HTML Controls  Web Server Control  User Controls  Ease of application development ASP.Net Presentation10
  • 11. .Net - Framework ASP.Net Presentation11
  • 12. ASP.Net - Files  A simple ASP.Net file consists of two files  Presentation (.aspx)  Code Behind (.aspx.cs for C#)  Web Services have the extension .asmx  Configuration Files  Global.asax (also has a code behind file)  Optional file containing global logic  Also has a code behind file  Web.config  Application Configuration file  Allows defining Name, Value pairs that could be accessed by application ASP.Net Presentation12
  • 13. Preserving Data Across Pages  Session  InProc  StateServer  SqlServer  Cookies  Query String  Cookie Independent (Visual Studio 2010) ASP.Net Presentation13
  • 14. Execution Cycle  Request aspx page  ASP.Net runtime parses file for code to be compiled  Generation of Page class (ASP.Net Page)  Instantiates server controls  Populates server controls  Rendering of Controls  Send the HTML to client browser ASP.Net Presentation14
  • 15. Execution Process  Compiling the code  First time request  Code compiled to MSIL(Microsoft Intermediate Language)  Similar to Assembly Language  Used to achieve platform independency  Not the target what Microsoft wants  CPU independence  Efficient conversion to Native code  CLR(Common Language Runtime) compiles the code  A copy of Page is Cached  Used until changes are made to the page, and it needs to be compiled again  Updating the page causes a re-build ASP.Net Presentation15
  • 16. Page Life Cycle Web Technologies16 ASPX Page RequestedASPX Page Requested Request Page StartStart InitializationInitialization LoadLoad Post Back Event HandlingPost Back Event Handling RenderingRendering UnloadUnload <html> … </html>
  • 17. Web BrowserWeb Browser 15/10/2010 ASP.Net Presentation17 Just-In-Time Compilation ASPX File ASPX File Code Behind Code Behind Page Class File Page Class File ASPX Engin e ASPX Engin e Page Class Page Class Request #1Request #1 Request #nRequest #n Courtesy: Patrick Stalljohann​ Courtesy: Patrick Stalljohann​
  • 18. ASP.Net Controls  HTML server controls  HTML elements programmable in server code.  HTML tags are left as is by compiler  Web server controls  Defined as Abstract controls  Have more built-in features than HTML controls e.g. Calendar, Menus etc.  Validation controls  Perform client side validation  Can be used to build own validators  User controls  Controls created by the User as ASP.Net webpages  Re-usability and Power to User. ASP.Net Presentation18
  • 19. Global.asax  Declare application level Events and Objects  Code for events like  Application Start  Application End  Session Start  Session End  Since this code cannot be placed in application itself  Also used for Application and Session State Management  Compiled just like any other ASP.Net page ASP.Net Presentation19
  • 20. Web.config  Stores configuration information in XML format  Optional  Allows for creating Name, Value pairs that could be accessed by the web application to apply configurations  Portable ASP.Net Presentation20
  • 21. References  www.w3schools.com  www.codeproject.com  msdn.microsoft.com  CiL – Center for Innovative Learning Technologies, RWTH Aachen University 21 ASP.Net Presentation