MS.NET 4
MS.NET 4
Note: Training will be carried out on .Net 4.0 or latest version of the software
2. Reference books:
i. .NET Programming 4.0 , Wrox Publications
ii. Introducing Microsoft .NET, Wrox Publications
iii. CLR via C# by Jeffrey Ritchter / Microsoft Press
Session 1:
Lecture:
Introduction to .Net Framework
Difference between .NET 2.0, .NET 3.5 and .NET 4.0/4.5
.NET Framework Overview
Objectives of .NET Framework 4.5
Components of .NET Framework 4.5
Development in .NET Framework 4.5
Assignment Reading:
Read about NET 4.5 Framework from MSDN.
Session 2:
Lecture:
Execution Process in .NET Environment
Inside .NET Framework
CLR
Managed and unmanaged code
MSIL
CTS
MetaData
JITters
Session 3:
Lecture:
Assemblies-The Building Blocks
Assembly Benefits
Assembly Contents
Different between a normal .EXE File and a PE file
Search order of an assembly
Using reflection to build a dynamically extensible application.
Discovering type Defined in an assembly
Assignment Lab:
Create a Satellite Assembly in NET 4.5 Framework.
Create global Assembly in NET 4.5 Framework
Session 4:
Lecture:
Application Domain
Accessing objects Across AppDomain Boundaries
AppDomain Unloading
CLR hosting
How host use AppDomain
Managing CLR by using Managed Code
How a Host Gets its Thread back.
Language Interoperability
. NET Framework Class Library
The IL dis-assembler
Migrating to MS .NET
Session 5:
Lecture:
Windows Presentation Foundation
Windows Workflow Foundation
Windows Communication Foundation
Assignment Reading:
Read about WPF, WWF, and WCF from MSDN.
Session 2:
Lecture:
• Operators
• Type Safety
• Object Comparison
• Operator overloading
• User defined cast
Assignment Reading:
Read about C# specification from MSDN.
Assignment Lab:
Implement that topics in your program
Session 3:
Lecture:
• Namespaces & Assemblies
• Arrays
o Simple, multidimensional and jagged array
o Array class
• Enumerations
• Properties & Indexers
Assignment Reading:
Session 4:
Lecture:
• Preprocessors
º Preprocessor Usage
o Conditional Compilation
o Assemblies
What are Manifests??
Writing Private Assemblies
Writing Shared Assemblies
• Delegates and Events
• Boxing and Unboxing
• Reflection and the Type class
Assignment Reading:
Read about C# specification from MSDN.
Assignment Lab:
Work with delegates, events, boxing, unboxing Manifest.
Session 5:
Lecture:
• Regular Expression
• Attributes
• Collections
o Collection Interface
o List, Queues, Stack,
o Dictionaries, Hash set
Assignment Reading:
Read about C# specification from MSDN.
Assignment Lab:
Implement Collections classes in C#
Session 6:
Lecture:
• Error Handling (Exceptions Handling)
o Checked & Unchecked Statements
o The try, catch, finally
o Dos & Don’ts of Exception Handling
• User Defined Exception classes
• Win Forms
o Control class
o Standard control and component
• Creating user controls
Assignment Reading:
• Read about C# specification from MSDN
Assignment Lab:
Write a program and do all the exception handling.
Session 8:
Lecture: Working with Databases
º ADO .NET & XML
º DataSets & XML Data
º Constraints, Relations and Views in DataSets
º Use Different Wizards for ADO .NET
Assignment Reading:
Read about XML & ADO.NET from MSDN.
Assignment Lab:
Populate a DataSet with XML and validate XML document against schemas.
Use Constraints, Relations and Views in DataSets
Session 9:
Lecture: Working with Databases
º Working with ADO .NET
º Strongly Typed Programming
º Connection Object
º Command Object
º DataReader Object
Assignment Lab:
Use database Connectivity using ADO .NET. Use DataReader Object and ExecuteReader,
ExecuteScalar and ExecuteNonQuery commands in your program.
Session 10:
Lecture: Working with Databases
º Working With ADO .NET DataSets
º Data Adapter Object
º Simple and Complex Binding
o Binding mechanism
o Differences and Uses (exemplify with TextBox and DataList/DataCombo)
º How to use bound controls to add, update, and delete data rows
º How to use a parameterized query to retrieve data
Session 11:
Lecture: Windows Communication Foundation
• WCF overview
• Working with WCF services
• Working with WCF Consumer
• Working with Data Contracts
Assignment Lab:
Hand on WCF
Prerequisites: Knowledge of COM development, Database Programming and XML is also a must.
Session 1:
Lecture:
• Introduction and difference between ASP and ASP .Net Application
• ASP .NET Web Forms
o ASP .NET Programming Model
o Web Forms Code Model
o The code behind Web Forms
Separation of content & Business logic
o Life Cycle of a Web Forms Page
• The goals of Asp .Net 4.5
• Additional new features of Asp.net 4.5
• Application and page Frame works
o Application location option
o Asp. Net page Structure options
o Asp .Net page directives
o Asp .Net page events
o Dealing with PostBacks
o Asp .net Application Folder
Session 2:
Lecture:
• ASP .NET Server Controls
o Type of server controls
o Building with Server Controls
o Working with Server Controls events
• Applying Styles to server Controls
• Html Server Controls
• Manipulating pages and server Control
• Asp.Net Web Server Control
o All basic web Server Control including Xml, Panel, Table, PlaceHolder, Bulletedlist,
HiddenField , FileUpload, MultiView and View, ImageMap, Wizard Server control.
• Validation Server Controls
o Understanding validation
o Client-Side versus Server-Side validation
o Asp.net Validation Server Controls
• Creating User Controls in ASP .NET
o ASP .NET Server Controls Template
Customizing the look & feel of ASP .NET Server controls using Templates
Creating Templates
Session 3:
Lecture:
• Master Pages, Skin, Theme
o Working with Master Pages
o The basic of Master Pages
o Coding a Master Page
o Coding a Content Page
o Mixing Page Types and languages
o Specifying which Master Page to use
o Working with Page Title
o Specifying Default Content in Master Page
o Nested master Page
o Caching with Master Page
o Using Asp.net 4.5 Themes
o Creating yours own Themes
o Programmatically Working with Themes
o Assigning the page’s Theme Programmatically
o Assigning a control SkinID Programmatically
Assignment Lab:
Create a Simple application in ASP .NET 4.5 in which use Master Page
Create a Simple application in ASP .NET 4.5 in which use Theme and skin
Create a Simple application in ASP .NET 4.5 in which use CSS file
Session 4:
Lecture:
• ASP .NET Web Application Security
o Securing Through IIS
o ASP .NET 4.0 Authentication
Windows Authentication
Passport Authentication
Form Based Authentication
o ASP .NET Authorization
Working with User.identy
Working with User.IsInRole()
Pulling more information with WindowIdentity
• Debugging and Error Handling Techniques
o Design Time Support
o Immediate and Command Window
o ASP .NET Tracing
Page level
Application Level
Viewing Trace Data
Trace Forwarding
TraceListeners
Diagnostic Switches
Web Events
o ASP .NET Debugging
IIS Versus ASP .NET development Server
Assignment Lab:
Create a Simple application in ASP .NET 4.5 by using AJAX controls.
Session 6:
Lecture:
• Querying with LINQ
o LINQ to objects
o LINQ to XML
o LINQ to SQL
Session 8:
Lecture:
• Files I/O and Streams
o Working with drivers, Directories, and Files
o Reading and Writing files
o Working with Serial ports
o Networks Communications
WebRequest and WebResponse
Sending mail
• . NET Remoting
o Accessing .NET component across Application Domain
• . NET Remoting Architecture
o Creation of Proxy Objects by the CLR
o Using the Channel Services to transport the Remotable component across Application
Domains
Using HTTP and TCP Channel
o Formatter for creating Message & encoding it
SOAP & Binary Formatter
• WebServices
Session: 14
Lecture:
• View master pages ad view user control
• Understanding HTML Helpers
o Standard HTML Helper
o Custom HTML helper
o DataGrid Helpers
• Validating form data
o Validation Helpers
o Model State
o Prebinding and Postbinding Validation
• Model Binders and action Filters
o Default Model Binder
o Bind with classes and complex classes
o Attribute
o Log Action Filter
Assignment Lab:
Create a custom Model binder.
Session 15:
Lecture:
• Working with AJAX
o Ajax Helpers
o Retrieving content and posting a form Asynchronously
o AcceptAjax Attribute
• Using jQuery
o jQuery Selector
o jQuery Event Handler
o jQuery Animations
o jQuery Plug-Ins
Assignment Lab:
Create a simple application using jquery and Ajax
Session 16:
Lecture:
• Authenticating users
o Authorizing User
o Membership and Role Manager API
Session 17:
Lecture:
• Database Access
o Repository Pattern
o Entity Framework Repository
Database Objects
Entity Framework Data model
Entity Framework Blog Repository
Assignment Lab:
Create a Simple application using