01.<script type="text/javascript" >
02. function CheckEmail()
03. {
04. var strEmail1 = document.getElementById('<%=TextBox1.ClientID%>').value;
05. var strEmail2 = document.getElementById('<%=TextBox2.ClientID%>').value;
06. var objRegex = /(^[a-z]([a-z_\.]*)@([a-z_\.]*)([.][a-z]{3})$)|(^[a-z]([a-z_\.]*)@([a-z_\.]*)(\.[a-z]{3})(\.[a-z]{2})*$)/i;
07.
08. if((objRegex.test(strEmail1) == true) && (objRegex.test(strEmail2) ==true))
09. {
10. if(strEmail1 == strEmail2)
11. {
12. //Here Both Are Exact Match, So Write Here Your Code...
13. alert("Both Values Are Exact Match.");
14. }
15. else
16. {
17. alert("Both Values Are Not Exact Match.");
18. }
19. }
20. else
21. {
22. alert("Please Enter Email Address.");
23. }
24. }
25.</script>