Currently working to maintain and develop applications in ASP.NET Core
- Edmonton, AB
Pinned Loading
-
SelectListItem Extension Methods for...
SelectListItem Extension Methods for DropDowns in MVC Core. Added ability to specify the option's Group, and for some bug fixes, more XML docs 1public static class SelectListExtensionMethods
2{
3/// <summary>
4/// The SelectListItem to use by default as the placeholder for select lists generated by these extension methods when the user needs to pick a value.
5/// </summary>
-
Updated implementation of `BeginColl...
Updated implementation of `BeginCollectionItem` to support nesting, not ignore the original `HtmlFieldPrefix`, and also provide overloads to let me decide the ID to use. Refactored to be a bit cleaner 1public static class CollectionEditingHtmlExtensions
2{
3/// <summary>
4/// Begins a collection item by inserting a hidden field for the index value
5/// </summary>
-
Attribute to mark properties backed ...
Attribute to mark properties backed by primitive types or structs (int, DateTime, Guid, etc) as requiring a value other than their default value. `RequireNonDefaultAttribute` alone is enough for Server side validation. If you want to use this for client side as well, you'll need the other files too. 1using System.ComponentModel.DataAnnotations;
2using Microsoft.AspNetCore.Mvc.DataAnnotations;
3using Microsoft.Extensions.Localization;
45public class CustomValidationAttributeAdapterProvider : IValidationAttributeAdapterProvider
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.