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.
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