Commit Graph

120 Commits (6da4a8c0043a20e7bc4a4df599d589f0641afdc1)

Author SHA1 Message Date
Natalie Akam 12c71c9f3b Fix nameof arguments in User model (#13216) 2019-07-10 14:56:12 -06:00
Rick Anderson bb878baddc
Update model-binding.md (#13212) 2019-07-09 19:54:17 -06: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
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
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
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 068d6f58bb typo: Optinally -> Optionally (#11552) 2019-03-19 09:45:10 -05:00
lindexi 472d9d0203 Fix format (#10993) 2019-02-17 20:51:23 -06:00
Rick Anderson fad53dba86
show IValidatableObject (#10927)
Fixes #10923
2019-02-13 09:57:29 -10: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
Scott Addie 8caa93e2fb
Restore missing Model State code snippet (#10199) 2019-01-04 10:28:27 -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
Steve Gordon 8b84b42a5f Fixing the wording of a sentence (#9569) 2018-11-13 08:34:37 -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
Rick Anderson 0ee6b101d9
delete map and min files (#9310) 2018-10-31 14:26:48 -10:00
Rick Anderson 2922d040bd Update validation.md (#9316)
* Update validation.md

* Update validation.md
2018-10-30 15:47:39 -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
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
Luke Latham 46f41d4774
Update All and App package versions (#8513) 2018-09-13 11:39:23 -05:00
Luke Latham 1a0f79a8fe
Update All/App package version (#8489) 2018-09-11 08:53:03 -05:00
Luke Latham f85202290b Remove HTTP links to Microsoft (#8353)
Fixes #8350
2018-08-30 11:48:27 -07:00
Luke Latham 232d345f9e
Specify "Core" for ASP.NET Core refs (#8110) 2018-08-15 22:30:29 -05:00
Pranav K 187185eeaa Add some details about ModelMetadataDetailsProvider (#8076)
* Add some details about ModelMetadataDetailsProvider

* Edit pass
2018-08-14 15:58:20 -05:00
John Osborne c2be9e481a Paramater naming convention fix (#8023)
The parameter should be camelCase.
2018-08-10 09:25:53 -05:00
Scott Addie 27e907f3ba
Remove unnecessary jQuery document.ready call (#7899)
Fixes https://github.com/aspnet/Docs/issues/7894

Also incorporated a few Acrolinx suggestions while I was in there.

[Internal Review Page](https://review.docs.microsoft.com/en-us/aspnet/core/mvc/models/validation?view=aspnetcore-2.1&branch=pr-en-us-7899#iclientmodelvalidator)
2018-07-31 11:57:38 -05:00
Scott Addie cb24febfda
Update author metadata fields to Tom (#7652)
Updates the `ms.author` and `author` metadata fields to Tom's user ID.
2018-07-16 15:09:39 -05:00
Scott Addie 09d7e5d4e8
Metadata updates to MVC docs (#7150) 2018-06-19 15:47:26 -05:00
Luke Latham 75d354fe18 Show GetErrorMessage in Model validation topic (#6911) 2018-06-07 11:12:09 +02:00
Luke Latham 7048bb8fbf API link updates (#6149)
* API link updates

Updates

One more!

Fix bookmark

Mo updates

More updates

Updates

Updates

* Update action-return-types.md

* Update index.md

* Update concurrency.md

* Update intro.md

* Update localization.md

* Update search.md
2018-05-02 14:45:06 -05:00
Scott Addie 265c04a130
Remove extra space in link syntax 2018-05-01 12:51:19 -05:00
user135711 1584a58c9b Change jquery onready to IIFE (#6094)
* Changed unobtrusive call from onready to IIFE

* Convert to shorthand document.ready function
2018-04-30 14:16:38 -05:00
user135711 13c437817e documentation for unobtrusive methods (#6096)
This blog post was all I could find for official api documentation without wasting an hour reading the 400 line unobtrusive.js file in the projects. This example makes now sense without this link (perhaps the information should be reproduced here in case it's taken down).
2018-04-26 14:17:38 -10:00
MelnikovIG e07a9ad2c8 Fix ValidationSample project compilation (#6050) 2018-04-22 19:35:50 -10:00
Scott Addie b2cdf7ff05
Relocate advanced MVC docs to Web API TOC (#5859) 2018-04-02 15:22:30 -04:00
Luke Latham bdb6d7cafc Title, description, and H1 updates (4) (#5745)
* Title, description, and H1 updates (4)

* Updates

* Updates

* Drop gerunds and update link text

* Update

* Update next.md

* Update routing.md
2018-03-21 14:18:35 -10:00
Luke Latham 6b0cf1247f Title, description, and H1 updates (2) (#5697)
Updates
2018-03-14 16:51:34 -10:00
Luke Latham f047169540 Drop [Main] from snippet references (#5547) 2018-02-24 10:08:11 -06:00
Dan Vicarel afdf3729e1 Fixed a jQuery error on the Model validation page (#5377) 2018-02-06 12:25:33 -06:00
Antoine Griffard 42c5c48cd7 Typo in MVC Model Validation (#5362)
however they wish => as they whish

Fixes #5361
2018-02-03 09:21:43 -10:00
Luke Latham abbe642741 Organize metadata (#5296)
Updates
2018-01-29 09:21:31 -06:00
Luke Latham 8e33d0e94e Remove redirected topic files (#5299)
Updates
2018-01-29 09:15:04 -06:00
Luke Latham fa24342f38 Remove smart quotes (#5294) 2018-01-28 15:49:15 -06:00
Luke Latham 313486d76f Taming the savage contraction issue (#5216)
* Form contractions

* Revert two contractions

* Additional reversions

* Additional reversions

* Additional revisions

* Additional revisions

* React to feedback
2018-01-24 09:27:24 -06:00
Luke Latham 1dd1a7fc8a
Remove localization segment from links (#5254) 2018-01-23 19:12:57 -06:00