introduction to asp.net mis 324 professor sandvig
TRANSCRIPT
Introduction to ASP.NETIntroduction to ASP.NET
MIS 324MIS 324
Professor SandvigProfessor Sandvig
OutlineOutline
Why ASP.NET?Why ASP.NET? .NET Framework.NET Framework ASP.NET FeaturesASP.NET Features
Object OrientedObject Oriented Event drivenEvent driven Server controlsServer controls
SummarySummary
Why ASP.NET?Why ASP.NET?
Industrial StrengthIndustrial Strength Full FeaturedFull Featured
• Security, logging, performance, etc.Security, logging, performance, etc. Highly integrated with Visual StudioHighly integrated with Visual Studio
.NET aimed at corporate users.NET aimed at corporate users Employers of WWU graduatesEmployers of WWU graduates
Designed for large, complex projectsDesigned for large, complex projects
.NET.NET
PHP/ASPPHP/ASP
.NET.NET
.NET Framework.NET Framework Create both web & Windows applicationsCreate both web & Windows applications
Different interfaceDifferent interface Same plumbingSame plumbing
Support for many languagesSupport for many languages• VB, C#, J#, Java, C++, PERL, Python, Effiel, Cobol, ..VB, C#, J#, Java, C++, PERL, Python, Effiel, Cobol, ..• 15+ in development15+ in development
Runs on several operating systemsRuns on several operating systems Windows, UnixWindows, Unix Under development: Linux & FreeBSDUnder development: Linux & FreeBSD
• Mono projectMono project
.NET Framework.NET Framework
Two major components:Two major components:1.1. Common Language Runtime (CLR)Common Language Runtime (CLR)
• Manages compilation, memory, security, Manages compilation, memory, security, exceptions, garbage collection, etc. exceptions, garbage collection, etc.
• Technical details outside scope of this class Technical details outside scope of this class
2.2. Class Library…Class Library…
.NET Class Library.NET Class Library
Classes are pre-written codeClasses are pre-written code Web server controls, access data, Web server controls, access data,
manipulate data, send email, etc.…manipulate data, send email, etc.… Classes are grouped into NamespacesClasses are grouped into Namespaces
.NET Class Library.NET Class Library
.NET Features.NET Features
1.1. Object OrientedObject Oriented
2.2. Web Server ControlsWeb Server Controls
3.3. Visual StudioVisual Studio
1. Object Oriented1. Object Oriented
Advantages:Advantages: EncapsulationEncapsulation
• Compartmentalize Compartmentalize functionality into classesfunctionality into classes
Messy details hidden inside Messy details hidden inside the classthe class
• Need to understand only the Need to understand only the class interfaceclass interface
ReusabilityReusability• Build once, test, reuse many Build once, test, reuse many
timestimes
Object OrientedObject Oriented
All modern All modern programming programming languages support languages support OOPOOP
OOP concepts & OOP concepts & terminology are terminology are universaluniversal
2. Web Server Controls2. Web Server Controls
Advantages:Advantages: Separation of code and Separation of code and
presentationpresentation• Code provides logic & generate Code provides logic & generate
outputoutput• Server controls displayServer controls display
We write less HTML & JavascriptWe write less HTML & Javascript Data saved in viewstateData saved in viewstate
Disadvantage:Disadvantage:• Must learn control featuresMust learn control features
2. Web Server Controls2. Web Server Controls
Example:Example: Hello.aspxHello.aspx
3. Visual Studio3. Visual Studio
Integrated Development EnvironmentIntegrated Development Environment Features:Features:
Drag & drop Drag & drop • Web Server ControlsWeb Server Controls
IntelliSenseIntelliSense Syntax checkingSyntax checking pop-up class documentation pop-up class documentation DebuggerDebugger Integration with Sql ServerIntegration with Sql Server
HUGE time saverHUGE time saver Faster learningFaster learning
SummarySummary
ASP.NETASP.NET State-of-the-art programming technologyState-of-the-art programming technology
Tremendous functionalityTremendous functionality Complex!! Complex!! Be prepared to work hardBe prepared to work hard
Fun!!Fun!!