function EmailValidate() {
var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
var address = document.getElementById("txtEmail").value;
if (reg.test(address) == false) {
alert('Invalid Email Address');
return false;
}
}
asp:TextBox ID="txtEmail" runat="server">
asp:Button ID="Button1" runat="server" Text="Validate" OnClientClick="return Validate();"
Solution for the QlikView, Biztalk, DotNet and MSBI real time development problems
Search This Blog
Tuesday, July 26, 2011
Subscribe to:
Post Comments (Atom)
Popular Posts
-
Qlikview developer, Designer and admin interview questions (Qlikview developer, Designer and admin FAQ’S) 1. Difference between Set ...
-
When building controls dynamically which compose of sub-controls you can sometimes run into an problem where windows throws a “Error creati...
-
In earlier versions of ASP.NET, you enable smart navigation by using the Page.SmartNavigation property. When you set the Page.SmartNavigatio...
-
Within a class, const , static and readonly members are special in comparison to the other modifiers. const vs. readonly const ...
-
SQL Server Integration Services (SSIS) Interview Questions What is SQL Server Integration Services (SSIS)? SQL Server Integration S...
No comments:
Post a Comment