Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

.Net Framework Introduction

This Presentation provide a practical and visual way to understand the concept level of web application development by .Net technology and C# programming concepts.

Related Books

Free with a 30 day trial from Scribd

See all

Related Audiobooks

Free with a 30 day trial from Scribd

See all
  • Be the first to comment

.Net Framework Introduction

  1. 1. TOPICS  Microsoft .NET Platform and Visual Studio  .Net Stack  Introduction to C#  OOPS component of C#  Assemblies and Modules  Introduction to Asp.Net
  2. 2. FRAMEWORK VIEW
  3. 3. .NET Framework View Framework Class Library ADO.NET Network XML Security Threading Diagnostics IO Etc. Common Language Runtime Memory Management Common Type System Lifecycle Monitoring C# VB.NET C++.NET Other Operating System Visual Studio .NET Common Language Specification Windows FormsASP.NET Web Services ASP.NET Application Services Web Forms Controls Drawing Windows Application Services
  4. 4. .NET Platform Influential Factors .NET OOP JVM GUI Web component- based design n-tier design
  5. 5. .Net Stack VERSIONS
  6. 6. Introduction To C# C# is a Type-safe object-oriented language run on the .NET Framework.
  7. 7. E X E C U T I O N
  8. 8. Code Conversion
  9. 9. C# Components  Namespaces  Classes  Methods and Properties  Delegates and Event Handler  Interfaces  Exception Handling  Data Types  Arrays
  10. 10. C# Class View
  11. 11. Delegates  A new concept that is central to the programming model of the CLR.  Delegates are like function pointers, but are actually type- safe, secure, managed CLR objects.  The CLR guarantees that a delegate points to a valid method.  You get the benefits of function pointers without the dangers.  Each delegate is based on a single method signature.  Commonly used for callbacks.  Delegates are basis of event handlers.
  12. 12. The Common Type System  Reference types are type-safe object pointers. Allocated in the “managed heap”  Four kinds of reference types: Classes, arrays, delegates, and interfaces.  When instances of value types go out of scope, they are instantly destroyed and memory is reclaimed.  When instances of reference types go out of scope, they are garbage collected.  Boxing = converting an instance of a value type to a reference type. Usually done implicitly through parameter passing or variable assignments.  UnBoxing = casting a reference type back into a value type variable.
  13. 13. The Common Type System Primitive Types Int16 Int32 Int64 Single Double Decimal Boolean Byte Char Currency DateTime TimeSpan Object ArrayString Enum ValueType Exception Delegate Multicast Delegate Class1 Class2 Class3
  14. 14. Data Types C# Type .NET Framework type bool System.Boolean byte System.Byte sbyte System.SByte char System.Char decimal System.Decimal double System.Double float System.Single int System.Int32 uint System.UInt32 long System.Int64 ulong System.UInt64 object System.Object short System.Int16 ushort System.UInt16 string System.String
  15. 15. Array Declaration  int[] table; //not int table[]  int[] number; number=new int[10]; number=new int[20];  Single Dimensional Arrays : int[] numbers;  Multi Dimensional Arrays : int[,] numbers;  Jagged Arrays : int[][] numbers;
  16. 16. Assemblies  A logical collection of one or more EXEs and DLLs containing an application’s code and resources  It contains  Codes in MSIL  Manifest (A metadata description of the code and resources)
  17. 17. Introduction to ASP.NET Development
  18. 18. Asp.Net  Simply Server side language  Simplified page development model  Modular, well-factored, extensible architecture  Superior debugging and tracing support  Compiled, not interpreted  Rich caching support  Web farm scalable session state  Automatically detects and recovers from errors
  19. 19. Request And Respond
  20. 20. General Things to know  Client Side Scripting  Server Side Scripting  HTML  JavaScript  CSS  JQuery  Ajax  XML
  21. 21. Web Forms in .NET  Separate Code & Design  Rich Web Forms  Drag & Drop Design  Like WinForms
  22. 22. Understand the Web Form  Page Directive  Server side code  Form  Normal HTML Structure  Server Controls
  23. 23. Design Page on Framework
  24. 24. ApplicationFile(Global.asax) File in Project
  25. 25. Configuration File(web.config) File in Project
  26. 26. You must Know  Post Back  communicates back to the server  View State  state stored in a hidden field on the page  transported to the client and back to the server,  Is not stored on the server
  27. 27. Page Life Cycle PreInit Init Init Complete PreLoad Load Control events Load Complete Pre Render Save StateComplete Render Unload
  28. 28. ASP.NET States  Session State  allows the state of objects (serializable) to be stored for a single session (lifetime of the user’s browser or specific timeout)  Application State  allows the state of objects (serializable) to be stored for the application across different sessions.
  29. 29. Master Page  Template to Other pages Content place holder Master aspx aspx
  30. 30. Master Page Fusion in Content Page
  31. 31. Master Page View on Framework A B Point A is the Content Place Holder of Master Page that contains Content1 and Content2 of .aspx toward Point B.
  32. 32. Starting ASP.NET Development ..  Web Application  Recommended  Compiles all pages into one DLL  Faster on first load after deployment  Must recompile whole site for code change

×