Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

razor confirm password validation

public class RegisterViewModel
{
    [Required]
    public string Username { get; set; }

    [Required]
    public string Password { get; set; }

    [Compare("Password", ErrorMessage = "Confirm password doesn't match, Type again !")]
    public string ConfirmPassword { get; set; }
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# remove double quotes from string 
Csharp :: how to do time.deltatime in c# 
Csharp :: c# using file.io 
Csharp :: xamarin hide back button 
Csharp :: c# day of week number 
Csharp :: solidity get address of contract 
Csharp :: c# environment variables 
Csharp :: random.range unity not working 
Csharp :: c# string replace comma with newline 
Csharp :: c# list with 0 initialize 
Csharp :: get any random item in array c# 
Csharp :: c# find largest number in list 
Csharp :: C# tolower all in a array 
Csharp :: gameobject in unity c# 
Csharp :: move files from one directory to another using c# 
Csharp :: get device connected to player input unity 
Csharp :: visual studio console clear 
Csharp :: unity cap fps 
Csharp :: editorfor date format mvc 
Csharp :: how to check datagridview cell is null or empty 
Csharp :: string list to object array in c# 
Csharp :: textbox in xamarin forms 
Csharp :: upgrade asp.net core to 5.0 
Csharp :: item switch unity 
Csharp :: c# nullable string 
Csharp :: unity find object by name recursion 
Csharp :: how to cap rigidbody velocity 
Csharp :: round decimal two places 
Csharp :: unity call function on update once per second 
Csharp :: c# remove char from string 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =