[CLOSED] EmailValidation attribute

  1. #1

    [CLOSED] EmailValidation attribute

    I have the following in one of my models:
    [Required]
    [EmailValidation(Message = "Please enter a valid email.")]
    [Display(Name = "Email")]
    public string Email { get; set; }
    In my view, I have:
    Html.X().TextFieldFor(m => m.Email),
    It works - except that the "Please enter a valid email" validation message shows while I'm actually typing in the email. As soon as I type in the first letter, it appears. Is there any way to suppress it until the blur event?
    Last edited by Daniil; Feb 14, 2013 at 5:09 PM. Reason: [CLOSED]
  2. #2
    Hello!

    Try to set False in ValidateOnChange
  3. #3
    Perfect. Thanks!

Similar Threads

  1. Calendar StartDay attribute bug
    By Rupesh in forum 1.x Help
    Replies: 16
    Last Post: Aug 01, 2013, 6:52 AM
  2. [CLOSED] iframes scr attribute and IE6 in SSL
    By betamax in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Apr 30, 2012, 8:07 PM
  3. ClientConfig Attribute
    By PerfectElement in forum 1.x Help
    Replies: 6
    Last Post: Nov 11, 2011, 4:50 PM
  4. ServerMapping with more attribute
    By Maia in forum 1.x Help
    Replies: 3
    Last Post: Aug 12, 2010, 4:48 PM
  5. [1.0] layouts attribute
    By [WP]joju in forum 1.x Help
    Replies: 2
    Last Post: Nov 12, 2009, 1:41 AM

Posting Permissions