Commit Graph

571 Commits (b93ae385a15b4ba1ad9a200a0faa7e561d1ed991)

Author SHA1 Message Date
lindexi 472d9d0203 Fix format (#10993) 2019-02-17 20:51:23 -06:00
Nikita Potapenko 8898c40cfe Update actions.md (#10959)
Fixes #10942
2019-02-15 10:39:50 -10:00
Rick Anderson 7c66313c56
Update view-components.md (#10956)
* Update view-components.md

* Update aspnetcore/mvc/views/view-components.md

Co-Authored-By: Rick-Anderson <riande@microsoft.com>
2019-02-15 10:28:49 -10:00
Tom Dykstra a3e9ce7f03 Remove unneeded links to third-party sites (#10970)
Fixes #10668
2019-02-15 09:50:59 -10:00
Mark Francis 66db7e5cb3 Fixed broken link to MvcOptions source file (#10960) 2019-02-15 11:14:21 -06:00
Rick Anderson d46443b1a0
Update areas.md 2019-02-13 19:26:08 -10:00
Luke Latham 432555a6cd API 2.2 links (#10930)
Update
2019-02-13 14:28:34 -10:00
Rick Anderson fad53dba86
show IValidatableObject (#10927)
Fixes #10923
2019-02-13 09:57:29 -10:00
Rick Anderson ba632f8adc
Update filters.md (#10905)
Fixes #10906

@tdykstra 	see @guardrex 	original [here](ce55bac02e). I'm starting to think his original might be better.

It's an alway run filter, shouldn't we get that point across. My version if far too verbose but has the thoughts I want to conveigh.
2019-02-12 12:46:13 -10:00
Luke Latham 5ddd21d60c
IAlwaysRunResultFilter/IAsyncAlwaysRunResultFilter (#10803) 2019-02-12 15:03:34 -06:00
Shadi Namrouti 3fad4097dd Further to #10601 (#10782)
* Fixes #10657

* Further to #10601

* add new line
2019-02-04 08:41:17 -10:00
Rick Anderson 1d9d15b7da
Update Contact.cshtml (#10734) 2019-01-31 16:39:38 -10:00
Julio 88d02c50d4 Fix LF in ./aspnetcore/mvc/views/razor/sample/Views/Home/Contact.cshtml (#10679)
Fixes https://github.com/aspnet/Docs/issues/10671
2019-01-31 11:32:14 -10:00
Shadi Namrouti 063d48753a Update partial-tag-helper.md (#10700)
Remove a repeated sentence.
2019-01-30 11:23:55 -10:00
Shadi Namrouti 28e6882988 Fixes #10657 (#10688) 2019-01-30 11:22:57 -10:00
Rick Anderson 702f1f45b9
Update view-components.md (#10690) 2019-01-30 11:20:55 -10:00
Julio 50eacad29e view-components samples: folder `Todo` renamed `ToDo` for case sensitive OS (#10637)
Fix https://github.com/aspnet/Docs/issues/10636

### Question

@Rick-Anderson 

Under 7f52e7646a/aspnetcore/mvc/views/view-components.md (specifying-a-view-name) 

I don't know why there is the sentance`Update Views/ToDoList/Index.cshtml:` Maybe we must say instead `Update Views/ToDo/Index.cshtml:`

Furthermore, there is a comment ` <!-- Views/ToDoList/Index.cshtml is never imported, so change to test tutorial -->` . But the Views/TodoList doesn't exist ? Should we delete this comment?

Sorry, I don't understand well…
2019-01-28 15:07:06 -10:00
Shadi Namrouti a510fead7d Updating About.cshtml and authoring.md (#10634)
* Update About.cshtml

The WebsiteContext instance was initialized inside a C# code block to avoid a possible problem when one of its attributes is a string.

* Update authoring.md

Update highlights and ranges after updating the relevant source code:
authoring/sample/AuthoringTagHelpers/src/AuthoringTagHelpers/Views/Home/About.cshtml
2019-01-28 15:05:34 -10:00
Shadi Namrouti 772b05adfe Update view-components.md (#10656) 2019-01-28 07:18:41 -06:00
Scott Addie dfce7e1ada
Remove slash in HttpGet attribute (#10608) 2019-01-24 16:08:35 -06:00
Luke Latham 95521a68cd
Document AllowRecompilingViewsOnFileChange (#10580) 2019-01-24 09:57:10 -06:00
Shadi Namrouti 999f01e736 Update EmailTagHelperMailTo.cs (#10588) 2019-01-23 14:35:22 -10:00
Shadi Namrouti 31ede7c9c6 Update authoring.md (#10585) 2019-01-23 11:40:40 -10:00
Rick Anderson 9dc222fee7
Update view-components.md (#10533) 2019-01-22 08:02:55 -10:00
Rick Anderson 38d8db2b1e
Update filters.md (#10512) 2019-01-20 11:27:09 -10:00
Rick Anderson 5396ffe10c
Update filters.md (#10387)
* Update filters.md

* Update filters.md

* Update filters.md

* Update filters.md

* Update filters.md

* Update filters.md

* Update filters.md

* Update filters.md
2019-01-18 13:34:02 -10:00
Shadi Namrouti 408bd4c207 Update razor.md (#10467) 2019-01-17 17:15:17 -06:00
Luke Latham 69306c43f9 Model Validation: Top-level nodes (#10390)
Fixes #10264
[Review URL](https://review.docs.microsoft.com/en-us/aspnet/core/mvc/models/validation?view=aspnetcore-2.2&branch=pr-en-us-10390)

* Not too keen on "top-level node." It isn't documented anywhere, and Google Fu wasn't much help either. I've *guessed* from the API what it means (and I could be *wrong*).
* Side note: `Required` is *required* as a model property attribute to get client-side required validation to work AFAICT. Adding `Required` or `BindRequired` to the top-level node (parameter) doesn't make it work client-side. Not sure if that's an issue or not ... just a side behavior that I noticed when testing.
* `jQuery.validate()` doesn't seem to be a thing any longer. JS complains that it can't find the function with the most recent jQuery validation scripts (from the current templates). Everything seems to work without it, so I nixed it.
* The sample was *almost* updated for 2.2. This should take it across the finish line. 🏁
* In the OP, the dev said that they were missing `AddDataAnnotations`, but we don't doc that level of detail. If they go `AddMvcCore`, they're kind'a on their own to make sure that they have all of the bits in place.
2019-01-16 16:29:24 -10:00
Patrick Westerhoff dcf4f30902 Update example for TypeFilter (#10295)
This is a fix for #10292 (originally #9095). I’ve basically reused the example I already proposed except that I made it a bit more useful.

@Rick-Anderson 	edit
[Internal review URL](https://review.docs.microsoft.com/en-us/aspnet/core/mvc/controllers/filters?view=aspnetcore-2.2&branch=pr-en-us-10295#typefilterattribute)
2019-01-09 14:58:41 -10:00
Rick Anderson 552b76ec38
Update working-with-forms.md (#10260) 2019-01-08 08:17:30 -10:00
Scott Addie 8caa93e2fb
Restore missing Model State code snippet (#10199) 2019-01-04 10:28:27 -06:00
Scott Addie 99f94f96e6
Add example of asp-area with a Razor Pages area (#10048)
* Add example of asp-area with a Razor Pages area

* Minor edits

* Fix code snippet include

* Add example of AllowAreas property

* Update aspnetcore/mvc/views/tag-helpers/built-in/anchor-tag-helper.md

Co-Authored-By: scottaddie <10702007+scottaddie@users.noreply.github.com>
2018-12-18 14:01:05 -06:00
Jacob Stamm c0aabee931 Patch 1 (#10039)
* Update GitHub links to current AspNetCore repo

* Update code sample to reference aspnet core 2.2
2018-12-18 10:47:58 -06:00
Henrik Røn 25603327e6 ASP.NET Core MVC: Updating validation sample to 2.2 (#10021) 2018-12-17 07:56:36 -06:00
Luke Latham 7bcc366948
Update compat version topic sample project file (#9927) 2018-12-10 10:25:08 -06:00
Martin Zikmund 06f38d5d16 Updated Compatibility version docs to mention version 2.2 (#9924) 2018-12-10 10:14:01 -06:00
Dave Brock ad13990b1e fixing formatting error (#9896) 2018-12-07 13:04:32 -10:00
stefanhamburger 0293f9b498 Fix formatting in razor.md (#9885) 2018-12-07 09:57:11 -06:00
buddhacatmonk 7220a5cc38 Update view-components.md (#9781)
* Update view-components.md

* Nits
2018-12-03 14:39:27 -10:00
Martin Koudelka f14c494595 C53600: Missing asterisk and break line (#9776) 2018-12-03 12:16:05 -06:00
Luke Latham 3ab0f7da0f Document support for Razor templates (#9643)
Fixes #9618 

[Internal Review Topic (Templated Razor delegates section)](https://review.docs.microsoft.com/en-us/aspnet/core/mvc/views/razor?view=aspnetcore-1.0&branch=pr-en-us-9643#templated-razor-delegates)
2018-11-20 09:44:12 -06:00
Scott Addie e20f03cce1
Replace BinderModelName with ModelName (#9562)
Fixes https://github.com/aspnet/Docs/issues/9476

[Internal Review Page](https://review.docs.microsoft.com/en-us/aspnet/core/mvc/advanced/custom-model-binding?view=aspnetcore-2.1&branch=pr-en-us-9562#custom-model-binder-sample)
2018-11-13 11:23:39 -06:00
Steve Gordon 8b84b42a5f Fixing the wording of a sentence (#9569) 2018-11-13 08:34:37 -06:00
Scott Addie 70781c2027
c# --> csharp 2018-11-06 14:14:19 -06:00
Scott Addie 01cbe3293e
Explain relationship between model validation and [ApiController] (#9377)
* Explain relationship between model validation and [ApiController]

* React to feedback in index.md

* React to more feedback
2018-11-06 11:52:38 -06:00
Jakub Gutkowski 5762417b5f removing used char (#9428) 2018-11-04 15:25:17 -06:00
Rick Anderson 0ee6b101d9
delete map and min files (#9310) 2018-10-31 14:26:48 -10:00
Abbas M 699ebb7af1 Removed redundant word (#9362)
Removed additional `for` under `Test ActionResult<T>` section
2018-10-31 10:20:10 -10:00
Scott Addie fcf473f19a
Fix DocFX build warnings from retired index pages (#9339) 2018-10-30 15:48:01 -05:00
Rick Anderson 2922d040bd Update validation.md (#9316)
* Update validation.md

* Update validation.md
2018-10-30 15:47:39 -05:00