The document provides an overview of the .NET platform and C# programming language. It discusses the .NET framework and common language runtime (CLR), introduces C# components like classes and delegates, and covers ASP.NET web development fundamentals such as the page lifecycle, master pages, and application/session state.
2. TOPICS
Microsoft .NET Platform and Visual Studio
.Net Stack
Introduction to C#
OOPS component of C#
Assemblies and Modules
Introduction to Asp.Net
5. .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
13. 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.
14. 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.
15. 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
16. 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
18. 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)
20. 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
28. 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
29. Page Life Cycle
PreInit Init
Init
Complete
PreLoad
Load
Control
events
Load
Complete
Pre
Render
Save
StateComplete
Render Unload
30. 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.
33. 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.
34. 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