using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using WebValidation.Common;
using System.Web.Mvc;
namespace WebValidation.Models
{
[MetadataType(typeof(EmployeeMetaData))]
public partial class Employee
{
[System.Web.Mvc.Compare("Email")]
public string ConfirmEmail { get; set; }
}
This is my code for confirming email address, but after I run my application, the confirm email always say that it doesn't match with email address. Although I have copy email and paste on confirm email, it still said not match!
Anyone tell me what's the problem?
Aucun commentaire:
Enregistrer un commentaire