Up to 2023-10-22

jason-zhu 2023-10-22 12:15:53 +11:00
parent 791f87e2d4
commit b39e33e2d8
13 changed files with 137 additions and 0 deletions

8
chap10_nuget.md Normal file

@ -0,0 +1,8 @@
# Chapter 10: NuGet
Topics covered in this chapter (May not be summarized):
* Introduction to NuGet
* Installing NuGet
* Installing Packages
* Creating Packages
* Publishing Packages

@ -0,0 +1,5 @@
# Chapter 11: Dependency Injection
Topics covered in this chapter (May not be summarized):
* All about software design patterns
* How to use the dependecny resolver

6
chap12_unit_testing.md Normal file

@ -0,0 +1,6 @@
# Chapter 12: Unit Testing
Topics covered in this chapter (May not be summarized):
* Understanding unit testing and Test-Driven-development
* Building a unit test project
* Good adivce for unit testing your ASP.NET MVC application

6
chap13_extending_mvc.md Normal file

@ -0,0 +1,6 @@
# Chapter 13: Extending MVC
Topics covered in this chapter (May not be summarized):
* How to extend Models
* How to extend Views
* How to extend Controllers

@ -0,0 +1,8 @@
# Chapter 14: Advanced Topics
Topics covered in this chapter (May not be summarized):
* Advanced Razor
* Advanced Scaffolding
* Advanced Routing
* Advanced Templating
* Advanced Controllers

13
chap2_controllers.md Normal file

@ -0,0 +1,13 @@
# Chapter 2: Controllers
Topic in this chapter: (May not summarize)
* The controller's role
* A brief history of controllers
* Sample application: The MVC Music Store
* Controller basics
## The Controller's Role
## Controller Basics

13
chap3_views.md Normal file

@ -0,0 +1,13 @@
# Chapter 3: Views
Topic in this chapter: (May not summarize)
* The purpose of Views
* How to specify a View
* All about strongly typed Views
* Understanding View Models
* How to add a View
* Using Razor
* How to specify a Partial View
* Understanding the View Engine
## What a View Does

@ -0,0 +1,47 @@
# Chapter 5: Forms and HTML Helpers
Topic in this chapter: (May not be summarized)
* Understanding forms
* How to make HTML helpers work for you
* Editing and inputting helpers
* Displaying and rendering helpers
HTML helpers requires coordination between a view and the runtim.
## Using Forms
Before understanding HTML helper, first get familiar with HTML `form` tag.
### The Action and the Method
A form is a container for one or more different input elements, e.g.:
* buttons
* checkboxs
* text inputs, etc.
How form submit user entered information to server:
* through **`action` and `method` attributes of a `form` tag**
* `action` attribute tell browser where to send information, hence normally contains URL (relative or absolute)
* `method` attribute tell browser use `GET` (default) or `POST` requests.
* When a user submits a form using an HTTP GET request, **the browser takes the input names and values inside the form and puts them in query string**.
e.g. HTML form tag transform to URL
```html
<form action="http://www.bing.com/search" method="get">
<input name="q" type="text" />
<input type="submit" value="Search!">
</form>
```
to `http://www.bing.com/search?q=love`
Details of HTML form is available in [w3schools](https://www.w3schools.com/html/html_forms.asp)
### To GET or To POST
Difference btw GET and POST:
* `GET` request: browser place input values into query string
* `POST` request: browser place input values inside the body of the HTTP request instead.
Web app generally use GET requests for reads and POST requests for writes.

@ -0,0 +1,6 @@
# Chapter 6. Data Annotations and Validation
Topic covered in this chapter (May not be summarized)
* Using data annotations for validation
* How to create your own validation logic
* Using model metadata annotations

@ -0,0 +1,7 @@
# Chapter 7: Securing Your Application
Topic covered in this chapter (May not be summarized):
* Requiring Login with Authorize Attribute
* Requiring role membership using the Authorize Attribute
* Using security vectors in Web Application
* Coding defensively

7
chap8_ajax.md Normal file

@ -0,0 +1,7 @@
# Chapter 8: AJAX
Topic covered in this chapter (May not be summarized):
* Everything you want to know about jQuery
* Using AJAX Helpers
* Understanding Client Validation
* Using jQuery Plugins

11
chap9_routing.md Normal file

@ -0,0 +1,11 @@
# Chapter 9: Routing
Topics covered in this chapter (May not be summarized):
* All about URLs
* Routings 101
* A peek under the Routing hood
* A look at advanced Routing
* Routing extensibility and magic
* How to use Routing with Web Forms
##

0
data.csv Normal file