SlideShare a Scribd company logo
1 of 49
• What Is ASP.NET?
• Why ASP.NET?
• Components of ASP.NET
• Tools Used for ASP.NET
• Advantages of Using ASP.NET
• Disadvantages of using ASP.NET
What Is ASP.NET?
• ASP.NET is a server-side technology used for developing
dynamic websites and web applications.
• ASP.NET aids developers to create web applications by
using HTML, CSS, and JavaScript.
• ASP.NET is the latest version of Active Server Pages, which
Microsoft developed to build websites.
• It is a web application framework released in 2002 and had an
extension of .aspx.
Why ASP.NET?
• ASP.NET reduces all the issues that come up while building a web
application like speed, cost, and language.
• ASP.NET provides multiple development modes, which help to
develop applications in an easy and better way.
• ASP.NET works on an HTTP protocol and uses HTTP commands.
• ASP.NET provides a platform that allows writing a code in a text
editor program and Visual Studio .NET.
• If you are building an application, ASP.NET could be the best choice
as it is faster and more efficient than other technologies.
Architecture of ASP.NET
Component of Asp.net
• ASP.NET depends on three major components:
1. Language
• Language helps in the creation of web applications. Some
languages that ASP.NET uses for development are VB.Net
and C#.
2. Library
• There are different types of libraries with all the components to
help developers and create applications.
3. Common Language Runtime
• It is a platform that helps to execute the .Net programs.
• It is used for running key activities like exception handling and
garbage collection.
ASP.Net
• Microsoft Web Platform Installer is a free tool
that can efficiently run web applications and get
the latest components like SQL Server Express,
.NET Framework, and Visual Studio.
• Web Essentials is a tool, that opens up the
inventory of CSS, Html, JavaScript, TypeScript.
• It makes developers easier to build by extending
Visual Studio.
Resharper is a tool that provides an
absolute productivity boost in code
quality analysis and helps to reduce time by identifying
errors.
LINQPad is a tool that
helps in testing LINQ queries
ASP
• ASP stands for Active Server Pages.
• It is a development framework used for building web pages.
• ASP was introduced in 1998 by Microsoft as its first server-side
scripting language.
• The file extension of ASP pages are .asp and are normally
written in VBScript.
• It is an old but still powerful tool for making dynamic web
pages.
• ASP is a technology (much like PHP) for executing scripts on a
web server.
ASP.NET
• ASP.NET was released in 2002 by Microsoft as a successor to
ASP.
• It is also a server-side web framework, open-source, which is
designed for the generation of dynamic web pages.
• The file extension of ASP.NET pages is .aspx and is normally
written in C# (C sharp).
• The latest version of ASP.NET is ASP.NET 4.6.
ASP ASP.NET
ASP is the interpreted language. ASP.NET is the compiled language.
ASP uses ADO (ActiveX Data Objects) technology to connect
and work with databases.
ASP.NET uses ADO.NET to connect and work with databases.
ASP is partially object-oriented. ASP.NET is fully object-oriented.
In ASP there is no facility to separate design from
programming logic.
In ASP.NET it has the option of Code Containment.
ASP Pages have the file extension .asp. ASP.NET Pages have the file extension .aspx.
ASP doesn’t have the concept of inheritance. ASP.NET inherit the class written in code behind.
ASP pages use scripting language. ASP.NET uses a full-fledged programming language.
Error handling is very poor in ASP. Error handling is very good in ASP.NET.
In ASP debugging is difficult because the ASP scripts are
interpreted.
In ASP.NET debugging is easy.
ASP is not a configurable language. In ASP.NET Web.config is used for configuration.
ASP has maximum four in-built classes i.e. Request,
Response, Session and Application.
ASP.NET has more than 2000 in-built classes.
Custom Controls can not be achieved by ASP.
Custom Controls can be achieved by ASP.NET using @register
directive.
Difference between ASP and ASP.NET
ASP.NET - Life Cycle
• ASP.NET life cycle specifies, how:
• ASP.NET processes pages to produce dynamic output
• The application and its pages are instantiated and processed
• ASP.NET compiles the pages dynamically
• The ASP.NET life cycle could be divided into two groups:
• Application Life Cycle
• Page Life Cycle
• Some of the major companies that use ASP.NET are:
• Facebook
• Instagram
• Twitter
• Email
• Youtube
Application Life Cycle
1. Application Start
• The webserver executes the application start when a user
requests an application for access.
• In this method, it sets all global variables to default.
2. Object Creation
• Object creation holds all the HTTP Context, HTTP Request, and
HTTP Response by the webserver.
• It also contains information about the request, cookies, and
browsing information.
3. HTTP Application
• HTTP Application is an object created by the webserver.
• It helps to process all the subsequent information that is sent
to the user.
4. Dispose
• Dispose is an event that is called before the application is
destroyed.
• It also helps to release manually unmanaged resources when
the objects are no longer needed.
5. Application End
• Application End is the last stage of the application life cycle. It
helps to unload the memory.
Page Life Cycle
Page Life Cycle
1. Page Request
• Page Request is the first step of the page life cycle.
• When a user request is made, the server checks the request and
compiles the pages.
• Once the compilation is done, the request is sent back to the user.
2. Page Start
• Page Start helps in creating two objects: request and response.
• The request holds all the information which the user sent, while the
response contains all the information that is sent back to the user
3. Page Initialization
• Page Initialization helps to set all the controls on the pages.
• It has a separate ID, and it applies themes to the pages in this step.
4. Page Load
• Page Load helps to load all the control properties of an
application.
• It also helps to provide information using view state and
control state.
5. Validation
• Validation happens when the execution of an application is
successful.
• It returns two conditions: true and false. If execution is
successful, it returns true, otherwise false.
6. Event Handling
• Event Handling takes place when the same pages are loaded.
It is a response for the validation.
• When the same page is loaded, a Postback event is called,
which checks the page’s credentials.
7. Rendering
• Rendering happens before it sends all the information back to
the user. And all this information is stored before being sent
back.
8. Unload
• Unload is a process that helps in deleting all unwanted
information from the memory once the output is sent to the
user.
Advantages of Using ASP.NET
• Applications that are built using ASP.NET can perform better
by taking advantage of early binding.
• ASP.NET is an independent platform where you can use any
language according to your comfort.
• Applications built using ASP.NET are used across the world.
• ASP.NET enables developers to work more efficiently.
Disadvantagesof using ASP.NET
• Security is the chief advantage and the major disadvantage because
you should take more care to protect the applications.
• Asp.Net does not provide 100% Data Access for the applications.
• Applications built using ASP.NET are more expensive because it
requires SQL Server licenses, Visual Studio licenses, Windows
Server licenses, etc.
• Changes may not work in ASP.NET Applications. If you want to make
changes for the applications, then you have to take help from
GitHub.
Introduction to ASP.NET
Create First Web Pages
• Create a first web page
Master Pages
• How to create and use MASTER Page in ASP.NET
• A master page provides the layout and
functionality to other pages.
Validation Control 31/07/23
• In ASP.NET, the validation controls are used to validate the user input data, such as data format, data type,
and date range. Some of the examples where validation controls can be used are:
• For example, a customer name text box does not start with a number or take any number.
• A patient's age does not take any non-number value and does not take a number more than 120. So I don't
think a person's age can be more than 125.
• A date field does not take any nondate value and is most likely to provide a calendar control to select a
date.
• A date range does not take any value based on business rules. So, for example, if the date is 'from' to 'to',
ensure the value of the 'to' field is greater than that of the 'from' field.
• A ticket booking system does not allow tickets to be booked for the past date than today.
• Make sure the date and time format is based on the local timezone.
• A password is masked and has a minimum number of eight characters.
• A required input field must not have an empty value.
• Any custom logic required by the business. For example, when applying for a license, the applicant's
minimum age must be greater than sixteen. OR to apply for social security benefits or senior citizen
programs, the applicant must be older than sixty-five.
Validation Control Description
RequiredFieldVa
lidation
This control ensures that a field is not left empty or blank. It
can be used for textboxes, dropdown lists, checkboxes, and
other input controls.
CompareValidat
or
This control compares the value of one input control to
another. It can validate passwords, confirm email addresses,
and other scenarios where two values must match.
RangeValidator
This control checks if a value falls within a specific range.
For example, it can be used to validate a user's age, income,
or date of birth.
RegularExpressi
onValidator
This control checks if a value matches a specified regular
expression pattern. For example, it can validate email
addresses, phone numbers, zip codes, and other input types.
CustomValidator
This control allows developers to define their validation logic.
It usually depends on the business rules.
ValidationSumm
ary
This control displays a report of all validation errors that
occurred on a Web page.
• Validation Controls in ASP.NET
• ASP.NET provides several types of validation controls that can
be used to validate user input in web forms. Some of the
common validation controls are:
• RequiredFieldValidation Control
• CompareValidator Control
• RangeValidator Control
• RegularExpressionValidator Control
• CustomValidator Control
• ValidationSummary
Demo of Validation Control
31/07/23
• Required Field Validator
• Regular Expression Validator
• Compare Validator
• Validation Summary
• Range Validator Control
1/08/23
• Custom Validator
• IsPostBack PROPERTY
State Management 2/08/23
7-08-23 , Session Sate, ISpostBAck,
ViewState
• Session Sate,
• ISpostBAck,
• ViewState
08/03/23 state management
• Application state
ASP.pptx
ASP.pptx
ASP.pptx
ASP.pptx
ASP.pptx
ASP.pptx
ASP.pptx
ASP.pptx
ASP.pptx
ASP.pptx
ASP.pptx
ASP.pptx
ASP.pptx
ASP.pptx
ASP.pptx

More Related Content

Similar to ASP.pptx

Harshita_Sinha_2.2_years_exp_.NET_MVC_Developer
Harshita_Sinha_2.2_years_exp_.NET_MVC_DeveloperHarshita_Sinha_2.2_years_exp_.NET_MVC_Developer
Harshita_Sinha_2.2_years_exp_.NET_MVC_Developer
harshita sinha
 
RohanJain_Resume
RohanJain_ResumeRohanJain_Resume
RohanJain_Resume
rohan jain
 
RohanJain_Resume
RohanJain_ResumeRohanJain_Resume
RohanJain_Resume
rohan jain
 
Khushali Patel-resume-
Khushali Patel-resume-Khushali Patel-resume-
Khushali Patel-resume-
Khushali11
 
App_Engine_PPT..........................
App_Engine_PPT..........................App_Engine_PPT..........................
App_Engine_PPT..........................
HassamShahid2
 

Similar to ASP.pptx (20)

Dotnet- An overview of ASP.NET & ADO.NET- Mazenet solution
Dotnet- An overview of ASP.NET & ADO.NET- Mazenet solutionDotnet- An overview of ASP.NET & ADO.NET- Mazenet solution
Dotnet- An overview of ASP.NET & ADO.NET- Mazenet solution
 
ATAGTR2017 Unified APM: The new age performance monitoring for production sys...
ATAGTR2017 Unified APM: The new age performance monitoring for production sys...ATAGTR2017 Unified APM: The new age performance monitoring for production sys...
ATAGTR2017 Unified APM: The new age performance monitoring for production sys...
 
Browser-Based Load Testing with Grafana K6
Browser-Based Load Testing with Grafana K6Browser-Based Load Testing with Grafana K6
Browser-Based Load Testing with Grafana K6
 
Harshita_Sinha_2.2_years_exp_.NET_MVC_Developer
Harshita_Sinha_2.2_years_exp_.NET_MVC_DeveloperHarshita_Sinha_2.2_years_exp_.NET_MVC_Developer
Harshita_Sinha_2.2_years_exp_.NET_MVC_Developer
 
Manikanta_Chimata
Manikanta_ChimataManikanta_Chimata
Manikanta_Chimata
 
ASP.NET OVERVIEW
ASP.NET OVERVIEWASP.NET OVERVIEW
ASP.NET OVERVIEW
 
RohanJain_Resume
RohanJain_ResumeRohanJain_Resume
RohanJain_Resume
 
RohanJain_Resume
RohanJain_ResumeRohanJain_Resume
RohanJain_Resume
 
Workspace on asp.net web aplication development
Workspace on asp.net  web aplication developmentWorkspace on asp.net  web aplication development
Workspace on asp.net web aplication development
 
Workspace on asp.net web aplication development
Workspace on asp.net  web aplication developmentWorkspace on asp.net  web aplication development
Workspace on asp.net web aplication development
 
Resume 10-24-16
Resume 10-24-16Resume 10-24-16
Resume 10-24-16
 
Resume
ResumeResume
Resume
 
Khushali Patel-resume-
Khushali Patel-resume-Khushali Patel-resume-
Khushali Patel-resume-
 
Optimus XPages: An Explosion of Techniques and Best Practices
Optimus XPages: An Explosion of Techniques and Best PracticesOptimus XPages: An Explosion of Techniques and Best Practices
Optimus XPages: An Explosion of Techniques and Best Practices
 
ASP.Net for Software Development
ASP.Net for Software DevelopmentASP.Net for Software Development
ASP.Net for Software Development
 
App_Engine_PPT.ppt
App_Engine_PPT.pptApp_Engine_PPT.ppt
App_Engine_PPT.ppt
 
App_Engine_PPT.ppt
App_Engine_PPT.pptApp_Engine_PPT.ppt
App_Engine_PPT.ppt
 
(ATS6-DEV02) Web Application Strategies
(ATS6-DEV02) Web Application Strategies(ATS6-DEV02) Web Application Strategies
(ATS6-DEV02) Web Application Strategies
 
App_Engine_PPT.ppt
App_Engine_PPT.pptApp_Engine_PPT.ppt
App_Engine_PPT.ppt
 
App_Engine_PPT..........................
App_Engine_PPT..........................App_Engine_PPT..........................
App_Engine_PPT..........................
 

Recently uploaded

Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Christo Ananth
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 

Recently uploaded (20)

(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spain
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 

ASP.pptx

  • 1.
  • 2. • What Is ASP.NET? • Why ASP.NET? • Components of ASP.NET • Tools Used for ASP.NET • Advantages of Using ASP.NET • Disadvantages of using ASP.NET
  • 3. What Is ASP.NET? • ASP.NET is a server-side technology used for developing dynamic websites and web applications. • ASP.NET aids developers to create web applications by using HTML, CSS, and JavaScript. • ASP.NET is the latest version of Active Server Pages, which Microsoft developed to build websites. • It is a web application framework released in 2002 and had an extension of .aspx.
  • 4. Why ASP.NET? • ASP.NET reduces all the issues that come up while building a web application like speed, cost, and language. • ASP.NET provides multiple development modes, which help to develop applications in an easy and better way. • ASP.NET works on an HTTP protocol and uses HTTP commands. • ASP.NET provides a platform that allows writing a code in a text editor program and Visual Studio .NET. • If you are building an application, ASP.NET could be the best choice as it is faster and more efficient than other technologies.
  • 6. Component of Asp.net • ASP.NET depends on three major components: 1. Language • Language helps in the creation of web applications. Some languages that ASP.NET uses for development are VB.Net and C#. 2. Library • There are different types of libraries with all the components to help developers and create applications. 3. Common Language Runtime • It is a platform that helps to execute the .Net programs. • It is used for running key activities like exception handling and garbage collection.
  • 8. • Microsoft Web Platform Installer is a free tool that can efficiently run web applications and get the latest components like SQL Server Express, .NET Framework, and Visual Studio. • Web Essentials is a tool, that opens up the inventory of CSS, Html, JavaScript, TypeScript. • It makes developers easier to build by extending Visual Studio. Resharper is a tool that provides an absolute productivity boost in code quality analysis and helps to reduce time by identifying errors. LINQPad is a tool that helps in testing LINQ queries
  • 9. ASP • ASP stands for Active Server Pages. • It is a development framework used for building web pages. • ASP was introduced in 1998 by Microsoft as its first server-side scripting language. • The file extension of ASP pages are .asp and are normally written in VBScript. • It is an old but still powerful tool for making dynamic web pages. • ASP is a technology (much like PHP) for executing scripts on a web server.
  • 10. ASP.NET • ASP.NET was released in 2002 by Microsoft as a successor to ASP. • It is also a server-side web framework, open-source, which is designed for the generation of dynamic web pages. • The file extension of ASP.NET pages is .aspx and is normally written in C# (C sharp). • The latest version of ASP.NET is ASP.NET 4.6.
  • 11. ASP ASP.NET ASP is the interpreted language. ASP.NET is the compiled language. ASP uses ADO (ActiveX Data Objects) technology to connect and work with databases. ASP.NET uses ADO.NET to connect and work with databases. ASP is partially object-oriented. ASP.NET is fully object-oriented. In ASP there is no facility to separate design from programming logic. In ASP.NET it has the option of Code Containment. ASP Pages have the file extension .asp. ASP.NET Pages have the file extension .aspx. ASP doesn’t have the concept of inheritance. ASP.NET inherit the class written in code behind. ASP pages use scripting language. ASP.NET uses a full-fledged programming language. Error handling is very poor in ASP. Error handling is very good in ASP.NET. In ASP debugging is difficult because the ASP scripts are interpreted. In ASP.NET debugging is easy. ASP is not a configurable language. In ASP.NET Web.config is used for configuration. ASP has maximum four in-built classes i.e. Request, Response, Session and Application. ASP.NET has more than 2000 in-built classes. Custom Controls can not be achieved by ASP. Custom Controls can be achieved by ASP.NET using @register directive. Difference between ASP and ASP.NET
  • 12. ASP.NET - Life Cycle • ASP.NET life cycle specifies, how: • ASP.NET processes pages to produce dynamic output • The application and its pages are instantiated and processed • ASP.NET compiles the pages dynamically • The ASP.NET life cycle could be divided into two groups: • Application Life Cycle • Page Life Cycle
  • 13. • Some of the major companies that use ASP.NET are: • Facebook • Instagram • Twitter • Email • Youtube
  • 14. Application Life Cycle 1. Application Start • The webserver executes the application start when a user requests an application for access. • In this method, it sets all global variables to default. 2. Object Creation • Object creation holds all the HTTP Context, HTTP Request, and HTTP Response by the webserver. • It also contains information about the request, cookies, and browsing information.
  • 15. 3. HTTP Application • HTTP Application is an object created by the webserver. • It helps to process all the subsequent information that is sent to the user. 4. Dispose • Dispose is an event that is called before the application is destroyed. • It also helps to release manually unmanaged resources when the objects are no longer needed. 5. Application End • Application End is the last stage of the application life cycle. It helps to unload the memory.
  • 17. Page Life Cycle 1. Page Request • Page Request is the first step of the page life cycle. • When a user request is made, the server checks the request and compiles the pages. • Once the compilation is done, the request is sent back to the user. 2. Page Start • Page Start helps in creating two objects: request and response. • The request holds all the information which the user sent, while the response contains all the information that is sent back to the user 3. Page Initialization • Page Initialization helps to set all the controls on the pages. • It has a separate ID, and it applies themes to the pages in this step.
  • 18. 4. Page Load • Page Load helps to load all the control properties of an application. • It also helps to provide information using view state and control state. 5. Validation • Validation happens when the execution of an application is successful. • It returns two conditions: true and false. If execution is successful, it returns true, otherwise false. 6. Event Handling • Event Handling takes place when the same pages are loaded. It is a response for the validation. • When the same page is loaded, a Postback event is called, which checks the page’s credentials.
  • 19. 7. Rendering • Rendering happens before it sends all the information back to the user. And all this information is stored before being sent back. 8. Unload • Unload is a process that helps in deleting all unwanted information from the memory once the output is sent to the user.
  • 20. Advantages of Using ASP.NET • Applications that are built using ASP.NET can perform better by taking advantage of early binding. • ASP.NET is an independent platform where you can use any language according to your comfort. • Applications built using ASP.NET are used across the world. • ASP.NET enables developers to work more efficiently.
  • 21. Disadvantagesof using ASP.NET • Security is the chief advantage and the major disadvantage because you should take more care to protect the applications. • Asp.Net does not provide 100% Data Access for the applications. • Applications built using ASP.NET are more expensive because it requires SQL Server licenses, Visual Studio licenses, Windows Server licenses, etc. • Changes may not work in ASP.NET Applications. If you want to make changes for the applications, then you have to take help from GitHub.
  • 23. Create First Web Pages • Create a first web page
  • 24. Master Pages • How to create and use MASTER Page in ASP.NET • A master page provides the layout and functionality to other pages.
  • 25.
  • 27. • In ASP.NET, the validation controls are used to validate the user input data, such as data format, data type, and date range. Some of the examples where validation controls can be used are: • For example, a customer name text box does not start with a number or take any number. • A patient's age does not take any non-number value and does not take a number more than 120. So I don't think a person's age can be more than 125. • A date field does not take any nondate value and is most likely to provide a calendar control to select a date. • A date range does not take any value based on business rules. So, for example, if the date is 'from' to 'to', ensure the value of the 'to' field is greater than that of the 'from' field. • A ticket booking system does not allow tickets to be booked for the past date than today. • Make sure the date and time format is based on the local timezone. • A password is masked and has a minimum number of eight characters. • A required input field must not have an empty value. • Any custom logic required by the business. For example, when applying for a license, the applicant's minimum age must be greater than sixteen. OR to apply for social security benefits or senior citizen programs, the applicant must be older than sixty-five.
  • 28. Validation Control Description RequiredFieldVa lidation This control ensures that a field is not left empty or blank. It can be used for textboxes, dropdown lists, checkboxes, and other input controls. CompareValidat or This control compares the value of one input control to another. It can validate passwords, confirm email addresses, and other scenarios where two values must match. RangeValidator This control checks if a value falls within a specific range. For example, it can be used to validate a user's age, income, or date of birth. RegularExpressi onValidator This control checks if a value matches a specified regular expression pattern. For example, it can validate email addresses, phone numbers, zip codes, and other input types. CustomValidator This control allows developers to define their validation logic. It usually depends on the business rules. ValidationSumm ary This control displays a report of all validation errors that occurred on a Web page.
  • 29. • Validation Controls in ASP.NET • ASP.NET provides several types of validation controls that can be used to validate user input in web forms. Some of the common validation controls are: • RequiredFieldValidation Control • CompareValidator Control • RangeValidator Control • RegularExpressionValidator Control • CustomValidator Control • ValidationSummary
  • 30. Demo of Validation Control 31/07/23 • Required Field Validator • Regular Expression Validator • Compare Validator • Validation Summary • Range Validator Control
  • 31. 1/08/23 • Custom Validator • IsPostBack PROPERTY
  • 33. 7-08-23 , Session Sate, ISpostBAck, ViewState • Session Sate, • ISpostBAck, • ViewState
  • 34. 08/03/23 state management • Application state