validation Archives

Pass the Data to Custom Validation attribute in MVC C#

Author - Harleen Kaur
|
0 Comments
|

How to Pass the Data to Custom Validation attribute in MVC C#?

Introduction

.Net provides the capability of validating model data with validation attributes like Required, Compare, Regular Expression, and user-defined custom attributes (also known as data annotations C#). MVC .net provides the built-in Read more…

Validation vs. Application Rules In CakePHP

Author - Pawandeep Kaur
|
0 Comments
|

CakePHP uses a two-layered approach to validation:

1. Validation
It determines basic validity. It ensures that the data types, size, and format of data are correct. When we call newEntity() or patchEntity() methods, validations are triggered. For example, checking if an email address Read more…

Authorization Attribute Validation Issue

Author - Webner
|
0 Comments
|

Authorization attribute validation Issue: 404 status code is returned instead of 401 status code

In my application, I was using an API service to be used by external applications, where I needed to implement the authorization of valid requests by validating the supplied token in the Read more…