CIS 451: ASP.NET Concepts Dr. Ralph D. Westfall January, 2009
.NET Framework all code (regardless of language) is compiled into Microsoft Intermediate Language (MSIL) much like Java's "bytecode" from JVM.NET languages e.g., C#, VB.NET, etc. adhere to.NET standards so they can be compiled into MSIL
.NET Framework - 2 common language runtime (CLR) interfaces MSIL code files with each other and with Windows, regardless of original language.NET Framework class libraries can be included in your code to do a lot of useful things (e.g., connect to a database, send , etc.)
.NET Framework - 3 ASP.NET makes it possible for MSIL code to work on the Internet ASP 3.0 only worked with VBScript ASP.NET can work with any language that can be compiled into MSIL
ASP.NET 2.0 WebForms used to create the user interface and ASP.NET code behind it programmer creates a web page (.aspx) file and drags/drops UI controls onto it web page is largely in HTML code Visual Studio often creates a "code behind" (.aspx.vb) file that handles the logic and runs on the server side
WebForm Demo create an ASP.NET Web Application set Layout>Positions>Auto-position check Change and Snap add 2-3 tables from Toolbox HTML area Table>Insert>Table [set rows, columns, etc.] drag and drop to where you want them can drag sides to change all cell sizes or individually in TD style property
WebForm Demo - 2 create several UserControls add controls from Toolbox WebForms area view HTML and then with Debug>Start adjust table size etc. and view again
WebForm Advantages clean separation between "presentation" code on client side and logic on server side makes easier to update: programmer can change either part without the other most controls used in Windows applications can also be used on web in other words, a lot of useful controls
Performance code compiles as being written rather than when user views pages can update without restarting server when a page is requested, a copy is cached in memory for requests by other users Microsoft said ASP used 75% less code and ran 28 times faster than J2EE Microsoft said
Reliability detects and recovers from deadlocks and other errors if a process has a "memory leak," a new process handles new users gets all new users original shuts down after its users finish fewer server restarts required
Sources bforms.asp bforms.asp net.aspx?tabindex=0&tabid=1 net.aspx?tabindex=0&tabid=1 /content.asp?b=Net_2003_21days&seq Num=63 /content.asp?b=Net_2003_21days&seq Num=63