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
-
Confirmation box from code behind c# using modalpopup ajax control <% @ Page Language ="C#" AutoEventWireup ="true...
-
WWF Related Sites (No need to search for WWF): http://aspalliance.com/1074_An_Introduction_to_Windows_Workflow_Foundation.all http://www.cod...
-
WCF offers immensely valuable support for reliability, transactions, concurrency management, security, and instance activation, all of w...
-
In earlier versions of ASP.NET, you enable smart navigation by using the Page.SmartNavigation property. When you set the Page.SmartNavigatio...
-
If you place a file with this name ( app_offline.htm ) in the root of a web application directory, ASP.NET 2.0 will shut-down the applica...
No comments:
Post a Comment