阅读背景:

ASP.NET MVC 3远程验证允许原始值

来源:互联网 

I have a Remote attribute on the email property of my User model. When I create a new user, it works create and tells the users that an e-mail is already in use. Now I'm having a problem in my editing form (if the user wants to updates values). It tells the user that his/her e-mail is already in use, I don't want it to give that message when the e-mail that's in use is the one that's registered to the user. How can I tweak the Remote attribute to behave?I have a Remote attribute on the email property




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: