Microsoft ASP. Net Overview
Microsoft ASP. Net Overview
Microsoft ASP. Net Overview
Net Overview
What is ASP .Net ?
ASP.NET provides a programming model and
infrastructure that offers the needed services for
programmers to develop Web-based applications.
ASP.NET is a part of the .NET Framework, the
programmers can make use of the managed Common
Language Runtime (CLR) environment, type safety, and
inheritance etc to create Web-based applications.
You can develop your ASP.NET Web-based applications
in any .NET complaint languages such as Microsoft
Visual Basic, Visual C#, and JScript.NET.
Developers can effortlessly access the advantage of
these technologies, which consist of a managed
Common Language Runtime environment, type safety,
inheritance, and so on. With the aid of Microsoft
VisualStudio.NET Web development becomes easier.
Advantages of ASP. Net
ASP.NET is Part of the .NET Framework
ASP.NET Pages are compiled
XML-Based
Code-Behind logic
ASP.NET Pages are built with Server Controls
Advantages of Asp. Net contd..
ASP.NET is Part of the .NET Framework
The .NET Framework comprises over 3,400 classes that we can employ in our ASP.NET
applications. We can use the classes in the .NET Framework to develop any type of
applications.
ASP.NET Pages are compiled
When an ASP.NET page is first requested, it is compiled and cached on the server. This
means that an ASP.NET page performs very rapidly. All ASP.NET code is compiled rather
than interpreted, which permits early binding, strong typing, and just-in-time (JIT) compiling to
native code.
XML-Based
ASP.NET configuration settings are stored in XML-based files, which are human readable
and writable. Each one of our applications can have a different configuration file and we can
extend the configuration scheme according to our necessities.
Code-Behind logic
The main problem with ASP Classic pages is that an *.asp page does not yield modularized
code. Both HTML and Script are present in a single page. But Microsoft's ASP.NET
implementation contains a new-fangled method to break up business logic code from
presentation code.
ASP.NET Pages are built with Server Controls
We can easily build complex Web pages by bring together the pages out of ASP.NET server
controls. For example, by adding validation controls to a page, we can easily validate form
data.
ASP. net Contd..
Typical files:
WebForm1.aspx + WebForm1.cs (or .vb)
AssemblyInfo.cs (or .vb)
Web.config
Global.asax + Global.cs (or .vb)
Styles.css
MyProj.vsdisco
/bin:
.dll (compiled code in /bin folder)
Directives
<% @ directive attribute=value %>
@Page – for web pages
@Control – for user controls
@Reference – for registering a control on a page
@OutputCache – for setting page caching options
(Page) or fragment caching options (Control)
Not case-sensitive
Controls
Validation Controls
Rendered Controls
Modes:
InProc – similar to old ASP
Off
Inherits from
System.Web.UI.Page
Inherits from
WebForm1.aspx
WebForm1.cs/.vb
Compiles Into
MyProject.dll
WebForm1 class
HTML
Tracing