Commit Graph

685 Commits (90b4fb63f17e67b1fcf93c5314976566c1309e37)

Author SHA1 Message Date
Pranav K 2f3b938ebe Remove PreserveCompilationContext requirement (#12973)
* Remove PreserveCompilationContext requirement

* Update view-compilation.md

* minor edits
2019-06-20 17:20:11 -05:00
Luke Latham 7fc1e203cc
Document @ directives (#12762) 2019-06-12 13:55:32 -05:00
Ajay Bhargav Baaskaran 2cf3468f3d Update blazor docs to reflect directive attributes changes (#12756) 2019-06-12 13:29:16 -05:00
Scott Addie eb79fc3f45
Mention the Partial method for producing a PartialViewResult (#12790)
* Mention the Partial method for producing a PartialViewResult

* Minor tweaks

* Update sample project to 2.2

* Revert wording change

* Simplify code snippet

* Revert code snippet change

* Fix code snippet dev lang
2019-06-12 11:50:08 -05:00
Kanadily, Esam Abdulmajeed ca66ee7907 Update partial.md (#12746)
The sentence "An analogous capability is planned for Razor Pages in ASP.NET Core 2.2" is outdated.
2019-06-10 15:05:53 -05:00
Scott Addie c77e455367
Razor syntax patch (#12787) 2019-06-10 15:04:05 -05:00
Scott Addie e8af02d632
Simplify Razor snippet (#12781) 2019-06-10 13:49:00 -05:00
Rick Anderson 07d01d4259 Revert "Document @ directives (#12750)" (#12757)
This reverts commit 5f8262bab3.
2019-06-08 08:46:39 -05:00
Ryan Brandenburg 5f8262bab3
Document @ directives (#12750)
Document @ directives
2019-06-07 15:54:38 -07:00
Tom Dykstra fb4f991c87 Model binding doc updates (#12462)
* draft of rewrite

* show how to make cusom val prov first

* correct errors

* more corrections

* fix typo

* more small fixes

* dict int,string to string,string

* feedback

* feedback

* fix links

* feedback

* feedback

* clean up sample app

* convert inline code to snippet refs

* acrolinx

* fix snippet

* changes that were accidentally not saved

* proofread fixes

* corrections

* use asp-for

* fix date

* feedback
2019-06-06 09:43:46 -05:00
Tom Dykstra a5a35ecc89
[Remote] attribute requirements (#12632) 2019-06-01 14:37:08 -07:00
Ben McCallum 97a5f25033 Fix typo (#12595) 2019-05-30 09:28:50 -05:00
Rick Anderson 56c920733c
filters update (#12421)
* filters update

* filters update

* work

* work

* work

* work

* work

* work

* work

* work

* work

* work

* work

* work

* work

* work

* work

* work

* work

* work

* work
2019-05-24 12:16:57 -10:00
Luke Latham 0e456958ec File uploads in Custom Model Binding topic (#12426)
* File uploads in Custom Model Binding topic

* React to feedback

* Drop Linq using
2019-05-18 16:17:04 -10:00
Luke Latham 669a5fe172
Surface Razor Components in View Components topic (#12412) 2019-05-14 12:55:03 -05:00
Rick Anderson f603e04127
update Author TH (#12394)
* update Author TH

* update Author TH

* update Author TH

* update Author TH

* update Author TH

* Update aspnetcore/mvc/views/tag-helpers/authoring.md

Co-Authored-By: reZach <reZach@users.noreply.github.com>

* Update aspnetcore/mvc/views/tag-helpers/authoring.md

Co-Authored-By: Luke Latham <1622880+guardrex@users.noreply.github.com>

* Update authoring.md
2019-05-14 07:27:39 -10:00
Stamo Gochev ec7ccd863e Update view-compilation.md (#12397) 2019-05-14 10:43:48 -05:00
Scott Addie 91a4b25d7c
Razor Pages areas doc patch (#12368) 2019-05-10 12:37:02 -05:00
Henrik Walker Moe 0cc288b642 Adds a simpler example for view-injection (#12337)
* Adds an example for injecting configuration

* Change formatting for appsettings-file

* Update dependency-injection.md

* Update dependency-injection.md
2019-05-09 11:37:35 -10:00
Kirk Larkin bb05b407b3 Fixed line highlight. (#12335)
* Fixed line highlight.

* Update view-compilation.md
2019-05-08 10:44:55 -10:00
Mauricio de los Santos ec9776e093 C86836: Adding double spaces at the end of lines to avoid broken content (#12307) 2019-05-06 15:46:02 -05:00
Mauricio de los Santos 5057c0d346 C80832: Adding two spaces at the end of a line (#12199)
* C80832: Adding two spaces at the end of a line

Localization team has reported source content issue that causes localized version to have broken/different format compared to en-us version.
Description: missing spaces are breaking formatting on loc pages
@guardrex

* Update
2019-05-06 10:34:46 -05:00
Rick Anderson b5cbf1d293
Update anchor-tag-helper.md (#12171) 2019-04-26 11:58:56 -10:00
Mauricio de los Santos eb73a9187a C86844: Adding two spaces after line 173 (#12178)
Localization team has reported source content issue that causes localized version to have broken/different format compared to en-us version.  
Description:  missing spaces break formatting
  
Please review and merge the proposed file change to fix to target versions. If you make related fix in another PR  then share your PR number so we can confirm and close this PR.
Many thanks in advance.
cc: @rick-anderson,
2019-04-26 10:11:58 -10:00
Rick Anderson af7a6de9e1
Built in TH (#12169)
* Built in TH

* Built in TH
2019-04-25 15:14:02 -10:00
Luke Latham f0df4aaf7c React to new VS URL (#12154)
Updates
2019-04-24 15:51:50 -10:00
Luke Latham 217c6f3604 React to repo name change in repo links (#12152) 2019-04-24 14:04:39 -10:00
Ponant a818ee5a21 Disable Client Validation in Razor Pages (#12060)
* Disable Client Validation for Razor Pages

https://github.com/aspnet/AspNetCore/issues/7576

* Startup3.cs

To disable client validation in razor pages
2019-04-19 07:21:38 -07:00
N. Taylor Mullen 27ad4f0735 Add docs for markup in code blocks. (#11960) 2019-04-14 07:14:58 -05:00
Martin Koudelka 423a51403a C80832: Adding two spaces at the end of a line (#11955) 2019-04-12 08:18:26 -05:00
Dariusz Woźniak 896261d675 Code indentation fix (#11922) 2019-04-10 07:48:15 -05:00
Luke Latham f677b31262
Unclosed void elements in topics (#11881) 2019-04-09 15:22:40 -05:00
Tom Dykstra 4f2abedabf
Remove moniker tags, all text is for 2.1+ (#11862)
* Remove moniker tags, all text is for 2.1+

* add moniker metadata
2019-04-05 09:59:15 -07:00
Ponant fb5ede8186 Paragraph duplication (#11854)
* Paragraph duplication

* Collapse into a single version block

* fix moniker range comparison operator

* delete extra line
2019-04-05 09:18:59 -07:00
Hao Kung fb53a6c640 Note that keys are insensitive for ViewBag/ViewData (#11816) 2019-04-03 17:43:05 -05:00
Tom Dykstra e3e37685a1
Revert "fix: MD032/blanks-around-lists (#11784)" (#11811)
This reverts commit 370de65ccf.
2019-04-03 07:57:58 -07:00
Nick Schonning 370de65ccf fix: MD032/blanks-around-lists (#11784) 2019-04-02 11:44:31 -05:00
Nick Schonning b88c15566b fix: MD012/no-multiple-blanks (#11782)
Multiple consecutive blank lines
2019-04-01 17:09:00 -10:00
Tom Dykstra 48a9e7c392
Validation article updates (#11282)
* implement dougbu feedback + multiple issues
2019-04-01 11:06:27 -07:00
Nick Schonning d125525ff2 fix: MD038/no-space-in-code (#11583)
- Replace ` with %60 in xref links
- Remove spaces inside code span elements
2019-03-21 15:04:23 -05:00
Nick Schonning 18f9c3a9b3 typo: Sproket -> Sprocket (#11617) 2019-03-20 19:13:40 -10:00
Nick Schonning d6246ca38d fix: MD031/blanks-around-fences (#11605) 2019-03-20 10:32:05 -05:00
Nick Schonning 33aac670ec fix: MD022/blanks-around-headings/blanks-around-headers (#11603) 2019-03-19 15:18:13 -05:00
Nick Schonning 188fdb2abe fix: MD012/no-multiple-blanks (#11596)
Multiple consecutive blank lines
2019-03-19 13:56:32 -05:00
Nick Schonning f2348c69ea fix: MD010/no-hard-tabs (#11592) 2019-03-19 13:27:16 -05:00
Nick Schonning 32bf4679b3 fix: MD033/no-inline-html (#11586)
* fix: MD033/no-inline-html

Doesn't remove actual inline HTML, but escapes Generics and examples in braces

* Apply suggestions from code review

Co-Authored-By: nschonni <nschonni@gmail.com>
2019-03-19 13:17:14 -05:00
Nick Schonning 6adf175e80 fix: MD006/ul-start-left (#11591)
* fix: MD006/ul-start-left

* fix: MD007/ul-indent

* minor edit
2019-03-19 13:15:35 -05:00
Nick Schonning f4af0f320f fix: MD042/no-empty-links (#11590) 2019-03-19 12:18:44 -05:00
Nick Schonning aaec2b3275 fix: MD039/no-space-in-links (#11582)
Spaces inside link text
2019-03-19 10:21:48 -05:00
Nick Schonning 068d6f58bb typo: Optinally -> Optionally (#11552) 2019-03-19 09:45:10 -05:00
Nick Schonning 3d916b8868 typo: necessarly -> necessarily (#11570) 2019-03-19 09:34:09 -05:00
Nick Schonning 871441af63 typo: Exection -> Execution (#11571) 2019-03-19 09:33:47 -05:00
Scott Addie ce994db4b0
Remove inaccurate Label Tag Helper description (#11546) 2019-03-18 13:26:59 -05:00
MSDev_NilTor 201ebff98e Update view-compilation.md (#11428)
now,there has not AddMvcRazorRuntimeCompilation,but AddRazorRuntimeCompilation!
2019-03-15 19:40:04 -10:00
Rick Anderson 86acdd258c
RP areas (#11199)
* RP areas

* work

* work

* work

* work
2019-03-04 19:07:26 -10:00
Luke Latham fc901eeb67 Migration section on runtime comp (#11235)
Fixes #11232

This heading ...

> \#\# Moving from WebHostBuilder to HostBuilder

... didn't seem to make sense because the prior section is addressing the same migration aspect. These two sections were probably added at different times (guessing), which would explain the (accidental) appearance of both.

I see a handful of little super-nits in the view comp file beyond the few that I touch here (mostly punctuation on this PR), but I'll leave those unless you want me to edit the file.
2019-03-02 13:05:08 -10:00
N. Taylor Mullen a8dd0cdcba Add Form Action Tag Helper docs (#11192)
- Utilized the `AnchorTagHelper` docs to consistenly describe the `asp-` attributes used to control how links get generated.
- Updated the built in TagHelper list doc to include the FormAction TagHelper.

#10593 
[Review URL](https://review.docs.microsoft.com/en-us/aspnet/core/mvc/views/working-with-forms?view=aspnetcore-2.2&branch=pr-en-us-11192#the-form-action-tag-helper)
2019-02-28 08:25:40 -10:00
Rick Anderson 751c0e3fb2
Update view-compilation.md (#11144)
Fixes #11142
2019-02-26 11:07:40 -10:00
Pranav K 030932e6cc Add docs about runtime compilation (#11135)
Fixes #11130
2019-02-26 10:36:33 -10:00
Luke Latham 391eacdb9c
Directly link partial view discovery in Layouts (#11117) 2019-02-26 12:58:29 -06:00
Rick Anderson fb88516307
rewrite Areas (#10978)
Fixes #11031, Fixes #10503, Fixes #9448

[Internal review URL](https://review.docs.microsoft.com/en-us/aspnet/core/mvc/controllers/areas?view=aspnetcore-2.2&branch=pr-en-us-10978)

@JamesNK please review when you finish your bug backlog. Next week is fine.
2019-02-25 17:01:56 -10:00
Tawfik Khalifeh 7399ac1524 Update filters.md (#11081) 2019-02-24 19:36:29 -06:00
Rick Anderson d3bc45668f
Update of controller DI rewrite (#11034)
* Fixes #10944

* Update of controller DI rewrite

* work

* work

* work

* work

* work

* work

* work

* Update aspnetcore/mvc/controllers/dependency-injection.md

Co-Authored-By: Rick-Anderson <riande@microsoft.com>

* Apply suggestions from code review

Co-Authored-By: Rick-Anderson <riande@microsoft.com>
2019-02-22 11:29:51 -10:00
Cédric Luthi 29ccbaa0b0 Link to MvcOptions doc instead of source code (#11017) 2019-02-20 05:39:25 -06:00
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