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
Amelina Ahmeti
 
PPS
Asp Architecture
Om Vikram Thapa
 
PPT
Asp.net basic
Neelesh Shukla
 
PPTX
Introduction to asp.net
Melick Baranasooriya
 
PPT
Concepts of Asp.Net
vidyamittal
 
PPT
Webconnection
Rick Strahl
 
ODP
My view on XPages
Per Henrik Lausten
 
Asp dot net long
Amelina Ahmeti
 
Asp Architecture
Om Vikram Thapa
 
Asp.net basic
Neelesh Shukla
 
Introduction to asp.net
Melick Baranasooriya
 
Concepts of Asp.Net
vidyamittal
 
Webconnection
Rick Strahl
 
My view on XPages
Per Henrik Lausten
 

What's hot (19)

PPTX
ASP.NET Presentation
dimuthu22
 
PPT
ASP.NET Tutorial - Presentation 1
Kumar S
 
PPT
Intro To Asp Net And Web Forms
SAMIR BHOGAYTA
 
PPTX
Asp .net folders and web.config
baabtra.com - No. 1 supplier of quality freshers
 
PPT
Be project ppt asp.net
Sanket Jagare
 
PPT
Asp.net
Dinesh kumar
 
PPTX
06.m3 cms set-upwebserver
tarensi
 
PDF
Server-side Java Programming
Chris Schalk
 
PPTX
Asp.net presentation by gajanand bohra
Gajanand Bohra
 
PPTX
Industrial training seminar ppt on asp.net
Pankaj Kushwaha
 
PPT
INTRODUCTION TO IIS
sanya6900
 
PPT
Asp net
Dr. C.V. Suresh Babu
 
PPT
]project-open[ CVS+ACL Permission Configuration
Klaus Hofeditz
 
PPTX
Synapse india sharing info on dotnet framework part1
Synapseindiappsdevelopment
 
PPT
Introduction server Construction
Jisu Park
 
PPTX
ASP.NET - Introduction to Web Forms and MVC
Bilal Amjad
 
PPTX
Developing an aspnet web application
Rahul Bansal
 
PPTX
Introduction to ASP.NET
Peter Gfader
 
ASP.NET Presentation
dimuthu22
 
ASP.NET Tutorial - Presentation 1
Kumar S
 
Intro To Asp Net And Web Forms
SAMIR BHOGAYTA
 
Asp .net folders and web.config
baabtra.com - No. 1 supplier of quality freshers
 
Be project ppt asp.net
Sanket Jagare
 
Asp.net
Dinesh kumar
 
06.m3 cms set-upwebserver
tarensi
 
Server-side Java Programming
Chris Schalk
 
Asp.net presentation by gajanand bohra
Gajanand Bohra
 
Industrial training seminar ppt on asp.net
Pankaj Kushwaha
 
INTRODUCTION TO IIS
sanya6900
 
]project-open[ CVS+ACL Permission Configuration
Klaus Hofeditz
 
Synapse india sharing info on dotnet framework part1
Synapseindiappsdevelopment
 
Introduction server Construction
Jisu Park
 
ASP.NET - Introduction to Web Forms and MVC
Bilal Amjad
 
Developing an aspnet web application
Rahul Bansal
 
Introduction to ASP.NET
Peter Gfader
 
Ad

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

PDF
Asp dot net final (2)
Amelina Ahmeti
 
PPT
DevNext - Web Programming Concepts Using Asp Net
Adil Mughal
 
PPTX
Chapter 1
application developer
 
PDF
Asp.netrole
mani bhushan
 
PPT
ASP_NET_Architecture_Interfgfgfgnals1.ppt
simplyamrita2011
 
PPT
Migrating To Visual Studio 2008 & .Net Framework 3.5
Clint Edmonson
 
PPTX
Learning ASP.NET 5 and MVC 6
Ido Flatow
 
PPTX
Asp Net (FT Preasen Revankar)
Fafadia Tech
 
PPT
Migrating To Visual Studio 2008 & .Net Framework 3.5
Jeff Blankenburg
 
PPT
Asp.net architecture
Iblesoft
 
ODP
Web Server-Side Programming Techniques
guest8899ec02
 
PPTX
Introduction to asp.net
shan km
 
PPT
Rupie asp.net
Rupendra Choudhary
 
DOCX
Beginners introduction to asp.net
Naveen Kumar Veligeti
 
PDF
Top 10 - ASP.NET Interview Questions And Answers 2023.pdf
Ruddarpratap
 
PPTX
Asp.net
vijilakshmi51
 
PDF
Anvita Gita Supersite Case Study Nov2000
guest6e7a1b1
 
PPTX
Introduction to asp
Madhuri Kavade
 
PPSX
A comprehensive software infrastructure of .Net
Prognoz Technologies Pvt. Ltd.
 
PPTX
Unit - 1: ASP.NET Basic
KALIDHASANR
 
Asp dot net final (2)
Amelina Ahmeti
 
DevNext - Web Programming Concepts Using Asp Net
Adil Mughal
 
Asp.netrole
mani bhushan
 
ASP_NET_Architecture_Interfgfgfgnals1.ppt
simplyamrita2011
 
Migrating To Visual Studio 2008 & .Net Framework 3.5
Clint Edmonson
 
Learning ASP.NET 5 and MVC 6
Ido Flatow
 
Asp Net (FT Preasen Revankar)
Fafadia Tech
 
Migrating To Visual Studio 2008 & .Net Framework 3.5
Jeff Blankenburg
 
Asp.net architecture
Iblesoft
 
Web Server-Side Programming Techniques
guest8899ec02
 
Introduction to asp.net
shan km
 
Rupie asp.net
Rupendra Choudhary
 
Beginners introduction to asp.net
Naveen Kumar Veligeti
 
Top 10 - ASP.NET Interview Questions And Answers 2023.pdf
Ruddarpratap
 
Asp.net
vijilakshmi51
 
Anvita Gita Supersite Case Study Nov2000
guest6e7a1b1
 
Introduction to asp
Madhuri Kavade
 
A comprehensive software infrastructure of .Net
Prognoz Technologies Pvt. Ltd.
 
Unit - 1: ASP.NET Basic
KALIDHASANR
 
Ad

Recently uploaded (20)

PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
PPTX
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
PPTX
Simple and concise overview about Quantum computing..pptx
mughal641
 
PDF
Brief History of Internet - Early Days of Internet
sutharharshit158
 
PDF
The Future of Artificial Intelligence (AI)
Mukul
 
PDF
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
PDF
Get More from Fiori Automation - What’s New, What Works, and What’s Next.pdf
Precisely
 
PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
PDF
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
PDF
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
PDF
AI-Cloud-Business-Management-Platforms-The-Key-to-Efficiency-Growth.pdf
Artjoker Software Development Company
 
PPTX
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
PPTX
The Future of AI & Machine Learning.pptx
pritsen4700
 
PDF
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
PDF
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
PDF
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
PDF
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PDF
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
PPTX
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
Simple and concise overview about Quantum computing..pptx
mughal641
 
Brief History of Internet - Early Days of Internet
sutharharshit158
 
The Future of Artificial Intelligence (AI)
Mukul
 
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
Get More from Fiori Automation - What’s New, What Works, and What’s Next.pdf
Precisely
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
AI-Cloud-Business-Management-Platforms-The-Key-to-Efficiency-Growth.pdf
Artjoker Software Development Company
 
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
The Future of AI & Machine Learning.pptx
pritsen4700
 
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 

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