SlideShare a Scribd company logo
Introduction to ASP.NET Microsoft Corporation
What We Will Cover Introduction to Microsoft ®  .NET “ Classic” ASP Microsoft ®  ASP.NET  Server controls Data controls ASP.NET Web applications Business objects Web services Additional topics
Session Prerequisites This session assumes that you understand the fundamentals of Development on Microsoft ®  Windows ® ASP or Microsoft ®  Visual Basic ® This is a Level 100 Session
So Why This Presentation? ASP.NET offers many enhancements over classic ASP but… With ASP.NET, there’s a lot new to learn Solves many ASP issues RAD for the Web
Demonstrations ASP vs. ASP.NET Server controls walk-through Validation Data controls Cookieless sessions Web services Page caching
Agenda Introduction to .NET “Classic” ASP ASP.NET  Server controls Data controls ASP.NET Web applications Business objects Web services Additional topics
Introduction to .NET 1 st  Generation OS  Services Microsoft provided COM, IIS, Internet Explorer Servers Data, Hosts Client Logic Biz Logic Applications largely operating in a client / server model were augmented with Web browser and servers.  The industry focused on rich OS and local services provided by products like SQL Server™. Browsers Web app developers took advantage of these local services  and used HTML  to “project” the UI to many types of clients
Introduction to .NET 2 nd  Generation Rich Client Logic Servers Data, Hosts Browsers Combination of “stateless” Web protocols with DNS and IP routing have enabled mass-scale “geo-scalability” “ Stateful” “ Stateless” & “ Geo-Scalable” OS  Services Biz Tier Logic Separation of data and business logic provide greater scalability and performance while accessing enterprise and legacy data.  COM+ Services improve reliability, scalability and manageability. Internet Explorer provides DHTML for better interactivity.
Introduction  to  .NET Web Services:  The Next Generation Standard Browsers Open Internet  Communications Protocols  (HTTP, SMTP, XML, SOAP)  Richer, More Productive User Experience Applications Leverage Globally-Available Federated Web Services Applications Become  Programmable Web Services Smarter Clients Smarter Devices OS  Services Biz Tier Logic Biz Logic  & Web Service OS Services Public Web Services Building Block Services Internal Services XML XML XML Servers Data, Hosts XML Other Services XML XML XML HTML
Introduction  to  .NET Web Services:  The Next Generation Standard Browsers Open Internet  Communications Protocols  (HTTP, SMTP, XML, SOAP)  Richer, More Productive User Experience Applications Leverage Globally-Available Federated Web Services Applications Become  Programmable Web Services Smarter Clients Smarter Devices OS  Services Biz Tier Logic Biz Logic  & Web Service OS Services Public Web Services Building Block Services Internal Services XML XML XML Servers Data, Hosts XML Other Services XML XML XML HTML
Introduction to .NET The .Net Platform Internet Protocols SOAP “blue book” HTTP, SMTP, XML .NET  Framework Windows ®   CE, 2000, XP, .NET Operations Orchestration Applications  Using Your  Service End-User Clients .NET Enterprise Servers .NET Foundation Services 3 rd  Party Web Services Your Internal  Services Visual  Studio ®  .NET Your Application  and Web Service
Introduction to .NET The .NET Framework and Visual Studio .NET Base Class Library Common Language Specification Common Language Runtime ADO.NET: Data and XML Visual Basic ® C++ C# Visual Studio .NET ASP.NET: Web Services and Web Forms JScript ® … Windows Forms
Introduction to .NET ASP.NET Base Class Library Common Language Specification Common Language Runtime ADO.NET: Data and XML Visual Studio.NET ASP.NET: Web Services and Web Forms Windows Forms Visual Basic ® C++ C# JScript ® …
Agenda Introduction to .NET ASP today ASP.NET  Server controls Data controls ASP.NET Web applications Business objects Web services Additional topics
“Classic” ASP  Successes Simple procedural programming model Access to COM Objects ADO File system object No compiling, just save Support for multiple scripting languages Mix HTML and code VBscript – leverage Visual Basic skills
“Classic” ASP Challenges Code readability Coding overhead PostBack complexity Reuse Performance DLL locking Deployment Sessions Caching
“Classic” ASP Challenges Code readability Coding overhead PostBack complexity Reuse Performance DLL locking Deployment Sessions Caching
Agenda Introduction to .NET “Classic” ASP ASP.NET   Server controls Data controls ASP.NET Web applications Business objects Web services Additional topics
ASP.NET  Architecture ASPX .ASPX
ASP.NET  Architecture .ASPX Compiled
ASP.NET  Architecture .ASPX Compiled
ASP.NET  Architecture .ASPX Compiled .ASPX Compiled
ASP.NET Execution Model Visual Basic Source code Compiler C++ C# Compiler Compiler Assembly IL Code Assembly IL Code Assembly IL Code Operating System Services Common Language Runtime JIT Compiler Native Code Managed code Unmanaged Component
ASP.NET Execution Model Visual Basic Source code Compiler C++ C# Compiler Compiler Assembly IL Code Assembly IL Code Assembly IL Code Operating System Services Common Language Runtime JIT Compiler Native Code Managed code Unmanaged Component
ASP.NET  Features ASPX, ASP – side by side Simplified programming model Simplified deployment Better performance Caching Security Powerful controls
ASP.NET  Features Simplified browser support Simplified form validation Code behind pages More powerful data access Web services Better session management
ASP.NET Features No DLL locking No DLL registration Simplified configuration Pagelets
Demonstration 1 ASP vs. ASP.NET   Data-Driven ASP Data-Driven ASP.NET Comparison
Agenda Introduction to .NET “Classic” ASP ASP.NET  Server controls Data controls ASP.NET Web applications Business objects Web services Additional topics
Server Controls Simplify Common Tasks Simplify common tasks Forms Tables Data display Calendar Ad rotator Server-side programming model Automatic browser compatibility Less code, less complexity Extensible
Server Controls  HTML and Server Controls <div id=&quot;MyDiv&quot; runat=&quot;server&quot;/> <asp:TextBox id=&quot;txtUserName&quot; runat=&quot;Server&quot;/> <asp:button type=&quot;submit&quot; OnClick=&quot;SubmitBtn_Click&quot; runat=&quot;server&quot;/>  ID –  uniquely identifies control Runat –  enables server-side processing OnClick – identifies server-side event handler
Server Controls Forms <script language=&quot;C#&quot; runat=server> void SubmitBtn_Click(Object sender, EventArgs e) { Response.Write (“Hello” + txtUserName.Text); } </script> PostBack Server-side object automatically populated from client-side controls
Server Controls Browser Support Targets client on the fly <asp:textbox ForeColor=“red”/> Style Font Validation Client-side Server-side
Demonstration 2 Server Controls Walk-Through Programming Model Syntax
Server Controls Validation Without code Required field Within range Two fields equal (password) Regular expressions Validation error messages With code, but simplified Custom validation
Demonstration 3 Validation   Required Field Validation Summary
Agenda Introduction to .NET “Classic” ASP ASP.NET  Server controls Data controls ASP.NET Web applications Business objects Web services Additional topics
Data Controls Bind to many data sources Collections Array HashTable ADO.NET DataReader DataSet XML
Data Controls ADO.NET Connection Command DataReader DataSet DataAdapter DataView
Data Controls ADO.NET Authors Connection Database DataAdapter DataSet Select … from Authors Authors
Data Controls ADO.NET Publishers Connection Database DataAdapter DataSet Select … from Publishers Authors Publishers
Data Controls ADO.NET DataSet Authors Publishers DataView DataGrid DataList Repeater
Data Controls DataGrid Displays data as a table Control over Alternate item Header Footer Colors, font, borders, etc. Paging Updateable Item as row
Data Controls Repeater List format No default output More control More complexity Item as row Not updateable
Data Controls DataList Directional rendering Good for columns Item as cell Alternate item Updateable
Demonstration 4 Data Controls   ADO.NET DataGrid Repeater  DataList
Agenda Introduction to .NET “Classic” ASP ASP.NET  Server controls Data controls ASP.NET Web applications Business objects Web services Additional topics
ASP.NET Web Applications Global ASAX Application_Start Application_End Session_Start Session_End Session Application
ASP.NET Web Applications  web.config Site configuration file Like an .INI file for your site XML format Extensible Some settings Security Session Localization Tracing Debugging
ASP.NET Web Applications  Session Variables Store state information No longer require cookies Share between servers <sessionState  mode=“StateServer“ stateConnectionString=&quot;tcpip=127.0.0.1:42424&quot; sqlConnectionString=&quot;data source=127.0.0.1;user id=sa;password=&quot; cookieless=&quot;false&quot;  timeout=&quot;20&quot;  />
Demonstration 5 Cookieless Sessions   Sessions with cookies web.config Sessions without cookies
Agenda Introduction to .NET “Classic” ASP ASP.NET  Server controls Data controls ASP.NET Web applications Business objects Web services Additional topics
Business Objects Problems with ASP and DLLs DLLs with .NET
Business Objects   Problems with ASP and DLLs DLL Locking Page hit Shutdown Web application Shutdown Internet Information Server Edit in Visual Interdev MTS/COM+ Shutdown package Binary compatibility Registry
Business Objects  DLLs with .NET Not registered Placed in ./bin directory Not locked Shadow copy
Agenda Introduction to .NET “Classic” ASP ASP.NET  Server controls Data controls ASP.NET Web applications Business objects Web services Additional topics
Web Services The Web today How Web services work
Web Services  The Web Today Designed for people to browse Purchase courseware Purchased
Web Services  The Web Today Server to server is a problem Purchase Courseware ?
Web Services What Are Web Services? Allow applications to communicate across the Internet Platform independent Protocol independent Synchronous/asynchronous Stateful/stateless BizTalk ® ASP.NET
Web Services .ASMX Class Courseware WebMethod GetPrice Purchase
Web Services .ASMX Testing Courseware.asmx Test HTML Page
Web Services .ASMX Proxy  DLL WSDL Courseware.asmx?WSDL Service Definition(XML)
Web Services .ASMX Proxy  DLL Register for Course Purchase Courseware
Demonstration 6 Web Services   Web Service Source Testing WSDL Client Proxy Creation Consuming a Web Service
Agenda Introduction to .NET “Classic” ASP ASP.NET  Server controls Data controls ASP.NET Web applications Business objects Web services Additional topics
Additional Topics Deployment Scalability Caching Authentication and authorization Availability
Additional Topics  Deployment Copy Components in .\bin No registering DLLs No locked DLLs Apps are isolated Each app can have its own version Uninstall Delete
Additional Topics  Scalability Improvements ASP.NET pages are complied State shared across machines Managed providers Disconnected data access Caching
Additional Topics  Caching Page output caching <%@ OutputCache Duration=&quot;60&quot;  VaryByParam=&quot;none&quot;  %> Page data caching Cache[“MyDataSet”] = SomeDataSet Like application variables Scavenging Expiration Dependencies
Additional Topics  Authentication Supports basic, digest, cookie, and Windows authentication, Passport Form-based authentication Users or roles One API for user info
Demonstration 7 Page Caching     Compare Performance
Call To Action Download the .NET Framework SDK Build a new ASP.NET application, or migrate from ASP
 
Session Summary ASP.NET offers many enhancements Improved session state Improved programming model Validators Caching In-place updating of sites The list goes on…
For More Information… MSDN Web site at  msdn.microsoft.com msdn.microsoft.com/net C# Language Reference msdn.microsoft.com/library/prelim/csref/vcoricreference.htm
For More Information… .NET Resources/Quickstart Tutorials http://www.gotdotnet.com
MSDN Essential Resources for Developers Training & Events MSDN Webcasts, MSDN Online Seminars, Tech-Ed, PDC, Developer Days Subscription Services Online Information Membership Programs Print Publications Library, OS, Professional, Enterprise, Universal Delivered via CD-ROM, DVD, Web MSDN Online, MSDN Flash, How-To Resources, Download Center MSDN User Groups MSDN Magazine MSDN News
How-To Resources Simple, Step-By-Step Procedures Embedded development how-to resources General how-to resources  Integration how-to resources  Jscript ®  .NET how-to resources  .NET development how-to resources  Office development resources  Security how-to resources  Visual Basic ®  .NET how-to resources  Visual C# ™  .NET how-to resources  Visual Studio ®  .NET how-to resources  Web development how-to resources (ASP, IIS, XML)  Web services how-to resources  Windows development how-to resources  http://msdn.microsoft.com/howto
MSDN Webcasts Interactive, Live Online Events Interactive, synchronous, live online events Discuss the hottest topics from Microsoft Open and free for the general public Take place every Tuesday http://www.microsoft.com/usa/webcasts
MSDN Subscriptions  The  way to get Visual Studio .NET Visual Studio .NET MSDN Subscriptions NEW Professional Tools to build applications and XML Web services  for Windows and the Web MSDN Professional $1199 new $899 renewal/upgrade MSDN Enterprise $2199 new $1599 renewal/upgrade MSDN Universal $2799 new $2299 renewal/upgrade Enterprise Developer Enterprise lifecycle tools Team development support Core .NET Enterprise Servers Enterprise Architect Software and data modeling Enterprise templates Architectural  guidance
Where Can I Get MSDN? Visit MSDN Online at msdn.microsoft.com Register for the MSDN Flash e-mail newsletter at  msdn.microsoft.com/flash Become an MSDN CD subscriber at  msdn.microsoft.com/subscriptions MSDN online seminars msdn.microsoft.com/training/seminars Attend more MSDN events
Microsoft Press ® Essential Resources for Developers Microsoft ®  Visual Studio ®  .NET is here! This is your chance to start building the next big thing. Develop your .NET skills, increase your productivity with .NET Books from Microsoft Press. www.microsoft.com/mspress
Become a Microsoft Certified Solution Developer What is MCSD? Premium certification for professionals who design and develop custom business solutions How do I attain MCSD certification? It requires passing four exams to prove competency with Microsoft solution architecture, desktop applications, distributed application development, and development tools Where do I get more information? For more information about certification requirements, exams, and training options,  visit  www.microsoft.com/mcp
Training Training Resources for Developers Introduction to ASP.NET Course no. 2063 Detailed syllabus:  www.microsoft.com/traincert To locate a training provider for this course, please access www.microsoft.com/traincert   Microsoft Certified Technical Education Centers  are Microsoft’s premier partners for training services
 

More Related Content

PPTX
Introduction to asp
PPT
Learn ASP
PPT
Active server pages
PPTX
Active server pages
PPT
Active Server Page(ASP)
PPTX
Introduction ASP
PPTX
Web forms in ASP.net
Introduction to asp
Learn ASP
Active server pages
Active server pages
Active Server Page(ASP)
Introduction ASP
Web forms in ASP.net

What's hot (20)

PPTX
ASP.NET Lecture 1
DOC
Tutorial asp.net
PPT
Asp.net
PPTX
Developing an aspnet web application
PPTX
Industrial training seminar ppt on asp.net
PPTX
Introduction to ASP.NET
PPT
Asp.net basic
PPTX
Asp Net Advance Topics
PPSX
ASP.NET Web form
PPTX
Asp .net folders and web.config
PPT
The complete ASP.NET (IIS) Tutorial with code example in power point slide show
PPT
Asp.net.
PPTX
Introduction to asp.net
PPTX
ASP.NET Presentation
PDF
Asp .net web form fundamentals
PPT
ASP.NET Tutorial - Presentation 1
PPTX
New Features of ASP.NET 4.0
PDF
Introduction to asp.net
PPT
Intro To Asp Net And Web Forms
ASP.NET Lecture 1
Tutorial asp.net
Asp.net
Developing an aspnet web application
Industrial training seminar ppt on asp.net
Introduction to ASP.NET
Asp.net basic
Asp Net Advance Topics
ASP.NET Web form
Asp .net folders and web.config
The complete ASP.NET (IIS) Tutorial with code example in power point slide show
Asp.net.
Introduction to asp.net
ASP.NET Presentation
Asp .net web form fundamentals
ASP.NET Tutorial - Presentation 1
New Features of ASP.NET 4.0
Introduction to asp.net
Intro To Asp Net And Web Forms
Ad

Similar to ASP (20)

PPT
ASPNET for PHP Developers
PPT
SynapseIndia dotnet website security development
PPT
Migrating To Visual Studio 2008 & .Net Framework 3.5
ZIP
ASP.Net Presentation Part1
PPTX
Vb & asp
PPTX
Asp.net and .Net Framework ppt presentation
DOC
Dot net interview questions
PPT
Visual Studio.NET
PPT
MSDN Dec2007
PPT
Aspnet
PPT
Migrating To Visual Studio 2008 & .Net Framework 3.5
PPTX
Asp.net presentation by gajanand bohra
PPTX
Creating Dynamic Web Application Using ASP.Net 3 5_MVP Alezandra Buencamino N...
PDF
Letsleads dot net-syllabus
PDF
Stucorner dot-net-training-syllabus
PPT
.Net overviewrajnish
PDF
ASP NET Professional Projects 1st Edition Hersh Bhasin
PPT
Visual studio.net
ASPNET for PHP Developers
SynapseIndia dotnet website security development
Migrating To Visual Studio 2008 & .Net Framework 3.5
ASP.Net Presentation Part1
Vb & asp
Asp.net and .Net Framework ppt presentation
Dot net interview questions
Visual Studio.NET
MSDN Dec2007
Aspnet
Migrating To Visual Studio 2008 & .Net Framework 3.5
Asp.net presentation by gajanand bohra
Creating Dynamic Web Application Using ASP.Net 3 5_MVP Alezandra Buencamino N...
Letsleads dot net-syllabus
Stucorner dot-net-training-syllabus
.Net overviewrajnish
ASP NET Professional Projects 1st Edition Hersh Bhasin
Visual studio.net
Ad

More from Ramasubbu .P (20)

PPT
PPT
PPT
Milling 2
PPT
MIlling 1
PPT
Drillings
PPT
Holding
PPT
Saftey
PPT
Harvesting
PPT
Plough
PPT
Tractor PTO
PPT
Tractor Components
PPT
PPT
PPT
PPT
PPT
Hacker
PPT
Denail of Service
PPT
RAID CONCEPT
PPT
Network Security
PPT
Milling 2
MIlling 1
Drillings
Holding
Saftey
Harvesting
Plough
Tractor PTO
Tractor Components
Hacker
Denail of Service
RAID CONCEPT
Network Security

Recently uploaded (20)

PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PDF
Hazard Identification & Risk Assessment .pdf
PPTX
Cell Types and Its function , kingdom of life
PDF
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Indian roads congress 037 - 2012 Flexible pavement
PPTX
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
Weekly quiz Compilation Jan -July 25.pdf
PPTX
Introduction to Building Materials
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PDF
RMMM.pdf make it easy to upload and study
PDF
IGGE1 Understanding the Self1234567891011
DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PDF
Empowerment Technology for Senior High School Guide
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PPTX
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
PPTX
Radiologic_Anatomy_of_the_Brachial_plexus [final].pptx
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
Hazard Identification & Risk Assessment .pdf
Cell Types and Its function , kingdom of life
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
Final Presentation General Medicine 03-08-2024.pptx
Indian roads congress 037 - 2012 Flexible pavement
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Weekly quiz Compilation Jan -July 25.pdf
Introduction to Building Materials
202450812 BayCHI UCSC-SV 20250812 v17.pptx
RMMM.pdf make it easy to upload and study
IGGE1 Understanding the Self1234567891011
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
Empowerment Technology for Senior High School Guide
Chinmaya Tiranga quiz Grand Finale.pdf
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
Radiologic_Anatomy_of_the_Brachial_plexus [final].pptx

ASP

  • 1. Introduction to ASP.NET Microsoft Corporation
  • 2. What We Will Cover Introduction to Microsoft ® .NET “ Classic” ASP Microsoft ® ASP.NET Server controls Data controls ASP.NET Web applications Business objects Web services Additional topics
  • 3. Session Prerequisites This session assumes that you understand the fundamentals of Development on Microsoft ® Windows ® ASP or Microsoft ® Visual Basic ® This is a Level 100 Session
  • 4. So Why This Presentation? ASP.NET offers many enhancements over classic ASP but… With ASP.NET, there’s a lot new to learn Solves many ASP issues RAD for the Web
  • 5. Demonstrations ASP vs. ASP.NET Server controls walk-through Validation Data controls Cookieless sessions Web services Page caching
  • 6. Agenda Introduction to .NET “Classic” ASP ASP.NET Server controls Data controls ASP.NET Web applications Business objects Web services Additional topics
  • 7. Introduction to .NET 1 st Generation OS Services Microsoft provided COM, IIS, Internet Explorer Servers Data, Hosts Client Logic Biz Logic Applications largely operating in a client / server model were augmented with Web browser and servers. The industry focused on rich OS and local services provided by products like SQL Server™. Browsers Web app developers took advantage of these local services and used HTML to “project” the UI to many types of clients
  • 8. Introduction to .NET 2 nd Generation Rich Client Logic Servers Data, Hosts Browsers Combination of “stateless” Web protocols with DNS and IP routing have enabled mass-scale “geo-scalability” “ Stateful” “ Stateless” & “ Geo-Scalable” OS Services Biz Tier Logic Separation of data and business logic provide greater scalability and performance while accessing enterprise and legacy data. COM+ Services improve reliability, scalability and manageability. Internet Explorer provides DHTML for better interactivity.
  • 9. Introduction to .NET Web Services: The Next Generation Standard Browsers Open Internet Communications Protocols (HTTP, SMTP, XML, SOAP) Richer, More Productive User Experience Applications Leverage Globally-Available Federated Web Services Applications Become Programmable Web Services Smarter Clients Smarter Devices OS Services Biz Tier Logic Biz Logic & Web Service OS Services Public Web Services Building Block Services Internal Services XML XML XML Servers Data, Hosts XML Other Services XML XML XML HTML
  • 10. Introduction to .NET Web Services: The Next Generation Standard Browsers Open Internet Communications Protocols (HTTP, SMTP, XML, SOAP) Richer, More Productive User Experience Applications Leverage Globally-Available Federated Web Services Applications Become Programmable Web Services Smarter Clients Smarter Devices OS Services Biz Tier Logic Biz Logic & Web Service OS Services Public Web Services Building Block Services Internal Services XML XML XML Servers Data, Hosts XML Other Services XML XML XML HTML
  • 11. Introduction to .NET The .Net Platform Internet Protocols SOAP “blue book” HTTP, SMTP, XML .NET Framework Windows ® CE, 2000, XP, .NET Operations Orchestration Applications Using Your Service End-User Clients .NET Enterprise Servers .NET Foundation Services 3 rd Party Web Services Your Internal Services Visual Studio ® .NET Your Application and Web Service
  • 12. Introduction to .NET The .NET Framework and Visual Studio .NET Base Class Library Common Language Specification Common Language Runtime ADO.NET: Data and XML Visual Basic ® C++ C# Visual Studio .NET ASP.NET: Web Services and Web Forms JScript ® … Windows Forms
  • 13. Introduction to .NET ASP.NET Base Class Library Common Language Specification Common Language Runtime ADO.NET: Data and XML Visual Studio.NET ASP.NET: Web Services and Web Forms Windows Forms Visual Basic ® C++ C# JScript ® …
  • 14. Agenda Introduction to .NET ASP today ASP.NET Server controls Data controls ASP.NET Web applications Business objects Web services Additional topics
  • 15. “Classic” ASP Successes Simple procedural programming model Access to COM Objects ADO File system object No compiling, just save Support for multiple scripting languages Mix HTML and code VBscript – leverage Visual Basic skills
  • 16. “Classic” ASP Challenges Code readability Coding overhead PostBack complexity Reuse Performance DLL locking Deployment Sessions Caching
  • 17. “Classic” ASP Challenges Code readability Coding overhead PostBack complexity Reuse Performance DLL locking Deployment Sessions Caching
  • 18. Agenda Introduction to .NET “Classic” ASP ASP.NET Server controls Data controls ASP.NET Web applications Business objects Web services Additional topics
  • 19. ASP.NET Architecture ASPX .ASPX
  • 20. ASP.NET Architecture .ASPX Compiled
  • 21. ASP.NET Architecture .ASPX Compiled
  • 22. ASP.NET Architecture .ASPX Compiled .ASPX Compiled
  • 23. ASP.NET Execution Model Visual Basic Source code Compiler C++ C# Compiler Compiler Assembly IL Code Assembly IL Code Assembly IL Code Operating System Services Common Language Runtime JIT Compiler Native Code Managed code Unmanaged Component
  • 24. ASP.NET Execution Model Visual Basic Source code Compiler C++ C# Compiler Compiler Assembly IL Code Assembly IL Code Assembly IL Code Operating System Services Common Language Runtime JIT Compiler Native Code Managed code Unmanaged Component
  • 25. ASP.NET Features ASPX, ASP – side by side Simplified programming model Simplified deployment Better performance Caching Security Powerful controls
  • 26. ASP.NET Features Simplified browser support Simplified form validation Code behind pages More powerful data access Web services Better session management
  • 27. ASP.NET Features No DLL locking No DLL registration Simplified configuration Pagelets
  • 28. Demonstration 1 ASP vs. ASP.NET Data-Driven ASP Data-Driven ASP.NET Comparison
  • 29. Agenda Introduction to .NET “Classic” ASP ASP.NET Server controls Data controls ASP.NET Web applications Business objects Web services Additional topics
  • 30. Server Controls Simplify Common Tasks Simplify common tasks Forms Tables Data display Calendar Ad rotator Server-side programming model Automatic browser compatibility Less code, less complexity Extensible
  • 31. Server Controls HTML and Server Controls <div id=&quot;MyDiv&quot; runat=&quot;server&quot;/> <asp:TextBox id=&quot;txtUserName&quot; runat=&quot;Server&quot;/> <asp:button type=&quot;submit&quot; OnClick=&quot;SubmitBtn_Click&quot; runat=&quot;server&quot;/> ID – uniquely identifies control Runat – enables server-side processing OnClick – identifies server-side event handler
  • 32. Server Controls Forms <script language=&quot;C#&quot; runat=server> void SubmitBtn_Click(Object sender, EventArgs e) { Response.Write (“Hello” + txtUserName.Text); } </script> PostBack Server-side object automatically populated from client-side controls
  • 33. Server Controls Browser Support Targets client on the fly <asp:textbox ForeColor=“red”/> Style Font Validation Client-side Server-side
  • 34. Demonstration 2 Server Controls Walk-Through Programming Model Syntax
  • 35. Server Controls Validation Without code Required field Within range Two fields equal (password) Regular expressions Validation error messages With code, but simplified Custom validation
  • 36. Demonstration 3 Validation Required Field Validation Summary
  • 37. Agenda Introduction to .NET “Classic” ASP ASP.NET Server controls Data controls ASP.NET Web applications Business objects Web services Additional topics
  • 38. Data Controls Bind to many data sources Collections Array HashTable ADO.NET DataReader DataSet XML
  • 39. Data Controls ADO.NET Connection Command DataReader DataSet DataAdapter DataView
  • 40. Data Controls ADO.NET Authors Connection Database DataAdapter DataSet Select … from Authors Authors
  • 41. Data Controls ADO.NET Publishers Connection Database DataAdapter DataSet Select … from Publishers Authors Publishers
  • 42. Data Controls ADO.NET DataSet Authors Publishers DataView DataGrid DataList Repeater
  • 43. Data Controls DataGrid Displays data as a table Control over Alternate item Header Footer Colors, font, borders, etc. Paging Updateable Item as row
  • 44. Data Controls Repeater List format No default output More control More complexity Item as row Not updateable
  • 45. Data Controls DataList Directional rendering Good for columns Item as cell Alternate item Updateable
  • 46. Demonstration 4 Data Controls ADO.NET DataGrid Repeater DataList
  • 47. Agenda Introduction to .NET “Classic” ASP ASP.NET Server controls Data controls ASP.NET Web applications Business objects Web services Additional topics
  • 48. ASP.NET Web Applications Global ASAX Application_Start Application_End Session_Start Session_End Session Application
  • 49. ASP.NET Web Applications web.config Site configuration file Like an .INI file for your site XML format Extensible Some settings Security Session Localization Tracing Debugging
  • 50. ASP.NET Web Applications Session Variables Store state information No longer require cookies Share between servers <sessionState mode=“StateServer“ stateConnectionString=&quot;tcpip=127.0.0.1:42424&quot; sqlConnectionString=&quot;data source=127.0.0.1;user id=sa;password=&quot; cookieless=&quot;false&quot; timeout=&quot;20&quot; />
  • 51. Demonstration 5 Cookieless Sessions Sessions with cookies web.config Sessions without cookies
  • 52. Agenda Introduction to .NET “Classic” ASP ASP.NET Server controls Data controls ASP.NET Web applications Business objects Web services Additional topics
  • 53. Business Objects Problems with ASP and DLLs DLLs with .NET
  • 54. Business Objects Problems with ASP and DLLs DLL Locking Page hit Shutdown Web application Shutdown Internet Information Server Edit in Visual Interdev MTS/COM+ Shutdown package Binary compatibility Registry
  • 55. Business Objects DLLs with .NET Not registered Placed in ./bin directory Not locked Shadow copy
  • 56. Agenda Introduction to .NET “Classic” ASP ASP.NET Server controls Data controls ASP.NET Web applications Business objects Web services Additional topics
  • 57. Web Services The Web today How Web services work
  • 58. Web Services The Web Today Designed for people to browse Purchase courseware Purchased
  • 59. Web Services The Web Today Server to server is a problem Purchase Courseware ?
  • 60. Web Services What Are Web Services? Allow applications to communicate across the Internet Platform independent Protocol independent Synchronous/asynchronous Stateful/stateless BizTalk ® ASP.NET
  • 61. Web Services .ASMX Class Courseware WebMethod GetPrice Purchase
  • 62. Web Services .ASMX Testing Courseware.asmx Test HTML Page
  • 63. Web Services .ASMX Proxy DLL WSDL Courseware.asmx?WSDL Service Definition(XML)
  • 64. Web Services .ASMX Proxy DLL Register for Course Purchase Courseware
  • 65. Demonstration 6 Web Services Web Service Source Testing WSDL Client Proxy Creation Consuming a Web Service
  • 66. Agenda Introduction to .NET “Classic” ASP ASP.NET Server controls Data controls ASP.NET Web applications Business objects Web services Additional topics
  • 67. Additional Topics Deployment Scalability Caching Authentication and authorization Availability
  • 68. Additional Topics Deployment Copy Components in .\bin No registering DLLs No locked DLLs Apps are isolated Each app can have its own version Uninstall Delete
  • 69. Additional Topics Scalability Improvements ASP.NET pages are complied State shared across machines Managed providers Disconnected data access Caching
  • 70. Additional Topics Caching Page output caching <%@ OutputCache Duration=&quot;60&quot; VaryByParam=&quot;none&quot; %> Page data caching Cache[“MyDataSet”] = SomeDataSet Like application variables Scavenging Expiration Dependencies
  • 71. Additional Topics Authentication Supports basic, digest, cookie, and Windows authentication, Passport Form-based authentication Users or roles One API for user info
  • 72. Demonstration 7 Page Caching Compare Performance
  • 73. Call To Action Download the .NET Framework SDK Build a new ASP.NET application, or migrate from ASP
  • 74.  
  • 75. Session Summary ASP.NET offers many enhancements Improved session state Improved programming model Validators Caching In-place updating of sites The list goes on…
  • 76. For More Information… MSDN Web site at msdn.microsoft.com msdn.microsoft.com/net C# Language Reference msdn.microsoft.com/library/prelim/csref/vcoricreference.htm
  • 77. For More Information… .NET Resources/Quickstart Tutorials http://www.gotdotnet.com
  • 78. MSDN Essential Resources for Developers Training & Events MSDN Webcasts, MSDN Online Seminars, Tech-Ed, PDC, Developer Days Subscription Services Online Information Membership Programs Print Publications Library, OS, Professional, Enterprise, Universal Delivered via CD-ROM, DVD, Web MSDN Online, MSDN Flash, How-To Resources, Download Center MSDN User Groups MSDN Magazine MSDN News
  • 79. How-To Resources Simple, Step-By-Step Procedures Embedded development how-to resources General how-to resources Integration how-to resources Jscript ® .NET how-to resources .NET development how-to resources Office development resources Security how-to resources Visual Basic ® .NET how-to resources Visual C# ™ .NET how-to resources Visual Studio ® .NET how-to resources Web development how-to resources (ASP, IIS, XML) Web services how-to resources Windows development how-to resources http://msdn.microsoft.com/howto
  • 80. MSDN Webcasts Interactive, Live Online Events Interactive, synchronous, live online events Discuss the hottest topics from Microsoft Open and free for the general public Take place every Tuesday http://www.microsoft.com/usa/webcasts
  • 81. MSDN Subscriptions The way to get Visual Studio .NET Visual Studio .NET MSDN Subscriptions NEW Professional Tools to build applications and XML Web services for Windows and the Web MSDN Professional $1199 new $899 renewal/upgrade MSDN Enterprise $2199 new $1599 renewal/upgrade MSDN Universal $2799 new $2299 renewal/upgrade Enterprise Developer Enterprise lifecycle tools Team development support Core .NET Enterprise Servers Enterprise Architect Software and data modeling Enterprise templates Architectural guidance
  • 82. Where Can I Get MSDN? Visit MSDN Online at msdn.microsoft.com Register for the MSDN Flash e-mail newsletter at msdn.microsoft.com/flash Become an MSDN CD subscriber at msdn.microsoft.com/subscriptions MSDN online seminars msdn.microsoft.com/training/seminars Attend more MSDN events
  • 83. Microsoft Press ® Essential Resources for Developers Microsoft ® Visual Studio ® .NET is here! This is your chance to start building the next big thing. Develop your .NET skills, increase your productivity with .NET Books from Microsoft Press. www.microsoft.com/mspress
  • 84. Become a Microsoft Certified Solution Developer What is MCSD? Premium certification for professionals who design and develop custom business solutions How do I attain MCSD certification? It requires passing four exams to prove competency with Microsoft solution architecture, desktop applications, distributed application development, and development tools Where do I get more information? For more information about certification requirements, exams, and training options, visit www.microsoft.com/mcp
  • 85. Training Training Resources for Developers Introduction to ASP.NET Course no. 2063 Detailed syllabus: www.microsoft.com/traincert To locate a training provider for this course, please access www.microsoft.com/traincert Microsoft Certified Technical Education Centers are Microsoft’s premier partners for training services
  • 86.  

Editor's Notes

  • #2: KEY MESSAGE: Welcome to MSDN session DEVT1-04. This is a 100-Level session. SLIDE BUILDS: None SLIDE SCRIPT: Hello and Welcome to this MSDN session on Introduction to Microsoft® ASP.NET. My name is {insert name}. SLIDE TRANSITION: What we’ll be covering today. ADDITIONAL INFORMATION FOR PRESENTER: