This course provides a practical hands-on introduction to developing Web applications using ASP.NET Web Pages and C#. This Web development framework from Microsoft emphasizes ease of use, making the development of dynamic Web sites with ASP.NET very approachable. C# programming is done using the Razor syntax, as in the more sophisticated ASP.NET MVC. This course uses WebMatrix as a development environment. WebMatrix is a free tool from Microsoft that provides an HTML editor, an integrated SQL Server Compact database utility, a Web server for testing pages, and features to facilitate publishing your website to the Internet, including to the Azure cloud. ASP.NET Web Pages sites can also be developed and tested using Visual Studio. The course is current to ASP.NET Web Pages 2 and WebMatrix 3.
The course begins with an overview of the WebMatrix tool and includes a review of creating static websites with HTML and Cascading Style Sheets. Then the Razor syntax is introduced, enabling the creation of dynamic websites programmed with C#. Code reuse using functions and helpers is discussed, along with using .NET classes and class libraries. HTTP is reviewed and form processing is covered using GET and POST. The next chapter covers the use of the ASP.NET infrastructure for maintaining session and applications state, caching, and using cookies. Web database application development is discussed, including use of the WebMatrix tool to create new databases. The course concludes with deployment of websites to the Azure cloud.
Numerous programming examples and exercises are provided, including a thematic case study. The student will receive a comprehensive set of notes and all the programming examples.
.NET Training Learning Objectives
- Gain an understanding of the philosophy and structure of Web applications using ASP.NET Web Pages
- Acquire a working knowledge of Web application development using ASP.NET Web Pages 2 and WebMatrix 3
- Use C# and Razor along with HTML and CSS
- Reuse code with functions and helpers and .NET classes and class libraries
- Utilize ASP.NET infrastructure to maintain session and applications state, use cookies, and perform caching
- Access databases with SQL Server and ADO.NET
- Deploy Web applications to the Internet
Although there are no formal prerequisites, some exposure to C# and HTML would be useful. Some familiarity with ASP.NET is helpful but not required.
.NET Training Course duration
2 days
.NET Training Course outline
1. Introduction to Web Pages and WebMatrix
- Web Application Fundamentals
- Using WebMatrix
- HTML
- Cascading Style Sheets
- ASP.NET
- ASP.NET Web Pages
2. Programming with C# and Razor
- Dynamic Output
- Razor Syntax
- Code Block of a Web Page
- Intermixing C# with HTML
- Functions and Helpers
- Reusing .NET Classes and Class Libraries
3. Form Processing and HTTP Basics
- HTML Forms
- Using JavaScript
- GET and POST
- Request Collection
- INPUT and SELECT Tags
- Validation
4. State Management and ASP.NET Infrastructure
- ASP.NET Infrastructure
- Session State
- Application State
- Cookies
- Caching
5. Web Database Applications
- Use WebMatrix to Create a SQL Server CE Database
- Using WebGrid Helper to Display Data
- Customize WebGrid with HTML Styling
- Perform SQL Insert, Update and Delete
- Access Other Databases
6. ASP.NET and Azure
- What Is Windows Azure?
- A Windows Azure Testbed
- Deploying an Application to Azure
- Updating an Application on Azure
Appendix A. Learning Resources
Appendix B. HTTP and Fiddler
- Fiddler and HTTP
- Examining Requests and Responses
- Composing Requests
System Requirements
Required software is WebMatrix 3, which is a free download from Microsoft and includes all the Web and database tools that are required. The operating system should be Windows 7SP1 or more recent.
A good minimal hardware profile for this course would have a 1.8 GHz or equivalent CPU, 2 GB of RAM, and at least 10 GB of free disk space for tools installation and courseware.