What Makes .NET Different?. Scott Mitchell. Overview. The evolution of the Web. Classic ASP overview – its strengths and weaknesses. Time for something new: an examination of Microsoft’s .NET Strategy. ASP.NET to the Rescue! Comparing and Contrasting ASP.NET and classic ASP.
Distributed, Compiled Programs
Static Web Pages
Content was static. To alter the look and feel of a Web page, a programmer had to physically alter the contents of the page itself.
The static nature of the Web at this time removed any possibility of a user interacting with a Web site or interaction among Web sites.
Performance was great and development easy, but the Web lacked any real usability.
Dynamic scripts allowed for user interaction with a Web site. Web content could be dynamically generated based on a number of variables, such as user input. Allowed for the Web to serve as an application medium.
Development was anything but easy. The scripting nature of development led to poor programming practices and “messy” code. Also, interaction among Web sites was possible, but limited and difficult.
Web pages are actual, programs created using object-oriented programming techniques. These programs are compiled instead of interpreted like the scripts of the past.
A focus on Inter-Web server communication allows developers to build truly distributed applications on the Web.The Evolution of the Web
ASP.NET and the inherent server controls are classes in the .NET Framework. The System.Web namespace encapsulates the classes used by ASP.NET.
File Uploads Image manipulations
On the fly (de|en)cryption
Systems-level activities (Event log, perf. mon., etc.)
JScript.NET MS C++ .NET
'Create an ArrayList
Dim myArrayList as New ArrayList()
Function GetRandomWord(myAL as ArrayList)
Dim rndNumber as New Random()
// Create an ArrayList
ArrayList myArrayList = new ArrayList();
string GetRandomWord(ArrayList myAL)
Random rndNumber = new Random();
components written in one language can be used in another.
ASP.NET Web pages and Web services are compiled programs. So when a user visits one of your ASP.NET Web pages, an actual “program” is being executed – the ASP.NET Web page.
ASP.NET contains Web controls that return HTML 3.2-compliant HTML.
Could use ADO to access database information.
Can access databases via ADO.NET.
Developers could create ASP pages quickly and easily using VBScript
ASP.NET development is even quicker and easier than classic ASP and utilizes VB.NET, which is very similar to VBScript.Comparing ASP.NET and ASP
Classic ASP ASP.NET
Uses compiled, .NET-compatible language (VB.NET / C# / JScript.NET, etc.)
Web pages contain .asp extension
Web pages contain .aspx extension.
HTML and server-side script intermixed.
Server-side script placed in distinct SCRIPT blocks or even separate source files.Contrasting ASP.NET and ASP
Classic ASP ASP.NET
Now would be a great time to ask questions!