Download presentation
Presentation is loading. Please wait.
Published byDerick Gerald Sutton Modified over 9 years ago
1
Introduction to ASP.NET COMPLETELY DESIGNED BY: COMPLETELY DESIGNED BY: ER.ASHISH PANDEY ER.ASHISH PANDEY (KNOWLEDGE EXECUTIVE ) (KNOWLEDGE EXECUTIVE ) NEW HORIZON INDIA NEW HORIZON INDIA
2
What We Will Cover Introduction to Microsoft ®.NET Introduction to Microsoft ®.NET “Classic” ASP “Classic” ASP Microsoft ® ASP.NET Microsoft ® ASP.NET Server controls Server controls Data controls Data controls ASP.NET Web applications ASP.NET Web applications Business objects Business objects Web services Web services Additional topics Additional topics
3
Session Prerequisites This session assumes that you understand the fundamentals of This session assumes that you understand the fundamentals of Development on Microsoft ® Windows ® ASP or Microsoft ® Visual Basic ® This is a Level 100 Session This is a Level 100 Session
4
So Why This Presentation? ASP.NET offers many enhancements over classic ASP but… ASP.NET offers many enhancements over classic ASP but… With ASP.NET, there’s a lot new to learn With ASP.NET, there’s a lot new to learn Solves many ASP issues Solves many ASP issues RAD for the Web RAD for the Web
5
Demonstrations ASP vs. ASP.NET ASP vs. ASP.NET Server controls walk-through Server controls walk-through Validation Validation Data controls Data controls Cookieless sessions Cookieless sessions Web services Web services Page caching Page caching
6
Agenda Introduction to.NET Introduction to.NET “Classic” ASP “Classic” ASP ASP.NET ASP.NET Server controls Server controls Data controls Data controls ASP.NET Web applications ASP.NET Web applications Business objects Business objects Web services Web services Additional topics Additional topics
7
OS Services Microsoft provided COM, IIS, Internet Explorer Introduction to.NET 1 st Generation 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 Servers Data, Hosts Client Logic Biz Logic
8
Combination of “stateless” Web protocols with DNS and IP routing have enabled mass-scale “geo-scalability” “Stateful” “Stateless” & “Geo-Scalable” Rich Client Logic Introduction to.NET 2 nd Generation Servers Data, Hosts OS Services Biz Tier Logic Browsers 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 StandardBrowsers SmarterClients Smarter Devices 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 OS Services Biz Tier Logic Biz Logic & Web Service OS Services Public Web Services Building Block Services InternalServices XML XML XML Servers Data, Hosts XML Other Services Services XML XML XML HTML
10
Introduction to.NET Web Services: The Next Generation StandardBrowsers SmarterClients Smarter Devices 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 OS Services Biz Tier Logic Biz Logic & Web Service OS Services Public Web Services Building Block Services InternalServices XML XML XML Servers Data, Hosts XML Other Services Services XML XML XML HTML
11
Internet Protocols SOAP “blue book” HTTP, SMTP, XML HTTP, SMTP, XML Introduction to.NET The.Net Platform.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 Visual Basic ®C++C# Visual Studio.NET ASP.NET: Web Services and Web Forms JScript 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 Visual Basic ®C++C# JScript JScript ®…
14
Agenda Introduction to.NET Introduction to.NET ASP today ASP today ASP.NET ASP.NET Server controls Server controls Data controls Data controls ASP.NET Web applications ASP.NET Web applications Business objects Business objects Web services Web services Additional topics Additional topics
15
“Classic” ASP Successes Simple procedural programming model Simple procedural programming model Access to COM Objects Access to COM Objects ADO File system object No compiling, just save No compiling, just save Support for multiple scripting languages Support for multiple scripting languages Mix HTML and code Mix HTML and code VBscript – leverage Visual Basic skills VBscript – leverage Visual Basic skills
16
“Classic” ASP Challenges Code readability Code readability Coding overhead Coding overhead PostBack complexity PostBack complexity Reuse Reuse Performance Performance DLL locking DLL locking Deployment Deployment Sessions Sessions Caching Caching
17
“Classic” ASP Challenges Code readability Code readability Coding overhead Coding overhead PostBack complexity PostBack complexity Reuse Reuse Performance Performance DLL locking DLL locking Deployment Deployment Sessions Sessions Caching Caching
18
Agenda Introduction to.NET Introduction to.NET “Classic” ASP “Classic” ASP ASP.NET ASP.NET Server controls Server controls Data controls Data controls ASP.NET Web applications ASP.NET Web applications Business objects Business objects Web services Web services Additional topics 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
Visual Basic Source code Compiler C++C# CompilerCompiler Assembly IL Code Assembly Assembly Operating System Services Common Language Runtime JIT Compiler Native Code Managedcode UnmanagedComponent ASP.NET Execution Model
24
Visual Basic Source code Compiler C++C# CompilerCompiler Assembly IL Code Assembly Assembly Operating System Services Common Language Runtime JIT Compiler Native Code Managedcode UnmanagedComponent ASP.NET Execution Model
25
ASP.NET Features ASPX, ASP – side by side ASPX, ASP – side by side Simplified programming model Simplified programming model Simplified deployment Simplified deployment Better performance Better performance Caching Caching Security Security Powerful controls Powerful controls
26
ASP.NET Features Simplified browser support Simplified browser support Simplified form validation Simplified form validation Code behind pages Code behind pages More powerful data access More powerful data access Web services Web services Better session management Better session management
27
ASP.NET Features No DLL locking No DLL locking No DLL registration No DLL registration Simplified configuration Simplified configuration Pagelets Pagelets
28
Demonstration 1 ASP vs. ASP.NET Data-Driven ASP Data-Driven ASP.NET Comparison
29
Agenda Introduction to.NET Introduction to.NET “Classic” ASP “Classic” ASP ASP.NET ASP.NET Server controls Server controls Data controls Data controls ASP.NET Web applications ASP.NET Web applications Business objects Business objects Web services Web services Additional topics Additional topics
30
Server Controls Simplify Common Tasks Simplify common tasks Simplify common tasks Forms Tables Data display Calendar Ad rotator Server-side programming model Server-side programming model Automatic browser compatibility Automatic browser compatibility Less code, less complexity Less code, less complexity Extensible Extensible
31
Server Controls HTML and Server Controls ID – uniquely identifies control ID – uniquely identifies control Runat – enables server-side processing Runat – enables server-side processing OnClick – identifies server-side event handler OnClick – identifies server-side event handler
32
Server Controls Forms void SubmitBtn_Click(Object sender, EventArgs e) { Response.Write (“Hello” + txtUserName.Text); }</script> PostBack PostBack Server-side object automatically populated from client-side controls
33
Server Controls Browser Support Targets client on the fly Targets client on the fly Style Font Validation Validation Client-side Server-side
34
Demonstration 2 Server Controls Walk-Through Demonstration 2 Server Controls Walk-Through Programming Model Syntax
35
Server Controls Validation Without code Without code Required field Within range Two fields equal (password) Regular expressions Validation error messages With code, but simplified With code, but simplified Custom validation
36
Demonstration 3 Validation Required Field Validation Summary
37
Agenda Introduction to.NET Introduction to.NET “Classic” ASP “Classic” ASP ASP.NET ASP.NET Server controls Server controls Data controls Data controls ASP.NET Web applications ASP.NET Web applications Business objects Business objects Web services Web services Additional topics Additional topics
38
Data Controls Bind to many data sources Bind to many data sources Collections Array HashTable ADO.NET DataReader DataSet XML
39
Data Controls ADO.NET Connection Connection Command Command DataReader DataReader DataSet DataSet DataAdapter DataAdapter DataView DataView
40
Data Controls ADO.NET AuthorsAuthors Connection Database DataAdapter DataSet Select … from Authors Authors
41
Data Controls ADO.NET PublishersPublishers 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 Displays data as a table Control over Control over Alternate item Header Footer Colors, font, borders, etc. Paging Updateable Updateable Item as row Item as row
44
Data Controls Repeater List format List format No default output No default output More control More control More complexity More complexity Item as row Item as row Not updateable Not updateable
45
Data Controls DataList Directional rendering Directional rendering Good for columns Good for columns Item as cell Item as cell Alternate item Alternate item Updateable Updateable
46
Demonstration 4 Data Controls ADO.NET DataGrid Repeater DataList
47
Agenda Introduction to.NET Introduction to.NET “Classic” ASP “Classic” ASP ASP.NET ASP.NET Server controls Server controls Data controls Data controls ASP.NET Web applications ASP.NET Web applications Business objects Business objects Web services Web services Additional topics Additional topics
48
ASP.NET Web Applications Global ASAX Global ASAX Application_Start Application_End Session_Start Session_End Session Session Application Application
49
ASP.NET Web Applications web.config Site configuration file Site configuration file Like an.INI file for your site Like an.INI file for your site XML format XML format Extensible Extensible Some settings Some settings Security Session Localization Tracing Debugging
50
ASP.NET Web Applications Session Variables Store state information Store state information No longer require cookies No longer require cookies Share between servers Share between servers<sessionStatemode=“StateServer“stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;user id=sa;password=" cookieless="false"timeout="20"/>
51
Demonstration 5 Cookieless Sessions Sessions with cookies web.config Sessions without cookies
52
Agenda Introduction to.NET Introduction to.NET “Classic” ASP “Classic” ASP ASP.NET ASP.NET Server controls Server controls Data controls Data controls ASP.NET Web applications ASP.NET Web applications Business objects Business objects Web services Web services Additional topics Additional topics
53
Business Objects Problems with ASP and DLLs Problems with ASP and DLLs DLLs with.NET DLLs with.NET
54
Business Objects Problems with ASP and DLLs DLL Locking DLL Locking Page hit Shutdown Web application Shutdown Internet Information Server Edit in Visual Interdev MTS/COM+ MTS/COM+ Shutdown package Binary compatibility Registry Registry
55
Business Objects DLLs with.NET Not registered Not registered Placed in./bin directory Not locked Not locked Shadow copy
56
Agenda Introduction to.NET Introduction to.NET “Classic” ASP “Classic” ASP ASP.NET ASP.NET Server controls Server controls Data controls Data controls ASP.NET Web applications ASP.NET Web applications Business objects Business objects Web services Web services Additional topics Additional topics
57
Web Services The Web today The Web today How Web services work How Web services work
58
Web Services The Web Today Purchase courseware Purchased Designed for people to browse
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 Allow applications to communicate across the Internet Platform independent Platform independent Protocol independent Protocol independent Synchronous/asynchronous Synchronous/asynchronous Stateful/stateless Stateful/stateless BizTalk ® BizTalk ® ASP.NET ASP.NET
61
Web Services.ASMX.ASMX Class Courseware WebMethod GetPrice Purchase Class Courseware WebMethod GetPrice Purchase
62
Web Services.ASMX.ASMX TestingCourseware.asmx Test HTML Page
63
Web Services.ASMX.ASMXCourseware.asmx?WSDL Service Definition(XML) ProxyDLLProxyDLL WSDL
64
Web Services.ASMX.ASMXProxyDLLProxyDLL 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 Introduction to.NET “Classic” ASP “Classic” ASP ASP.NET ASP.NET Server controls Server controls Data controls Data controls ASP.NET Web applications ASP.NET Web applications Business objects Business objects Web services Web services Additional topics Additional topics
67
Additional Topics Deployment Deployment Scalability Scalability Caching Caching Authentication and authorization Authentication and authorization Availability Availability
68
Additional Topics Deployment Copy Copy Components in.\bin No registering DLLs No locked DLLs Apps are isolated Apps are isolated Each app can have its own version Uninstall Uninstall Delete
69
Additional Topics Scalability Improvements ASP.NET pages are complied ASP.NET pages are complied State shared across machines State shared across machines Managed providers Managed providers Disconnected data access Disconnected data access Caching Caching
70
Additional Topics Caching Page output caching Page output caching Page data caching Page data caching Cache[“MyDataSet”] = SomeDataSet Like application variables Scavenging Expiration Dependencies
71
Additional Topics Authentication Supports basic, digest, cookie, and Windows authentication, Passport Supports basic, digest, cookie, and Windows authentication, Passport Form-based authentication Form-based authentication Users or roles Users or roles One API for user info One API for user info
72
Demonstration 7 Page Caching Demonstration 7 Page Caching Compare Performance
73
Call To Action Download the.NET Framework SDK Download the.NET Framework SDK Build a new ASP.NET application, or migrate from ASP Build a new ASP.NET application, or migrate from ASP
75
Session Summary ASP.NET offers many enhancements 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 Web site at msdn.microsoft.com msdn.microsoft.com/net C# Language Reference C# Language Reference msdn.microsoft.com/library/prelim/csref/vc oricreference.htm
77
For More Information….NET Resources/Quickstart Tutorials.NET Resources/Quickstart Tutorials http://www.gotdotnet.com
78
Training & Events MSDN Webcasts, MSDN Online Seminars, Tech-Ed, PDC, Developer Days MSDN Essential Resources for Developers 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 Embedded development how-to resources General how-to resources General how-to resources Integration how-to resources Integration how-to resources Jscript ®.NET how-to resources Jscript ®.NET how-to resources.NET development how-to resources.NET development how-to resources Office development resources Office development resources Security how-to resources Security how-to resources Visual Basic ®.NET how-to resources Visual Basic ®.NET how-to resources Visual C# ™.NET how-to resources Visual C# ™.NET how-to resources Visual Studio ®.NET how-to resources Visual Studio ®.NET how-to resources Web development how-to resources (ASP, IIS, XML) Web development how-to resources (ASP, IIS, XML) Web services how-to resources Web services how-to resources Windows development how-to resources Windows development how-to resourceshttp://msdn.microsoft.com/howto
80
MSDN Webcasts Interactive, Live Online Events Interactive, synchronous, live online events Interactive, synchronous, live online events Discuss the hottest topics from Microsoft Discuss the hottest topics from Microsoft Open and free for the general public Open and free for the general public Take place every Tuesday Take place every Tuesdayhttp://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 WebTools 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 toolsEnterprise lifecycle tools Team development supportTeam development support Core.NET Enterprise ServersCore.NET Enterprise Servers Enterprise Architect Software and data modelingSoftware and data modeling Enterprise templatesEnterprise templates Architectural guidanceArchitectural guidance
82
Where Can I Get MSDN? Visit MSDN Online at msdn.microsoft.com Visit MSDN Online at msdn.microsoft.com Register for the MSDN Flash e-mail newsletter at Register for the MSDN Flash e-mail newsletter atmsdn.microsoft.com/flash Become an MSDN CD subscriber at msdn.microsoft.com/subscriptions Become an MSDN CD subscriber at msdn.microsoft.com/subscriptions MSDN online seminars MSDN online seminarsmsdn.microsoft.com/training/seminars Attend more MSDN events 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? What is MCSD? Premium certification for professionals who design and develop custom business solutions How do I attain MCSD certification? 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? 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 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
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.