Duration
4 days
Outline
Introduction to .NET
- Overview of the .NET Framework
- How .NET is Different from Traditional Programming
- Common Language Runtime (CLR)
- Common Language Specification (CLS)
- Common Type System (CTS)
- .NET Assemblies
- Microsoft Intermediate Language (CIL)
- .NET Namespaces
- .NET Framework Class LibraryIntroduction to Visual Studio
- Creating a Project
- Using the Code Editor
- Correcting Syntax Errors
- Setting Project Properties
- Adding References
- Compiling a Program
- Running a Program
- Debugging a Program
- Using the MSDN (Help)
Language Fundamentals
- VB.NET Program Structure
- Defining Namespaces
- Understanding VB.NET Data Types
- Defining Variables and Constants
- Comparing Value Types vs. Reference Types
- Working with Operators and Expressions
- Performing Type Conversions
- Using Console I/O
- Formatting Numbers, Date and TimesConditionals and Looping
- If/Else
- Select Case
- Do/Loop
- While
- For
- For Each
Procedures and Parameters
- Subroutines vs. Functions
- Defining Shared and Instance Methods
- Passing Parameters by value and by reference
- Overloading Methods
- Using Variable Length Parameter Lists
- Exception Handling
- What are Exceptions?
- .NET Exception Hierarchy
- Catching Exceptions
- Throwing Exceptions
- Managing Resources with Finally
Collections
- Defining and Using Arrays
- Understanding System.Array
- .NET Collections vs Generic Collections
- Working with Lists
- Working with Dictionaries
- Using LINQ to ObjectsObject-Oriented Programming
- Overview of Object-Oriented Programming
- Building Classes
- Defining Properties
- Using Auto-Implemented Properties
- Defining Methods
- Understanding Constructors
- Extending .NET Classes via Inheritance
- Defining and Implementing Interfaces
- Understanding the Role of Interfaces in .NET
Overview of ASP.NET MVC
- Overview of Model-View-Controller Design Pattern
- ASP.NET MVC Application Architecture
- Understanding the MVC Execution Process
- Building an ASP.NET MVC Application Using Visual Studio
- Visual Studio MVC Project Templates
- Using a web.config FileDeveloping Controllers
- Creating Controllers
- Defining Action Methods
- Mapping URLs to Action Methods
- Understanding ActionResult Types
- Working with ViewData and ViewBag
Developing Views
- Creating Views
- Understanding View Engines
- Using the ASMX View Engine
- Using the Razor View Engines
- Using HTML Helpers
- Adding Validation
- Working with Strongly-Typed ViewsDeveloping Models
- Creating Model Classes
- Working with the Entity Framework
- Working with LINQ to SQL
- Using Scaffolding
Routing Control
- Understanding Routing in ASP.NET MVC
- Defining URL Routes
- Registering Routes
- Adding Constraints to Routes
- Debugging Routes
- Integrating ASP.NET MVC and Web Forms
- What are Web Forms
- Using Web Forms in an MVC Application
- Using MVC in a Web Form Application
- Linking to MVC Actions from Web Forms
MVC Unit Testing
- Test-Driven Development
- Designing Test Cases
- Creating Unit Tests
- Using MS Test
- Securing MVC Applications
- ASP.NET Security
- Windows vs Forms Authentication
- Configuring Authentication
- Configuring Authorization
- Building a Secure Web Site
- Defending against Attacks
- Cross-site Scripting
- Session Hijacking
- SQL Injection
- Input Forgery
Deploying ASP.NET MVC Applications
- Understanding Deployment Issues
- Required MVC Assemblies
- Server Requirements
- Configuring an ASP.NET Application for Deployment
- Using XCOPY Deployment
- Using WebDeploy
Programme scope, delivery arrangements and suitability are confirmed during enquiry.