03-08-2012, 04:04 PM
ASP.NET
introaspnet.ppt (Size: 158 KB / Downloads: 154)
Introduction to ASP.NET
Some references:
Beginning ASP.NET using VB.NET; Wrox; 2002 chpt 2.
Kalata, K, Introduction to ASP.NET – 2002, chpt 1.
Esposito, D. Programming Microsoft ASP.NET, chpt 1.
Morrison, M. and Morrison, J. Database driven web sites (2nd edn). Chpt 6.
VS.NET on line documentation + Quickstart tutorials
What is ASP.NET and how is different from ASP
ASP: server side technology for creating dynamic web pages using scripting languages eg vb script.
ASP.NET: server side technology for creating dynamic web pages using Fully Fledged programming languages supported by .NET
VB.NET: our chosen language for writing ASP.NET pages
What is .NET?
A Microsoft strategy and new technology for delivering software services to the desktop and to the web
Components include:
MS Intermediate Language; all code is complied into a more abstract, trimmed version before execution. All .NET languages are compiled to MSIL – the common language of .NET
The CLR- common language runtime; responsible for executing MSIL code; interfaces to Windows and IIS
A rich set of libraries (Framework Class Libraries) available to all .NET languages
The .NET languages such as C#, VB.NET etc that conform to CLR
ASP.NET is how the Framework is exposed to the web, using IIS to manage simple pages of code so that they can be complied into full .NET programs. These generate HTML for the browser.
Built on open protocols (XML, SOAP)
Future for development of MS & non-MS based systems.
Also heading towards the “Internet Operating System”
Common Language Runtime
Lightweight Just-in-time compiler:
MSIL to Native machine language; Can be ported to numerous platforms
The compiled code is transformed into an intermediate language called the Microsoft Intermediate Language (MSIL or IL)
An integer in Visual Basic .NET or an int in C# are converted to the same .NET data type, which is Int32
The IL that is created is the same for all languages
The assembly is the compiled .NET program
The assembly contains the IL along with additional information called metadata
Metadata contains information about the assembly
Use the IL Disassembler (ildasm.exe) to view the IL within an assembly
ASP.NET Controls
ASP.NET form controls will create the HTML code
ASP.NET Server controls are organized as:
ASP.NET Form Controls
Data Validation Controls
User Controls
Mobile Controls
ASP.NET controls are usually identified with the prefix asp: followed by the name of the control
ASP.NET button:
User Controls
User controls are external files that can be included within another WebForm
User controls allow you to reuse code across multiple files
For example, you can create a user control that displays the a navigation bar
You can use this control on the home page; they are often used for creating self-contained code, headers, menus, and footers
User controls replace the functionality of ASP server-side include pages
They are identified with the file extension .asmx