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 ...
-
The typical way of testing WCF services is to create a test project, add a service reference to the project, and then write a test agains...
-
.Net Integration with Bill Desk Payment Gateway Introduction: Now-a-days online shopping websites has become very popular, and to h...
-
@foreach (var item in Model), Object reference not set to an instance of an object in MVC Razor ViewIndex.cshtml @model IEnumerable <RazorEngineMVC.Models. User > @{ ViewBag.Title = "Index" ; } < h2 &...
-
By default using the LINQ to SQL DataContext design surface (or the SQL Metal command line tool), all parameters are created for a Stored Pr...
No comments:
Post a Comment