PageRemoteAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A RemoteAttributeBase for razor page handler which configures Unobtrusive validation to send an Ajax request to the web site. The invoked handler should return JSON indicating whether the value is valid.
public ref class PageRemoteAttribute : Microsoft::AspNetCore::Mvc::RemoteAttributeBase
[System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
public class PageRemoteAttribute : Microsoft.AspNetCore.Mvc.RemoteAttributeBase
[<System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
type PageRemoteAttribute = class
inherit RemoteAttributeBase
Public Class PageRemoteAttribute
Inherits RemoteAttributeBase
- Inheritance
- Attributes
Remarks
Does no server-side validation of the final form submission.
Constructors
PageRemoteAttribute() |
Properties
AdditionalFields |
Gets or sets the comma-separated names of fields the client should include in a validation request. (Inherited from RemoteAttributeBase) |
HttpMethod |
Gets or sets the HTTP method ( |
PageHandler |
The handler name used when generating the URL where client should send a validation request. |
PageName |
The page name used when generating the URL where client should send a validation request. |
RouteData |
Gets the RouteValueDictionary used when generating the URL where client should send a validation request. (Inherited from RemoteAttributeBase) |
Methods
AddValidation(ClientModelValidationContext) |
Adds Unobtrusive validation HTML attributes to ClientModelValidationContext. (Inherited from RemoteAttributeBase) |
FormatAdditionalFieldsForClientValidation(String) |
Formats |
FormatErrorMessage(String) | (Inherited from RemoteAttributeBase) |
GetUrl(ClientModelValidationContext) |
Returns the URL where the client should send a validation request. |
IsValid(Object) | (Inherited from RemoteAttributeBase) |