.NET is a framework developed by Microsoft that enables the creation of dynamic web applications using ASP.NET, which was first released in 2002. It features a compilation model allowing multiple versions of the framework to exist concurrently and supports various programming languages and web technologies. Key elements include web forms for dynamic content, validation mechanisms, and web services for data exchange.
AgendaIntro to
.NET
What is
.NETand
Important
components
Compilation
Model
Incremental
.NET
Framework
Stack
CLR Versions
and
Side By side
Execution
ASP.NET
OS
CLR
Executed by CLR
Executedby OS
OS
Classic CompilationVs. .NET Compilation
Machine Code
JIT
Assembly [CIL]
C# Compiler
C# Source Code
Machine Code
C Compiler
C Source Code
Using FCL
Classes
FCL
Assemblies
lpu
Platform Independence
Machine Code
JIT
AssemblyLoader
Assembly / PE (exe / dll)
Meta
Information
CIL Code
C# Compiler
C# Source Code
(Uses ref of dlls from FCL)
Development Platform
Production Platform
.NET Framework
CLR
FCL
Assembly / PE
FCL Class Ref
lpu
CLR 1.1
FCL 1.1
CLR2.0
FCL 2.0
CLR 4.0
FCL 4.0
CLR 4.5
FCL 4.5
FCL 3.0
FCL 3.5
CLR 1.0
FCL 1.0
CLRVersions
Side By Side ExecutionAllows multiple versions of
the Framework to be installed on a single system
2002 20052003 2010 2012
17.
ASP.NET
• Asp.net isan open-source server-sideWeb application framework designed for Web
development to produce dynamic Web pages. It was developed by Microsoft to allow
programmers to build dynamic web sites, web applications and web services.
• first released in January 2002 with version 1.0 of the .NET Framework.
• 1)Web forms
2)MVC
18.
ASP Architecture
IIS (asp.net_isapi.dll)
(InternetInformation Server)
Client
Server
Request:
http://www.msn.com/default.aspx
Response:
<html>…</html>
Network HTTP
TCP/IP
PC/Mac/Unix
+ Browser (IE, FireFox)
19.
Web Forms
• WebForms are pages that users request using their browser.These pages can be written using a
combination of HTML, client-script, server controls, and server code. An ASP.NET Web Forms
page presents information to the user in any browser or client device.
• The ASP.NET Web Form is separated into two logical areas:
• The template (designing code).
• A collection of code behind the Web Form .
20.
Codebehind model
• Microsoftrecommends dealing with dynamic program code by using the codebehind model, which places
this code in a separate file or in a specially designated script tag.
• Codebehind files typically have names like MyPage.aspx.cs while the page file is MyPage.aspx.
21.
Directives
• A directiveis a special instruction on how ASP.NET should process the page.
• The Most Common directive is <%@ Page %> which can specify many attributes used by the A
SP.NET page parser and compiler.
• Example:
<%@ Page Language="C#" AutoEventWireup=“True" CodeFile="Default.aspx.cs"
Inherits="Default" %>
• When AutoEventWireup is true, ASP.NET automatically treats a method of name Page_eventName as
an event handler
22.
WEB SERVER CONTROLS
•TextBox
• Button
• Radio Button/Radio Button List
• CheckBox/ CheckBox List
• HyperLink/Link Button
• Fileupload Control
• Dropdown List/List Box
23.
VALIDATIONS
Validations is aProcess of checking the user input forVarious checks before
the form is submitted to the server.
• CompareValidator
• Required FieldValidator
• RangeValidations
• Validation Summary
• Regular ExpressionValidator
WEB SERVICES
• Webservices can be defined as a piece of code that runs on a web server and provides data to the requesting clients.
Characteristic's ofWeb Services :
1) It’s a logic and does not contain UI.
2) Web services are hosted on webserver.
3) Web services transfer data in the form of XML/JSON
4) They are Platform Independent
5) Web services interact with the Database.
6) Web services are normally in the form of classes and public methods.
SOAP : SOAP means Simple Object Access Protocol which is used to invoke a web service hosted on the network
26.
SESSIONS
• USER 1---------->------SESSION 1----->
• USER 2----------> ------SESSION 2----->
• ! !
• USER N---------> ------SESSION N----->
WEB SERVER
APPLICATION
27.
COOKIES
• Cookies areused to store small piece of information on the client side.
• Gmail, Hotmail and other websites they use cookies for the purpose of signing in and
maintaining certain information
28.
ASPVS ASP.NET
ASP ASP.NET
ASPis interpreted. ASP.NET is compiled.
ASP has Mixed HTML and coding logic . Asp.net html and coding part are separated by code
behind files.
ASP.NET purely object oriented. ASP is partially object oriented.
For ASP No in-built support for XML ASP.NET full XML Support for easy data exchange
ASP has no inbuilt facility forValidation of controls ASP has inbuilt facility forValidation of controls