Basics Learning
Basics Learning
Net
2
Enabling Objectives
After completing this module, you will be able to explain about the basics of ASP.Net
3
Key Topics
• Web services
Introduction to Web-Programming and
Working with ASP.NET
4
Web Applications
5
Web Applications
• The .NET Framework is a managed execution environment that
provides a variety of services to its running applications.
6
Web Application Architecture
• Client-Server Architecture:
– There can be multiple clients connected to a single server for the
application hosted in the server via a network.
Part of the Dot Net Framework
• ASP.NET is part of the Microsoft.NET framework.
8
ASP.Net and its Framework
What is ASP?
10
What is ASP.NET?
.NET Application
.NET Framework
11
Framework, Languages, And Tools
13
Features of ASP.NET
• Visual Web Developer
• ASP.NET Compiler
• Any request for a site hosted on IIS is first received by it, checked if
there is a matching web application hosted. If a web application exists,
then the request is routed to it for the appropriate web page to be served
• Visual studio framework provides inbuilt set up for a local IIS server that
gets initialized and runs automatically on running the application
ASP.NET Application Life Cycle
An HttpApplication object is
assigned to the request
Page request
Start
Initialization
Load
Rendering
Unload
Building ASP.NET pages
18
ASP.NET Web Forms
• Web Forms are pages that your users request through their
browser and that form the user interface (UI) that give your web
applications their look and feel.
19
ASP.NET Controls
20
ASP.NET Server Controls
• When you create Web Forms pages, you can use these types of
controls:
HTML server controls
Web server controls
- Validation controls
User controls
21
HTML Server Controls
• The HTML server controls are basically the standard HTML
controls enhanced to enable server side processing.
• Examples:
23
ASP.NET Master Pages
ASP.Net Web User Control
• Reference link:
https://www.tutorialspoint.com/asp.net/asp.net_custom_controls
.htm
25
Configuration
Configuration Files
• ASP.NET configuration files are XML files. The XML tags and
attributes are case-sensitive.
• For Web Application, the important configuration files are as follows:
• Web.config
• Machine.config
27
Web.Config
28
The layout of the web.config file
7
Web.Config File
• <appSettings>
• This element stores custom application configuration information,
such as:
• file paths
• XML Web service URLs
• Any information that is stored in the .ini file
• key/value pairs for an application
30
31
Recap