private void cmdConfirm_Click(object sender, System.EventArgs e)
{
string pattern = @"\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*";
string strEmail = TextBox1.Text.Trim();
if( System.Text.RegularExpressions.Regex.IsMatch(strEmail ,pattern) )
{
Response.Write("<script>alert('正确!');</script>"); }
else
{
Response.Write("<script>alert('错误!');</script>"); }
}