US1591104 Loc Fix - Replace and add examples (#14311)

* replace and add examples

* Update working-with-forms.md
pull/14375/head
Tom Pratt 2019-09-17 19:47:47 -07:00 committed by Rick Anderson
parent ba8e377425
commit 62870871a3
2 changed files with 3 additions and 1 deletions

View File

@ -640,6 +640,8 @@ Adding HTML [\<option>](https://www.w3.org/wiki/HTML/Elements/option) elements i
The correct `<option>` element will be selected ( contain the `selected="selected"` attribute) depending on the current `Country` value.
[!code-csharp[](working-with-forms/sample/final/Controllers/HomeController.cs?range=114-119)]
```HTML
<form method="post" action="/Home/IndexEmpty">
<select id="Country" name="Country">

View File

@ -103,7 +103,7 @@ namespace FormsTagHelper.Controllers
if (ModelState.IsValid)
{
var msg = !System.String.IsNullOrEmpty(model.Country) ? model.Country
: "No slection";
: "No selection";
msg += " Selected";
return RedirectToAction("IndexSuccess", new { message = msg });
}