1 / 75

ASP.NET

Consonant Consulting India Pvt. Ltd. ASP.NET. www.consonant-consulting.com. S afety Cables, Emergency Exits P urpose Introduction to ASP.NET, Concepts of .NET and building and deployment of simple web site data driven application A genda Follow in the next slides C ode-Of-Conduct

jessie
Télécharger la présentation

ASP.NET

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Consonant Consulting India Pvt. Ltd. ASP.NET www.consonant-consulting.com

  2. Safety • Cables, Emergency Exits • Purpose • Introduction to ASP.NET, Concepts of .NET and building and deployment of simple web site data driven application • Agenda • Follow in the next slides • Code-Of-Conduct • Preferably one conversation at a time, respect each others views. • Preferably all cell phones on silent mode • Expectations • We will work on it • Roles • We all share and learn something from each other SPACER Company confidential, Consonant Consulting India Pvt. Ltd. www.consonant-consulting.com

  3. Introduction to the .NET Framework OOPS Concepts in C# Glance to Visual Studio 2010 ASP.net web application architecture and page lifecycle Tea Break Agenda 120 Minutes

  4. Web Development Using Visual Studio • Creating a Simple Web Application • Working with Controls • Introduction to Web Controls • Handling Server Control Events and page events • Lunch Break Agenda 60 + 60 Minutes

  5. Creating Web Applications by Using Microsoft Visual Studio 2010 • Creating an ASP.NET Web Site • Adding and Configuring Server Controls in Web Forms • Building and Deploying an ASP.NET Web Application • Session Management • Troubleshooting and Debugging ASP.NET Applications • Exception handling Agenda 110 Minutes

  6. Hands On • Create a web project with web controls Agenda 90+ Minutes Quote…

  7. “Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far… Quote

  8. …the universe is winning.” quote Rick Cook Author, The Wizardry Compiled

  9. Introduction to the .NET Framework OOPS Concepts in C# Glance to Visual Studio 2010 ASP.net web application architecture and page lifecycle Tea Break Agenda 120 Minutes

  10. .NET – What Is It? • Software platform • .NET is not a language (Runtime and a library for writing and executing written programs in any compliant language) Introduction to the .NET Framework

  11. Evolution (Generations)

  12. .NET framework

  13. A collection of technologies that • Unite isolated Web applications • Make information available anytime, anywhere • Simplify development and deployment • How does .NET achieve the above? • Web Services • ADO.NET Datasets and XML support throughout the platform • Rich tools, runtime services and XCOPY Deployment What is it?

  14. Consistent programming model Simplified programming model Run once, run always Simplified deployment Wide platform reach Programming language integration Simplified code reuse Automatic memory and management (garbage collection) Type-safe verification Rich debugging support Consistent method failure paradigm Security Interoperability .NET Framework Features

  15. Components of .net

  16. PE header -Common Object File Format -indicates type of file : GUI,CUI or DLL. -Timestamp • CLR header -Version of the CLR Required -MethodDef metadata token of entry point (Main) -Strong Name -location/size of the module’s metadata • Metadata -tables that describe the types and members defined -tables that describe the types and members referenced • IL Code -Intermediate language (IL) code Parts of Managed Module

  17. Loading the CLR

  18. Demo Using ildasam.exe

  19. Introduction to the .NET Framework OOPS Concepts in C# Glance to Visual Studio 2010 ASP.net web application architecture and page lifecycle Tea Break Agenda 120 Minutes

  20. OOPS Concepts in C# Delegates C l a s s e s & O b j e c t s Events Interfaces Access Modifiers and Access Levels Anonymous Types Properties Inheritance Generics Constructors Destructors Coupling & Cohesion

  21. Object-Oriented Programming (C# and Visual Basic) (MSDN) Object-oriented programming(WIKI) Object-Oriented Programming in C# .NET - Part 1(Code Project) http://bharatmane.com/blog/category/technology/object-oriented-programming/ Further pointers

  22. Introduction to the .NET Framework OOPS Concepts in C# Glance to Visual Studio 2010 ASP.net web application architecture and page lifecycle Tea Break Agenda 120 Minutes

  23. Visual studio

  24. Visual studio

  25. Walkthrough: Creating a Basic Web Page in Visual Studio Demo

  26. Introduction to the .NET Framework OOPS Concepts in C# Glance to Visual Studio 2010 ASP.net web application architecture and page lifecycle Tea Break Agenda 120 Minutes

  27. Page life cycle

  28. Worker process

  29. Page life cycle

  30. Interesting files

  31. Introduction to the .NET Framework OOPS Concepts in C# Glance to Visual Studio 2010 ASP.net web application architecture and page lifecycle Tea Break Agenda 120 Minutes

  32. Web Development Using Visual Studio • Creating a Simple Web Application • Working with Controls • Introduction to Web Controls • Handling Server Control Events and page events • Lunch Break Agenda 60 + 60 Minutes

  33. Creating a file system Web site project. Familiarizing yourself with Visual Studio. Creating a single-file ASP.NET page. Adding controls. Adding event handlers. Running pages by using the Web server that is built into Visual Studio for testing. Demo

  34. Web Development Using Visual Studio • Creating a Simple Web Application • Working with Controls • Introduction to Web Controls • Handling Server Control Events and page events • Lunch Break Agenda 60 + 60 Minutes

  35. Creating Web Applications by Using Microsoft Visual Studio 2010 • Creating an ASP.NET Web Site • Adding and Configuring Server Controls in Web Forms • Building and Deploying an ASP.NET Web Application • Session Management • Troubleshooting and Debugging ASP.NET Applications • Exception handling Agenda 110 Minutes

  36. Publish the website Create Virtual Directory Application Pool Test the deployment IIS

  37. Creating Web Applications by Using Microsoft Visual Studio 2010 • Creating an ASP.NET Web Site • Adding and Configuring Server Controls in Web Forms • Building and Deploying an ASP.NET Web Application • Session Management • Troubleshooting and Debugging ASP.NET Applications • Exception handling Agenda 110 Minutes

  38. HTTP is a stateless, session less protocol • Personalizationmakes it possible for e-businesses to communicate effectively with their customers. • Privacy • A trade-off exists, however, between personalized e-business service and protection of privacy. • RecognizingClients Session Tracking

  39. Tracking individual clients, known as session tracking, can be achieved in a number of ways. • Using cookies. • Using ASP.NET’s HttpSessionState object. • Using “hidden” form elements. • Embedding session-tracking information directly in URLs. • Provider-based for flexible data storage • In-process (default) • State server process • SQL Server • Cookied or cookieless Session Tracking

  40. In-Process Session State <!-- Web.config --> <configuration> <system.web> <sessionStatemode="InProc" /> ... </system.web> </configuration> Web Server ASP.NET Session state stored inside ASP.NET's worker process Session State

  41. State Server Session State <!-- Web.config --> <configuration> <system.web> <sessionState mode="StateServer" stateConnectionString="tcpip=24.159.185.213:42424" /> ... </system.web> </configuration> Web Server State Server ASP.NET aspnet_state Process ASP.NET state service (aspnet_- state.exe)

  42. SQL Server Session State <!-- Web.config --> <configuration> <system.web> <sessionStatemode="SQLServer" sqlConnectionString="server=orion;integrated security=true" /> ... </system.web> </configuration> Web Server Database Server ASP.NET ASPState Database Created with InstallSqlState.sql or InstallPersistSql- State.sql

  43. Session management

  44. Creating Web Applications by Using Microsoft Visual Studio 2010 • Creating an ASP.NET Web Site • Adding and Configuring Server Controls in Web Forms • Building and Deploying an ASP.NET Web Application • Session Management • Troubleshooting and Debugging ASP.NET Applications • Exception handling Agenda 110 Minutes

  45. Using the Visual Studio .NET Debugger • Testing Your ASP.NET Application Using Different Browsers • System.Diagnostics • Debug • Trace

  46. Breakpoint Conditional breakpoint Demo

  47. Creating Web Applications by Using Microsoft Visual Studio 2010 • Creating an ASP.NET Web Site • Adding and Configuring Server Controls in Web Forms • Building and Deploying an ASP.NET Web Application • Session Management • Troubleshooting and Debugging ASP.NET Applications • Exception handling Agenda 110 Minutes

  48. A good programmer is someone who always looks both ways before crossing a one-way street. Doug Linder systems administrator Exception handling

More Related