用验证控件然后把xrll() 的正则表达式加入就可以了.

解决方案 »

  1.   

    使用正则表达式:\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*
      

  2.   

    string pattern = @"\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*";
    string strEmail = "xrascal@163com";
    if( Regex.IsMatch(strEmail ,pattern) )
    {
    Response.Write(" Match !");
    }
    else
    {
    Response.Write(" that is wrong !");
    }
      

  3.   

    //添加命名空间
    using System.Text.RegularExpressions;
    if(Regex.IsMatch(Email输入框.Text,@"\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*")) 
    {
    正确
    }
    else
    {
    错误
    }
      

  4.   

    晕,用验证控件中不是有这个选项吗???
    \w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*
      

  5.   

    Function IsValidEmail(ByVal processMail As System.String) As System.Boolean   Return System.Text.RegularExpressions.Regex.IsMatch(processMail, "^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))" & _
                            "([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$")
    End Function
      

  6.   

    Valid Email Addresses
    http://www.codeproject.com/useritems/Valid_Email_Addresses.asp