160 likes | 323 Views
Introduction to ASP.NET. MIS 324 Professor Sandvig. Outline. Why ASP.NET? .NET Framework ASP.NET Features Object Oriented Event driven Server controls Summary. Why ASP.NET?. Industrial Strength Full Featured Security, logging, performance, etc. Highly integrated with Visual Studio
E N D
Introduction to ASP.NET MIS 324 Professor Sandvig
Outline • Why ASP.NET? • .NET Framework • ASP.NET Features • Object Oriented • Event driven • Server controls • Summary
Why ASP.NET? • Industrial Strength • Full Featured • Security, logging, performance, etc. • Highly integrated with Visual Studio • .NET aimed at corporate users • Employers of WWU graduates • Designed for large, complex projects
.NET • PHP/ASP • .NET
.NET Framework • Create both web & Windows applications • Different interface • Same plumbing • Support for many languages • VB, C#, J#, Java, C++, PERL, Python, Effiel, Cobol, .. • 15+ in development • Runs on several operating systems • Windows, Unix • Under development: Linux & FreeBSD • Mono project
.NET Framework • Two major components: • Common Language Runtime (CLR) • Manages compilation, memory, security, exceptions, garbage collection, etc. • Technical details outside scope of this class • Class Library…
.NET Class Library • Classes are pre-written code • Web server controls, access data, manipulate data, send email, etc.… • Classes are grouped into Namespaces • .NET Class Library
.NET Features • Object Oriented • Web Server Controls • Visual Studio
1. Object Oriented • Advantages: • Encapsulation • Compartmentalize functionality into classes • Messy details hidden inside the class • Need to understand only the class interface • Reusability • Build once, test, reuse many times
Object Oriented • All modern programming languages support OOP • OOP concepts & terminology are universal
2. Web Server Controls • Advantages: • Separation of code and presentation • Code provides logic & generate output • Server controls display • We write less HTML & Javascript • Data saved in viewstate • Disadvantage: • Must learn control features
2. Web Server Controls • Example: • Hello.aspx
3. Visual Studio • Integrated Development Environment • Features: • Drag & drop • Web Server Controls • IntelliSense • Syntax checking • pop-up class documentation • Debugger • Integration with Sql Server • HUGE time saver • Faster learning
Summary • ASP.NET • State-of-the-art programming technology • Tremendous functionality • Complex!! • Be prepared to work hard • Fun!!