Commit Graph

559 Commits (e3256ef3a47dbfd44a5d84539cf157ee61ebc82c)

Author SHA1 Message Date
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
Luke Latham 7ede6dfbd2 Add missing `await` to example code (#9338)
Fixes #9336 

<!--
When creating a new PR, please do the following:

* Reference the issue number if there is one, e.g.:

Fixes #Issue_Number

The "Fixes #nnn" syntax in the PR description allows GitHub to automatically close the issue when this PR is merged.

NOTE: This is a comment; please type your descriptions above or below it.
-->
2018-10-30 15:41:28 -05:00
SONG WONSEOK ca1e5fba4e Update cache-tag-helper.md (#9311)
Fixes #6971

<!--
When creating a new PR, please do the following:

* Reference the issue number if there is one, e.g.:

Fixes #Issue_Number

The "Fixes #nnn" syntax in the PR description allows GitHub to automatically close the issue when this PR is merged.

NOTE: This is a comment; please type your descriptions above or below it.
-->
2018-10-30 13:21:12 -05:00
Rick Anderson 04867c4f17
Update authoring.md (#9273)
* Update authoring.md

* Update authoring.md
2018-10-29 14:57:19 -10:00
Rick Anderson 375e422f2c
Update working-with-forms.md (#9241)
Fixes #3863
2018-10-29 10:51:44 -10:00
Tom Dykstra b6ba3d220c Table of Contents reorg (#9133)
* overview

* whats new to end

* fix migration node

* split fundamentals, move to end

* glob & loc, get started

* security node name

* security section

* azure, client-side, host

* several more sections

* redistribute tutorials

* proofread fixes

* move how to download section

* index files delete and redirect

* fix errors

* reorder some nodes

* scott feedback, flatten main tutorials node

* fix missed feedback items + other issues

* unflatten tutorials node

* move 'how to download'

* more tutorials node tweaks

* standardize view sample links

* db --> DB

* fix build error

* remove link from a parent node

* streamline node names

* xref links

* typos

* typo

* typos and revert some xref links

* scott feedback

* scott feedback

* feedback

* change node name

* safe storage-->protect
2018-10-26 18:34:40 -10:00
Scott Addie cdff41e456
Add Razor SDK info to generated class section (#9254)
Fixes https://github.com/aspnet/Docs/issues/8839

**Internal Review Pages**
- [2.1+](https://review.docs.microsoft.com/en-us/aspnet/core/mvc/views/razor?view=aspnetcore-2.1&branch=pr-en-us-9254#inspect-the-razor-c-class-generated-for-a-view)
- [<= 2.0](https://review.docs.microsoft.com/en-us/aspnet/core/mvc/views/razor?view=aspnetcore-2.0&branch=pr-en-us-9254#inspect-the-razor-c-class-generated-for-a-view)
2018-10-26 16:17:43 -05:00
Charmis Varghese 0a25471bbf Updated vary-by-query (#9249) 2018-10-26 11:51:37 -05:00
Luke Latham 5704de168e Implicit versioning of the All package (#9223)
Fixes #9219 

@JunTaoLuo Dan calls out the implicit versioning "for 2.1 SDK or later;" however, we don't usually version the doc content by SDK release. We might need to say something for this update in the passage that I'm adding to the All topic (*aspnetcore/fundamentals/metapackage.md*) about which SDK version this applies to. I don't know if that's something that you would like to do or what version to call out.

I also remove the version from the samples. We also assume that devs are using the latest SDK with our samples.
2018-10-25 15:16:50 -10:00
Scott Addie 29f0f58eb0
Replace backtick with apostrophe 2018-10-25 15:24:25 -05:00
Dave Brock e4a189b59f Specified where attributes can be applied (#9204)
Fixes #8574
2018-10-24 13:16:43 -10:00
Luke Latham 7120a2f985
Azure Apps troubleshooting title change (#9199) 2018-10-24 14:26:16 -05:00
Mark Iannucci 0c31645670 Added link to the specific file in question in case someone else is c… (#9185)
…onfused about the particular file in question, like I was
2018-10-23 16:23:22 -10:00