15
ASP.NET &.NET Environment

ASP.NET &.NET Environment. Overview Part of Microsoft’s.NET environment Used for Development of Websites Internet applications Web Services & XML

Embed Size (px)

Citation preview

Page 1: ASP.NET &.NET Environment. Overview Part of Microsoft’s.NET environment Used for Development of  Websites  Internet applications  Web Services & XML

ASP.NET &.NET Environment

Page 2: ASP.NET &.NET Environment. Overview Part of Microsoft’s.NET environment Used for Development of  Websites  Internet applications  Web Services & XML

Overview

Part of Microsoft’s .NET environmentUsed for Development of

Websites Internet applicationsWeb Services & XML Web Services

LanguagesVB.NET, C#, J#

Successor of ASP pages (but very different)Event driven rather than script driven

Page 3: ASP.NET &.NET Environment. Overview Part of Microsoft’s.NET environment Used for Development of  Websites  Internet applications  Web Services & XML

.NET environment

Page 4: ASP.NET &.NET Environment. Overview Part of Microsoft’s.NET environment Used for Development of  Websites  Internet applications  Web Services & XML

.NET environmentCommon Language Runtime (CLR)

Basis for the .NET environmentCode is compiled to .dll filesA solution can contain code of multiple languages

VersionsVisual Studio (.Net Framework 1.0)Visual Studio 2003 (.Net Framework 1.1)Visual Studio 2005 (.Net Framework 2.0).Net Framework 3.0Visual Studio 2008 (.Net Framework 3.5)Visual Studio 2010 Beta (.Net Framework 4.0)

Page 5: ASP.NET &.NET Environment. Overview Part of Microsoft’s.NET environment Used for Development of  Websites  Internet applications  Web Services & XML

HISTORY & ChangesVisual Studio .NET (2002) - .Net Framework 1.0Visual Studio 2003 (2003) - .Net Framework 1.1Visual Studio 2005 (2005) - .Net Framework 2.0/3.0

Many new features New Data Controls (GridView, FormView, DetailsView) Navigation Controls Master Pages Login controls Themes Skins Allows full pre-compilation

Visual Studio 2008 - .Net Framework 3.5 Ajax integration Nested master pages Additional data controls Free versions are available on

http://www.microsoft.com/express/product/default.aspx Visual Studio 2010 Beta - .Net Framework 4.0

Page 6: ASP.NET &.NET Environment. Overview Part of Microsoft’s.NET environment Used for Development of  Websites  Internet applications  Web Services & XML

ASP.NET

Page 7: ASP.NET &.NET Environment. Overview Part of Microsoft’s.NET environment Used for Development of  Websites  Internet applications  Web Services & XML

ASP.NET Components Interface pagesCode Behind PagesMaster Pages (only .NET 2.0 and higher)User ControlsSitemapStyle SheetsAdditional Components for .Net 3.0

Windows Presentation Foundation - advanced graphics Windows Communication Foundation – allows programs to act

more like web services using a service-oriented messaging system Windows Workflow Foundation Windows CardSpace

AJAX

Page 8: ASP.NET &.NET Environment. Overview Part of Microsoft’s.NET environment Used for Development of  Websites  Internet applications  Web Services & XML

Lets take a look at an example…

Page 9: ASP.NET &.NET Environment. Overview Part of Microsoft’s.NET environment Used for Development of  Websites  Internet applications  Web Services & XML

Advantages

Faster than script-based languages since it is converted into precompiled dlls

Easier error handling (caught before run-time, allows try-catch blocks)

Can use existing controls and templates provided An extensive set of controls and class libraries allows the rapid

building of applications. The Code-behind the interfaces can be coded in the language of

preference Ability to cache the whole page or just parts of it to improve

performance. Ability to separate the looks of the page and the code-behind. The CLR will take care of garbage collection, and other basic

functions

http://en.wikipedia.org/wiki/ASP.NET

Page 10: ASP.NET &.NET Environment. Overview Part of Microsoft’s.NET environment Used for Development of  Websites  Internet applications  Web Services & XML

Disadvantages

Platform limitations E.g. .Net framework 2.0 has the following system requirements:

Supported Operating Systems: Windows 2000 Service Pack 3; Windows 98; Windows 98 Second Edition; Windows ME; Windows Server 2003; Windows XP Service Pack 2

High memory usage and it can be slow at execution

Some backward and forward incompatibilities existReverse-Engineering is possible

Code can be decompiled and can be put live with the actual code

Relatively new

Page 11: ASP.NET &.NET Environment. Overview Part of Microsoft’s.NET environment Used for Development of  Websites  Internet applications  Web Services & XML

Comparing .NET to Other Approaches

Much debateMany different opinions usually due to

different backgrounds…

Page 12: ASP.NET &.NET Environment. Overview Part of Microsoft’s.NET environment Used for Development of  Websites  Internet applications  Web Services & XML

Conclusion:

Depends…what you want to accomplish and what is the programmers background

There are many tools existent to combine the different approaches

Page 13: ASP.NET &.NET Environment. Overview Part of Microsoft’s.NET environment Used for Development of  Websites  Internet applications  Web Services & XML

AJAX (Asynchronous JavaScript and Xml)Framework that can be used with web

applications (build-in in .netframework 3.5)Increases responsiveness by only

refreshing parts of a webpagehttp://www.asp.net/ajax/Concerns:

Due to the nature of ajax, some of the analytics services, back buttons or search engine optimizations may not work as expected

Page 14: ASP.NET &.NET Environment. Overview Part of Microsoft’s.NET environment Used for Development of  Websites  Internet applications  Web Services & XML

Dot Net Nuke

Free ToolUsed to set up WebPages with some

commonly used elementsBased on the .NET environment

demo.dotnetnuke.com/dnndemo

Page 15: ASP.NET &.NET Environment. Overview Part of Microsoft’s.NET environment Used for Development of  Websites  Internet applications  Web Services & XML

Questions???