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
-
In earlier versions of ASP.NET, you enable smart navigation by using the Page.SmartNavigation property. When you set the Page.SmartNavigatio...
-
BizTalk Developer Interview Questions and Answers : Schema 1. What is the purpose of a document schema? The schema is basically a contr...
-
Qlikview developer, Designer and admin interview questions (Qlikview developer, Designer and admin FAQ’S) 1. Difference between Set ...
-
-- INSERT INTO OPENROWSET('Microsoft.Jet.OLEDB.4.0', 'Excel 8.0;Database=C:\Book.xls;', 'SELECT Name, Date FROM [Sheet1$...
-
. Go through following link it provides different ways to Debug a Stored Procedure : http://aspnet.4guysfromrolla.com/articles/051607-1.aspx...
No comments:
Post a Comment