introduction to asp.net mis 324 professor sandvig

14
Introduction to Introduction to ASP.NET ASP.NET MIS 324 MIS 324 Professor Sandvig Professor Sandvig

Upload: jocelin-austin

Post on 16-Jan-2016

233 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Introduction to ASP.NET MIS 324 Professor Sandvig

Introduction to ASP.NETIntroduction to ASP.NET

MIS 324MIS 324

Professor SandvigProfessor Sandvig

Page 2: Introduction to ASP.NET MIS 324 Professor 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

Page 3: Introduction to ASP.NET MIS 324 Professor Sandvig

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

Page 4: Introduction to ASP.NET MIS 324 Professor Sandvig

.NET.NET

PHP/ASPPHP/ASP

.NET.NET

Page 5: Introduction to ASP.NET MIS 324 Professor Sandvig

.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

Page 6: Introduction to ASP.NET MIS 324 Professor Sandvig

.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…

Page 7: Introduction to ASP.NET MIS 324 Professor Sandvig

.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

Page 8: Introduction to ASP.NET MIS 324 Professor Sandvig

.NET Features.NET Features

1.1. Object OrientedObject Oriented

2.2. Web Server ControlsWeb Server Controls

3.3. Visual StudioVisual Studio

Page 9: Introduction to ASP.NET MIS 324 Professor Sandvig

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

Page 10: Introduction to ASP.NET MIS 324 Professor Sandvig

Object OrientedObject Oriented

All modern All modern programming programming languages support languages support OOPOOP

OOP concepts & OOP concepts & terminology are terminology are universaluniversal

Page 11: Introduction to ASP.NET MIS 324 Professor Sandvig

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

Page 12: Introduction to ASP.NET MIS 324 Professor Sandvig

2. Web Server Controls2. Web Server Controls

Example:Example: Hello.aspxHello.aspx

Page 13: Introduction to ASP.NET MIS 324 Professor Sandvig

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

Page 14: Introduction to ASP.NET MIS 324 Professor Sandvig

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!!