Download as pdf or txt
Download as pdf or txt
You are on page 1of 38

DOT NET TECHNOLOGY (2160711)

ASP.NET

Prof. Bhumika Patel


Lecture notes on Dotnet Technology I.T. Dept., SCET.
Prof. Bhumika Patel Sarvajanik College of Eng. & Tech., Surat Dotnet Technology
.NET Framework
• The .NET framework is a software development platform
developed by Microsoft.

• .NET is a cluster of different technologies:

• .NET Languages
▫ C#.NET and Visual Basic.NET

• Common Language Runtime


▫ Executes all .NET programs
▫ Provides services like memory management, security,
garbage collection

• .NET class library


▫ Thousands of prebuilt functionalities
Prof. Bhumika Patel Sarvajanik College of Eng. & Tech., Surat Dotnet Technology 2
.NET Framework
• ASP.NET
▫ Platform service for web applications & web services in
any .NET language

• Visual Studio .NET


▫ Optional development tool
▫ Contains rich set of productivity and debugging features

Prof. Bhumika Patel Sarvajanik College of Eng. & Tech., Surat Dotnet Technology 3
.NET Framework Architecture

Prof. Bhumika Patel Sarvajanik College of Eng. & Tech., Surat Dotnet Technology 4
.NET Languages
• VB.NET
▫ Improves on traditional VB
• C#.NET
▫ Modern language

• All .NET languages are compiled to the same MicroSoft Intermediate


Language (MSIL or IL).

• CLR runs IL code only.

• Other .NET languages: Jscript.NET, J#.NET

Prof. Bhumika Patel Sarvajanik College of Eng. & Tech., Surat Dotnet Technology 5
Common Language Runtime (CLR)
• Engine that supports all .NET languages

• Services: code verification, optimization, garbage


collection

• CLR makes no distinction between .NET languages.

• All .NET languages are compiled to IL and CLR runs the IL


codes.

Prof. Bhumika Patel Sarvajanik College of Eng. & Tech., Surat Dotnet Technology 6
Common Language Runtime (CLR)
Code in other
Code in VB.NET Code in C#
.NET language

VB.NET Appropriate
C# Compiler
Compiler Compiler

IL (Intermediate
Language) Code

CLR just-in-
time execution
Prof. Bhumika Patel Sarvajanik College of Eng. & Tech., Surat Dotnet Technology 7
ASP Vs. ASP.NET
Scripting Limitations

ASP ASP.NET

• Applications rely on VBScript, • Web pages are designed in a


suffers from a number of modern .NET language
limitations

• Need to add separate • Not a scripting language


components

Prof. Bhumika Patel Sarvajanik College of Eng. & Tech., Surat Dotnet Technology 8
ASP Vs. ASP.NET
Deployment & Configuration

ASP ASP.NET

• Not easy to update components


• Allows websites to be
• Manually stop & restart the dynamically updated &
server, not practical on live web reconfigured
servers

Prof. Bhumika Patel Sarvajanik College of Eng. & Tech., Surat Dotnet Technology 9
ASP Vs. ASP.NET
No application structure

ASP ASP.NET

• Code inserted directly to web


page with HTML markup • Code can be modified or reused
easily
• Code can rarely be
reused/modified

Prof. Bhumika Patel Sarvajanik College of Eng. & Tech., Surat Dotnet Technology 10
ASP Vs. ASP.NET
State Limitations

ASP ASP.NET

• Session state is useless if


website is hosted by several • Allows state to be stored in
web servers central repository: separate
process/database that all servers
• Client might access server B can access
while its session information is
trapped on server A

Prof. Bhumika Patel Sarvajanik College of Eng. & Tech., Surat Dotnet Technology 11
Setting up ASP.NET
• Web Server
▫ runs special software (Internet Information Services-IIS)
▫ supports FTP & HTTP access and everything that clients
expect in order to access web contents.

• When a page is tested, it is actually accessed through IIS

Prof. Bhumika Patel Sarvajanik College of Eng. & Tech., Surat Dotnet Technology 12
First ASP.NET application

Prof. Bhumika Patel Sarvajanik College of Eng. & Tech., Surat Dotnet Technology 13
Prof. Bhumika Patel Sarvajanik College of Eng. & Tech., Surat Dotnet Technology 15
Choose
Visual C#
Web
Choose
Visual C#
Default.aspx page

asp source file


Design view
Property window
C# code file
Execute (F5)
End

Prof. Bhumika Patel Sarvajanik College of Eng. & Tech., Surat Dotnet Technology

You might also like