SlideShare a Scribd company logo
•   Communication process between browser and server
•   Web Server / Web Browser’s Role
•   Understanding the role of HTTP
•   Creating File System , FTP, Local, Remote HTTP based
    websites
•   Anatomy of an ASPX Page
•   Single-File vs. Code Behind Pages
•   Website Compilation
•   Working with Web Configuration Files
1. A user uses his or her Web browser to initiate a request for a
    Web server resource.
2. HTTP is used to send a GET request to the Web server.
3. The Web server processes the GET request on the server
    (typically locating the requested code and running it).
4. The Web server then sends a response back to the Web
    browser. The HTTP protocol is used to send the HTTP
    response back to the Web browser.
5. The user’s Web browser then processes the response (typically
    HTML and JavaScript) and renders the Web page for display
    to the user.
6. The user may then enter data and perform an action such as
    clicking a submit button that causes his or her data to be sent
    back to the Web server for processing.
7. HTTP is used to POST the data back to the Web server.
8. The Web server then processes the POST request (again, calling
    your code in the process).
9. The Web server then sends a response back to the Web browser.
    HTTP is used to send the HTTP response to the Web browser.
10. The Web browser again processes the response and displays
    the Web page to the user.
Introducing asp
•   HTTP is a text based communication protocol that is used to
    request Web pages from Web Server and send the response
    back to browser
•   HTTP messages are sent between port 80 or 443

•   A typical command looks like this
    GET /default.aspx HTTP 1.1
    Host www.microsoft.com
Introducing asp
•   The communication from browser to server is known as
    REQUEST and that from server to browser is RESPONSE
•   A Response looks like this :

    HTTP/1.1 200 OK
    Server : Microsoft-IIS /7.5
    Content-Type: text/html
    Content-Length: 38
    <html><body>Hello </body></html>
Introducing asp
Introducing asp
There are two HTTP methods that can be used to submit the form
data back to the Web server: GET and POST.
When the GET verb is used, the form data is appended to the URL
as part of the query string.
GET /getCustomer.aspx?Id=123&color=blue HTTP/1.1
Host: www.northwindtraders.com

When the POST verb is used, the data is placed into the message
body of the request as follows:
POST /getCustomer.aspx HTTP/1.1
Host: www.northwindtraders.com

Id=123&color=blue
Introducing asp
The typical .aspx page includes three sections: page
directives, code, and page layout.

Page directives This section is used to set up the
environment, specifying how the page should be processed. For
example, this is where you can indicate an associated code
file, development language, transaction, and more.
Code This section contains code to handle events that execute on
the server based on the ASP.NET page processing model.
Page Layout The Page layout is written using HTML. This
includes body, markups and style information
In the single-file model, the compiler generates a new class for
your page. This class inherits from the base Page class. It is
typically named with the format ASP.pagename_aspx. This
class contains control declarations, event handlers, and related
code you have written for your page.

The code-behind programming model physically separates your
user interface layout markup and your server-side code into two
distinct files. In this case the .aspx page contains your layout
markup and the related .aspx.cs or .aspx.vb file contains the
associated code.
Most of the Web Applications are not pre-compiled.
Instead, pages and codes are typically copied to a Web
Server and then dynamically compiled the first time they
are requested by a user.

Web applications can also be pre-compiled using Build-
>Publish Website option in Visual Studio. In this case the
entire website is compiled, error checked and only layout
code and associated assemblies are copied to the server
Pro: The entire application need not be recompiled. Only
the changed web page is replaced.

Con: The first request will be slower and source code is to
be deployed to the server
Pro: Since entire application is compiled and error checked
it provides verification that all the pages and their
dependencies can be compiled.
Performance for the first user request is improved

Con: Simply copying the code files is simpler as compared
to pre-compilation.
• Configuration files allow you to manage the many settings
  related to your Web site.

• Each file is an XML file (with the extension .config) that
  contains a set of configuration elements. The elements
  define options such as security information, database
  connection strings, caching settings, and more.

• A given site might actually be configured with multiple
  .config files.
• Configuration files are applied to an executing site based
    on a hierarchy.
•   There is a global configuration file for all sites on a given
    machine called Machine.config. This file is found in the
•   %SystemRoot%Microsoft.NETFramework<versionNum
    ber>CONFIG directory.
•   The next file in the hierarchy is root default Web.config file
    located in the same directory
•   The root directory of each website also contain a
    Web.config file.
•   Finally each subfolder can optionally contain its own
    config file
Because they are XML files, the configuration files can be
opened and modified with any text editor or XML editor.
Visual Studio 2008 also provides the Web Site Administration
Tool (WSAT), which can be used to modify many of the
configuration file settings.
The WSAT allows you to edit the following categories of the
configuration files:
Security This setting allows you to set up security for your
Web site. In this category, you can add users, roles, and
permissions for your Web site.

Application Configuration This category is used to modify
the application settings.

Provider Configuration This configuration file contains
settings that allow you to specify the database provider to use
for maintaining membership and roles

More Related Content

What's hot (20)

Web Fundamentals
Web FundamentalsWeb Fundamentals
Web Fundamentals
arunv
 
Web servers – features, installation and configuration
Web servers – features, installation and configurationWeb servers – features, installation and configuration
Web servers – features, installation and configuration
webhostingguy
 
Web server
Web serverWeb server
Web server
Ankit Raj
 
uniform resource locator
uniform resource locatoruniform resource locator
uniform resource locator
rajshreemuthiah
 
Apache web server
Apache web serverApache web server
Apache web server
Rishabh Bahukhandi
 
Php Intro
Php IntroPhp Intro
Php Intro
Tenth Planet Technologies
 
Introduction server Construction
Introduction server ConstructionIntroduction server Construction
Introduction server Construction
Jisu Park
 
2009 - Microsoft IIS Vs. Apache - Who Serves More - A Study
2009 - Microsoft IIS Vs. Apache - Who Serves More - A Study2009 - Microsoft IIS Vs. Apache - Who Serves More - A Study
2009 - Microsoft IIS Vs. Apache - Who Serves More - A Study
Vijay Prasad Gupta
 
PHP Training: Module 1
PHP Training: Module 1PHP Training: Module 1
PHP Training: Module 1
hussulinux
 
Server-side Java Programming
Server-side Java ProgrammingServer-side Java Programming
Server-side Java Programming
Chris Schalk
 
Web Fundamental
Web FundamentalWeb Fundamental
Web Fundamental
SiliconExpert Technologies
 
Apache ppt
Apache pptApache ppt
Apache ppt
poornima sugumaran
 
Spider Course Day 1
Spider Course Day 1Spider Course Day 1
Spider Course Day 1
Harishankaran K
 
Advanced programming ch2
Advanced programming ch2Advanced programming ch2
Advanced programming ch2
Gera Paulos
 
Apache Server Tutorial
Apache Server TutorialApache Server Tutorial
Apache Server Tutorial
Jagat Kothari
 
Web server
Web serverWeb server
Web server
Shubham Jain
 
Servlets as introduction (Advanced programming)
Servlets as introduction (Advanced programming)Servlets as introduction (Advanced programming)
Servlets as introduction (Advanced programming)
Gera Paulos
 
Introductiontowebarchitecture 090922221506-phpapp01
Introductiontowebarchitecture 090922221506-phpapp01Introductiontowebarchitecture 090922221506-phpapp01
Introductiontowebarchitecture 090922221506-phpapp01
Maisha Price
 
Web Technology Fundamentals
Web Technology FundamentalsWeb Technology Fundamentals
Web Technology Fundamentals
sunmitraeducation
 
Basic web architecture
Basic web architectureBasic web architecture
Basic web architecture
Ralu Mihordea
 
Web Fundamentals
Web FundamentalsWeb Fundamentals
Web Fundamentals
arunv
 
Web servers – features, installation and configuration
Web servers – features, installation and configurationWeb servers – features, installation and configuration
Web servers – features, installation and configuration
webhostingguy
 
uniform resource locator
uniform resource locatoruniform resource locator
uniform resource locator
rajshreemuthiah
 
Introduction server Construction
Introduction server ConstructionIntroduction server Construction
Introduction server Construction
Jisu Park
 
2009 - Microsoft IIS Vs. Apache - Who Serves More - A Study
2009 - Microsoft IIS Vs. Apache - Who Serves More - A Study2009 - Microsoft IIS Vs. Apache - Who Serves More - A Study
2009 - Microsoft IIS Vs. Apache - Who Serves More - A Study
Vijay Prasad Gupta
 
PHP Training: Module 1
PHP Training: Module 1PHP Training: Module 1
PHP Training: Module 1
hussulinux
 
Server-side Java Programming
Server-side Java ProgrammingServer-side Java Programming
Server-side Java Programming
Chris Schalk
 
Advanced programming ch2
Advanced programming ch2Advanced programming ch2
Advanced programming ch2
Gera Paulos
 
Apache Server Tutorial
Apache Server TutorialApache Server Tutorial
Apache Server Tutorial
Jagat Kothari
 
Servlets as introduction (Advanced programming)
Servlets as introduction (Advanced programming)Servlets as introduction (Advanced programming)
Servlets as introduction (Advanced programming)
Gera Paulos
 
Introductiontowebarchitecture 090922221506-phpapp01
Introductiontowebarchitecture 090922221506-phpapp01Introductiontowebarchitecture 090922221506-phpapp01
Introductiontowebarchitecture 090922221506-phpapp01
Maisha Price
 
Basic web architecture
Basic web architectureBasic web architecture
Basic web architecture
Ralu Mihordea
 

Viewers also liked (9)

User controls
User controlsUser controls
User controls
aspnet123
 
Profile
ProfileProfile
Profile
aspnet123
 
Programming web application
Programming web applicationProgramming web application
Programming web application
aspnet123
 
Globalization and accessibility
Globalization and accessibilityGlobalization and accessibility
Globalization and accessibility
aspnet123
 
Mobile application
Mobile applicationMobile application
Mobile application
aspnet123
 
Deploying configuring caching
Deploying configuring cachingDeploying configuring caching
Deploying configuring caching
aspnet123
 
Custom controls
Custom controlsCustom controls
Custom controls
aspnet123
 
Monitoring, troubleshooting,
Monitoring, troubleshooting,Monitoring, troubleshooting,
Monitoring, troubleshooting,
aspnet123
 
ความรู้เกี่ยวกับอินเทอร์เน็ตบี
ความรู้เกี่ยวกับอินเทอร์เน็ตบีความรู้เกี่ยวกับอินเทอร์เน็ตบี
ความรู้เกี่ยวกับอินเทอร์เน็ตบี
Pheeranan Thetkham
 
User controls
User controlsUser controls
User controls
aspnet123
 
Programming web application
Programming web applicationProgramming web application
Programming web application
aspnet123
 
Globalization and accessibility
Globalization and accessibilityGlobalization and accessibility
Globalization and accessibility
aspnet123
 
Mobile application
Mobile applicationMobile application
Mobile application
aspnet123
 
Deploying configuring caching
Deploying configuring cachingDeploying configuring caching
Deploying configuring caching
aspnet123
 
Custom controls
Custom controlsCustom controls
Custom controls
aspnet123
 
Monitoring, troubleshooting,
Monitoring, troubleshooting,Monitoring, troubleshooting,
Monitoring, troubleshooting,
aspnet123
 
ความรู้เกี่ยวกับอินเทอร์เน็ตบี
ความรู้เกี่ยวกับอินเทอร์เน็ตบีความรู้เกี่ยวกับอินเทอร์เน็ตบี
ความรู้เกี่ยวกับอินเทอร์เน็ตบี
Pheeranan Thetkham
 
Ad

Similar to Introducing asp (20)

Web engineering 2(lect 0)
Web engineering 2(lect 0)Web engineering 2(lect 0)
Web engineering 2(lect 0)
Roohul Amin
 
Speed = $$$
Speed = $$$Speed = $$$
Speed = $$$
Peter Gfader
 
Website/Web Applications / Static vs Dynamic Website / Web Browser /
Website/Web Applications  / Static vs Dynamic Website / Web Browser / Website/Web Applications  / Static vs Dynamic Website / Web Browser /
Website/Web Applications / Static vs Dynamic Website / Web Browser /
Sachin Yadav
 
Web development using ASP.NET MVC
Web development using ASP.NET MVC Web development using ASP.NET MVC
Web development using ASP.NET MVC
Adil Mughal
 
Chapter 5
Chapter 5Chapter 5
Chapter 5
application developer
 
Ch-1_.ppt
Ch-1_.pptCh-1_.ppt
Ch-1_.ppt
berihunmolla2
 
CTU June 2011 - Things that Every ASP.NET Developer Should Know
CTU June 2011 - Things that Every ASP.NET Developer Should KnowCTU June 2011 - Things that Every ASP.NET Developer Should Know
CTU June 2011 - Things that Every ASP.NET Developer Should Know
Spiffy
 
Web Database
Web DatabaseWeb Database
Web Database
idroos7
 
DevNext - Web Programming Concepts Using Asp Net
DevNext - Web Programming Concepts Using Asp NetDevNext - Web Programming Concepts Using Asp Net
DevNext - Web Programming Concepts Using Asp Net
Adil Mughal
 
MINOR PROZECT REPORT on WINDOWS SERVER
MINOR PROZECT REPORT on WINDOWS SERVERMINOR PROZECT REPORT on WINDOWS SERVER
MINOR PROZECT REPORT on WINDOWS SERVER
Asish Verma
 
C# Unit5 Notes
C# Unit5 NotesC# Unit5 Notes
C# Unit5 Notes
Sudarshan Dhondaley
 
WEB I - 01 - Introduction to Web Development
WEB I - 01 - Introduction to Web DevelopmentWEB I - 01 - Introduction to Web Development
WEB I - 01 - Introduction to Web Development
Randy Connolly
 
INTERNET PART1.pptx
INTERNET PART1.pptxINTERNET PART1.pptx
INTERNET PART1.pptx
BhoopendraKumar38
 
Web 101
Web 101Web 101
Web 101
Mike Feltman
 
Servlet & jsp
Servlet  &  jspServlet  &  jsp
Servlet & jsp
Subhasis Nayak
 
Asp .net web form fundamentals
Asp .net web form fundamentalsAsp .net web form fundamentals
Asp .net web form fundamentals
Gopal Ji Singh
 
Web server
Web serverWeb server
Web server
Sajan Sahu
 
C# and Dot Net Framework 1st & 2nd Unit.pdf
C# and Dot Net Framework 1st & 2nd Unit.pdfC# and Dot Net Framework 1st & 2nd Unit.pdf
C# and Dot Net Framework 1st & 2nd Unit.pdf
MohammedAnas871930
 
Introduction to ASP.NET
Introduction to ASP.NETIntroduction to ASP.NET
Introduction to ASP.NET
SharePointKE
 
Making Of PHP Based Web Application
Making Of PHP Based Web ApplicationMaking Of PHP Based Web Application
Making Of PHP Based Web Application
Sachin Walvekar
 
Web engineering 2(lect 0)
Web engineering 2(lect 0)Web engineering 2(lect 0)
Web engineering 2(lect 0)
Roohul Amin
 
Website/Web Applications / Static vs Dynamic Website / Web Browser /
Website/Web Applications  / Static vs Dynamic Website / Web Browser / Website/Web Applications  / Static vs Dynamic Website / Web Browser /
Website/Web Applications / Static vs Dynamic Website / Web Browser /
Sachin Yadav
 
Web development using ASP.NET MVC
Web development using ASP.NET MVC Web development using ASP.NET MVC
Web development using ASP.NET MVC
Adil Mughal
 
CTU June 2011 - Things that Every ASP.NET Developer Should Know
CTU June 2011 - Things that Every ASP.NET Developer Should KnowCTU June 2011 - Things that Every ASP.NET Developer Should Know
CTU June 2011 - Things that Every ASP.NET Developer Should Know
Spiffy
 
Web Database
Web DatabaseWeb Database
Web Database
idroos7
 
DevNext - Web Programming Concepts Using Asp Net
DevNext - Web Programming Concepts Using Asp NetDevNext - Web Programming Concepts Using Asp Net
DevNext - Web Programming Concepts Using Asp Net
Adil Mughal
 
MINOR PROZECT REPORT on WINDOWS SERVER
MINOR PROZECT REPORT on WINDOWS SERVERMINOR PROZECT REPORT on WINDOWS SERVER
MINOR PROZECT REPORT on WINDOWS SERVER
Asish Verma
 
WEB I - 01 - Introduction to Web Development
WEB I - 01 - Introduction to Web DevelopmentWEB I - 01 - Introduction to Web Development
WEB I - 01 - Introduction to Web Development
Randy Connolly
 
Asp .net web form fundamentals
Asp .net web form fundamentalsAsp .net web form fundamentals
Asp .net web form fundamentals
Gopal Ji Singh
 
C# and Dot Net Framework 1st & 2nd Unit.pdf
C# and Dot Net Framework 1st & 2nd Unit.pdfC# and Dot Net Framework 1st & 2nd Unit.pdf
C# and Dot Net Framework 1st & 2nd Unit.pdf
MohammedAnas871930
 
Introduction to ASP.NET
Introduction to ASP.NETIntroduction to ASP.NET
Introduction to ASP.NET
SharePointKE
 
Making Of PHP Based Web Application
Making Of PHP Based Web ApplicationMaking Of PHP Based Web Application
Making Of PHP Based Web Application
Sachin Walvekar
 
Ad

Recently uploaded (20)

Crypto Super 500 - 14th Report - June2025.pdf
Crypto Super 500 - 14th Report - June2025.pdfCrypto Super 500 - 14th Report - June2025.pdf
Crypto Super 500 - 14th Report - June2025.pdf
Stephen Perrenod
 
cnc-drilling-dowel-inserting-machine-drillteq-d-510-english.pdf
cnc-drilling-dowel-inserting-machine-drillteq-d-510-english.pdfcnc-drilling-dowel-inserting-machine-drillteq-d-510-english.pdf
cnc-drilling-dowel-inserting-machine-drillteq-d-510-english.pdf
AmirStern2
 
Scaling GenAI Inference From Prototype to Production: Real-World Lessons in S...
Scaling GenAI Inference From Prototype to Production: Real-World Lessons in S...Scaling GenAI Inference From Prototype to Production: Real-World Lessons in S...
Scaling GenAI Inference From Prototype to Production: Real-World Lessons in S...
Anish Kumar
 
Integration of Utility Data into 3D BIM Models Using a 3D Solids Modeling Wor...
Integration of Utility Data into 3D BIM Models Using a 3D Solids Modeling Wor...Integration of Utility Data into 3D BIM Models Using a 3D Solids Modeling Wor...
Integration of Utility Data into 3D BIM Models Using a 3D Solids Modeling Wor...
Safe Software
 
FME for Distribution & Transmission Integrity Management Program (DIMP & TIMP)
FME for Distribution & Transmission Integrity Management Program (DIMP & TIMP)FME for Distribution & Transmission Integrity Management Program (DIMP & TIMP)
FME for Distribution & Transmission Integrity Management Program (DIMP & TIMP)
Safe Software
 
AudGram Review: Build Visually Appealing, AI-Enhanced Audiograms to Engage Yo...
AudGram Review: Build Visually Appealing, AI-Enhanced Audiograms to Engage Yo...AudGram Review: Build Visually Appealing, AI-Enhanced Audiograms to Engage Yo...
AudGram Review: Build Visually Appealing, AI-Enhanced Audiograms to Engage Yo...
SOFTTECHHUB
 
Data Validation and System Interoperability
Data Validation and System InteroperabilityData Validation and System Interoperability
Data Validation and System Interoperability
Safe Software
 
Your startup on AWS - How to architect and maintain a Lean and Mean account J...
Your startup on AWS - How to architect and maintain a Lean and Mean account J...Your startup on AWS - How to architect and maintain a Lean and Mean account J...
Your startup on AWS - How to architect and maintain a Lean and Mean account J...
angelo60207
 
Bridging the divide: A conversation on tariffs today in the book industry - T...
Bridging the divide: A conversation on tariffs today in the book industry - T...Bridging the divide: A conversation on tariffs today in the book industry - T...
Bridging the divide: A conversation on tariffs today in the book industry - T...
BookNet Canada
 
FIDO Seminar: Perspectives on Passkeys & Consumer Adoption.pptx
FIDO Seminar: Perspectives on Passkeys & Consumer Adoption.pptxFIDO Seminar: Perspectives on Passkeys & Consumer Adoption.pptx
FIDO Seminar: Perspectives on Passkeys & Consumer Adoption.pptx
FIDO Alliance
 
High Availability On-Premises FME Flow.pdf
High Availability On-Premises FME Flow.pdfHigh Availability On-Premises FME Flow.pdf
High Availability On-Premises FME Flow.pdf
Safe Software
 
vertical-cnc-processing-centers-drillteq-v-200-en.pdf
vertical-cnc-processing-centers-drillteq-v-200-en.pdfvertical-cnc-processing-centers-drillteq-v-200-en.pdf
vertical-cnc-processing-centers-drillteq-v-200-en.pdf
AmirStern2
 
The State of Web3 Industry- Industry Report
The State of Web3 Industry- Industry ReportThe State of Web3 Industry- Industry Report
The State of Web3 Industry- Industry Report
Liveplex
 
Analysis of the changes in the attitude of the news comments caused by knowin...
Analysis of the changes in the attitude of the news comments caused by knowin...Analysis of the changes in the attitude of the news comments caused by knowin...
Analysis of the changes in the attitude of the news comments caused by knowin...
Matsushita Laboratory
 
“Addressing Evolving AI Model Challenges Through Memory and Storage,” a Prese...
“Addressing Evolving AI Model Challenges Through Memory and Storage,” a Prese...“Addressing Evolving AI Model Challenges Through Memory and Storage,” a Prese...
“Addressing Evolving AI Model Challenges Through Memory and Storage,” a Prese...
Edge AI and Vision Alliance
 
PyData - Graph Theory for Multi-Agent Integration
PyData - Graph Theory for Multi-Agent IntegrationPyData - Graph Theory for Multi-Agent Integration
PyData - Graph Theory for Multi-Agent Integration
barqawicloud
 
FIDO Seminar: Targeting Trust: The Future of Identity in the Workforce.pptx
FIDO Seminar: Targeting Trust: The Future of Identity in the Workforce.pptxFIDO Seminar: Targeting Trust: The Future of Identity in the Workforce.pptx
FIDO Seminar: Targeting Trust: The Future of Identity in the Workforce.pptx
FIDO Alliance
 
No-Code Workflows for CAD & 3D Data: Scaling AI-Driven Infrastructure
No-Code Workflows for CAD & 3D Data: Scaling AI-Driven InfrastructureNo-Code Workflows for CAD & 3D Data: Scaling AI-Driven Infrastructure
No-Code Workflows for CAD & 3D Data: Scaling AI-Driven Infrastructure
Safe Software
 
FIDO Seminar: Evolving Landscape of Post-Quantum Cryptography.pptx
FIDO Seminar: Evolving Landscape of Post-Quantum Cryptography.pptxFIDO Seminar: Evolving Landscape of Post-Quantum Cryptography.pptx
FIDO Seminar: Evolving Landscape of Post-Quantum Cryptography.pptx
FIDO Alliance
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
Ivanti
 
Crypto Super 500 - 14th Report - June2025.pdf
Crypto Super 500 - 14th Report - June2025.pdfCrypto Super 500 - 14th Report - June2025.pdf
Crypto Super 500 - 14th Report - June2025.pdf
Stephen Perrenod
 
cnc-drilling-dowel-inserting-machine-drillteq-d-510-english.pdf
cnc-drilling-dowel-inserting-machine-drillteq-d-510-english.pdfcnc-drilling-dowel-inserting-machine-drillteq-d-510-english.pdf
cnc-drilling-dowel-inserting-machine-drillteq-d-510-english.pdf
AmirStern2
 
Scaling GenAI Inference From Prototype to Production: Real-World Lessons in S...
Scaling GenAI Inference From Prototype to Production: Real-World Lessons in S...Scaling GenAI Inference From Prototype to Production: Real-World Lessons in S...
Scaling GenAI Inference From Prototype to Production: Real-World Lessons in S...
Anish Kumar
 
Integration of Utility Data into 3D BIM Models Using a 3D Solids Modeling Wor...
Integration of Utility Data into 3D BIM Models Using a 3D Solids Modeling Wor...Integration of Utility Data into 3D BIM Models Using a 3D Solids Modeling Wor...
Integration of Utility Data into 3D BIM Models Using a 3D Solids Modeling Wor...
Safe Software
 
FME for Distribution & Transmission Integrity Management Program (DIMP & TIMP)
FME for Distribution & Transmission Integrity Management Program (DIMP & TIMP)FME for Distribution & Transmission Integrity Management Program (DIMP & TIMP)
FME for Distribution & Transmission Integrity Management Program (DIMP & TIMP)
Safe Software
 
AudGram Review: Build Visually Appealing, AI-Enhanced Audiograms to Engage Yo...
AudGram Review: Build Visually Appealing, AI-Enhanced Audiograms to Engage Yo...AudGram Review: Build Visually Appealing, AI-Enhanced Audiograms to Engage Yo...
AudGram Review: Build Visually Appealing, AI-Enhanced Audiograms to Engage Yo...
SOFTTECHHUB
 
Data Validation and System Interoperability
Data Validation and System InteroperabilityData Validation and System Interoperability
Data Validation and System Interoperability
Safe Software
 
Your startup on AWS - How to architect and maintain a Lean and Mean account J...
Your startup on AWS - How to architect and maintain a Lean and Mean account J...Your startup on AWS - How to architect and maintain a Lean and Mean account J...
Your startup on AWS - How to architect and maintain a Lean and Mean account J...
angelo60207
 
Bridging the divide: A conversation on tariffs today in the book industry - T...
Bridging the divide: A conversation on tariffs today in the book industry - T...Bridging the divide: A conversation on tariffs today in the book industry - T...
Bridging the divide: A conversation on tariffs today in the book industry - T...
BookNet Canada
 
FIDO Seminar: Perspectives on Passkeys & Consumer Adoption.pptx
FIDO Seminar: Perspectives on Passkeys & Consumer Adoption.pptxFIDO Seminar: Perspectives on Passkeys & Consumer Adoption.pptx
FIDO Seminar: Perspectives on Passkeys & Consumer Adoption.pptx
FIDO Alliance
 
High Availability On-Premises FME Flow.pdf
High Availability On-Premises FME Flow.pdfHigh Availability On-Premises FME Flow.pdf
High Availability On-Premises FME Flow.pdf
Safe Software
 
vertical-cnc-processing-centers-drillteq-v-200-en.pdf
vertical-cnc-processing-centers-drillteq-v-200-en.pdfvertical-cnc-processing-centers-drillteq-v-200-en.pdf
vertical-cnc-processing-centers-drillteq-v-200-en.pdf
AmirStern2
 
The State of Web3 Industry- Industry Report
The State of Web3 Industry- Industry ReportThe State of Web3 Industry- Industry Report
The State of Web3 Industry- Industry Report
Liveplex
 
Analysis of the changes in the attitude of the news comments caused by knowin...
Analysis of the changes in the attitude of the news comments caused by knowin...Analysis of the changes in the attitude of the news comments caused by knowin...
Analysis of the changes in the attitude of the news comments caused by knowin...
Matsushita Laboratory
 
“Addressing Evolving AI Model Challenges Through Memory and Storage,” a Prese...
“Addressing Evolving AI Model Challenges Through Memory and Storage,” a Prese...“Addressing Evolving AI Model Challenges Through Memory and Storage,” a Prese...
“Addressing Evolving AI Model Challenges Through Memory and Storage,” a Prese...
Edge AI and Vision Alliance
 
PyData - Graph Theory for Multi-Agent Integration
PyData - Graph Theory for Multi-Agent IntegrationPyData - Graph Theory for Multi-Agent Integration
PyData - Graph Theory for Multi-Agent Integration
barqawicloud
 
FIDO Seminar: Targeting Trust: The Future of Identity in the Workforce.pptx
FIDO Seminar: Targeting Trust: The Future of Identity in the Workforce.pptxFIDO Seminar: Targeting Trust: The Future of Identity in the Workforce.pptx
FIDO Seminar: Targeting Trust: The Future of Identity in the Workforce.pptx
FIDO Alliance
 
No-Code Workflows for CAD & 3D Data: Scaling AI-Driven Infrastructure
No-Code Workflows for CAD & 3D Data: Scaling AI-Driven InfrastructureNo-Code Workflows for CAD & 3D Data: Scaling AI-Driven Infrastructure
No-Code Workflows for CAD & 3D Data: Scaling AI-Driven Infrastructure
Safe Software
 
FIDO Seminar: Evolving Landscape of Post-Quantum Cryptography.pptx
FIDO Seminar: Evolving Landscape of Post-Quantum Cryptography.pptxFIDO Seminar: Evolving Landscape of Post-Quantum Cryptography.pptx
FIDO Seminar: Evolving Landscape of Post-Quantum Cryptography.pptx
FIDO Alliance
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
Ivanti
 

Introducing asp

  • 1. Communication process between browser and server • Web Server / Web Browser’s Role • Understanding the role of HTTP • Creating File System , FTP, Local, Remote HTTP based websites • Anatomy of an ASPX Page • Single-File vs. Code Behind Pages • Website Compilation • Working with Web Configuration Files
  • 2. 1. A user uses his or her Web browser to initiate a request for a Web server resource. 2. HTTP is used to send a GET request to the Web server. 3. The Web server processes the GET request on the server (typically locating the requested code and running it). 4. The Web server then sends a response back to the Web browser. The HTTP protocol is used to send the HTTP response back to the Web browser. 5. The user’s Web browser then processes the response (typically HTML and JavaScript) and renders the Web page for display to the user.
  • 3. 6. The user may then enter data and perform an action such as clicking a submit button that causes his or her data to be sent back to the Web server for processing. 7. HTTP is used to POST the data back to the Web server. 8. The Web server then processes the POST request (again, calling your code in the process). 9. The Web server then sends a response back to the Web browser. HTTP is used to send the HTTP response to the Web browser. 10. The Web browser again processes the response and displays the Web page to the user.
  • 5. HTTP is a text based communication protocol that is used to request Web pages from Web Server and send the response back to browser • HTTP messages are sent between port 80 or 443 • A typical command looks like this GET /default.aspx HTTP 1.1 Host www.microsoft.com
  • 7. The communication from browser to server is known as REQUEST and that from server to browser is RESPONSE • A Response looks like this : HTTP/1.1 200 OK Server : Microsoft-IIS /7.5 Content-Type: text/html Content-Length: 38 <html><body>Hello </body></html>
  • 10. There are two HTTP methods that can be used to submit the form data back to the Web server: GET and POST. When the GET verb is used, the form data is appended to the URL as part of the query string. GET /getCustomer.aspx?Id=123&color=blue HTTP/1.1 Host: www.northwindtraders.com When the POST verb is used, the data is placed into the message body of the request as follows: POST /getCustomer.aspx HTTP/1.1 Host: www.northwindtraders.com Id=123&color=blue
  • 12. The typical .aspx page includes three sections: page directives, code, and page layout. Page directives This section is used to set up the environment, specifying how the page should be processed. For example, this is where you can indicate an associated code file, development language, transaction, and more. Code This section contains code to handle events that execute on the server based on the ASP.NET page processing model. Page Layout The Page layout is written using HTML. This includes body, markups and style information
  • 13. In the single-file model, the compiler generates a new class for your page. This class inherits from the base Page class. It is typically named with the format ASP.pagename_aspx. This class contains control declarations, event handlers, and related code you have written for your page. The code-behind programming model physically separates your user interface layout markup and your server-side code into two distinct files. In this case the .aspx page contains your layout markup and the related .aspx.cs or .aspx.vb file contains the associated code.
  • 14. Most of the Web Applications are not pre-compiled. Instead, pages and codes are typically copied to a Web Server and then dynamically compiled the first time they are requested by a user. Web applications can also be pre-compiled using Build- >Publish Website option in Visual Studio. In this case the entire website is compiled, error checked and only layout code and associated assemblies are copied to the server
  • 15. Pro: The entire application need not be recompiled. Only the changed web page is replaced. Con: The first request will be slower and source code is to be deployed to the server
  • 16. Pro: Since entire application is compiled and error checked it provides verification that all the pages and their dependencies can be compiled. Performance for the first user request is improved Con: Simply copying the code files is simpler as compared to pre-compilation.
  • 17. • Configuration files allow you to manage the many settings related to your Web site. • Each file is an XML file (with the extension .config) that contains a set of configuration elements. The elements define options such as security information, database connection strings, caching settings, and more. • A given site might actually be configured with multiple .config files.
  • 18. • Configuration files are applied to an executing site based on a hierarchy. • There is a global configuration file for all sites on a given machine called Machine.config. This file is found in the • %SystemRoot%Microsoft.NETFramework<versionNum ber>CONFIG directory. • The next file in the hierarchy is root default Web.config file located in the same directory • The root directory of each website also contain a Web.config file. • Finally each subfolder can optionally contain its own config file
  • 19. Because they are XML files, the configuration files can be opened and modified with any text editor or XML editor. Visual Studio 2008 also provides the Web Site Administration Tool (WSAT), which can be used to modify many of the configuration file settings.
  • 20. The WSAT allows you to edit the following categories of the configuration files: Security This setting allows you to set up security for your Web site. In this category, you can add users, roles, and permissions for your Web site. Application Configuration This category is used to modify the application settings. Provider Configuration This configuration file contains settings that allow you to specify the database provider to use for maintaining membership and roles