ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2017 www.aspforums.com. All rights reserved.Zoom and center on a Location in Google Maps using JavaScript<p>i want the map to be zoomed on the city which i select from the dropdownlist. how should i do that?</p>http://www.aspforums.net/Threads/175235/Zoom-and-center-on-a-Location-in-Google-Maps-using-JavaScript/http://www.aspforums.net/Threads/175235/Zoom-and-center-on-a-Location-in-Google-Maps-using-JavaScript/Wed, 08 Apr 2015 01:41:05 GMTXSLTProcessor is undefined error in IE11 browser<p><span id="ContentPlaceHolder1_lblDescription" class="v11" style="color: darkblue;"><span style="color: black; font-family: Verdana,Arial,Helvetica,sans-serif;">I face a problem with XML in IE11 Browser. When I generate dynamically XML it show me following error:<br /><br />Reference error:'XSLTProcessor is undefind'</span></span></p> <p>This is my code:</p> <pre class="brush: csharp">if (window.ActiveXObject || window.ActiveXObject !== undefined) return xmlData.transformNode(xsltData); else if(document.implementation &amp;&amp; document.implementation.createDocument) { var xsltProcessor = new XSLTProcessor(); xsltProcessor.importStylesheet(xsltData); return xsltProcessor.transformToFragment(xmlData, document); } } catch(e) { alert(e); } return null;</pre> <p>Please try to solve my problem.</p> <p>Thanks &amp; Regards</p> <p>Lakhbir chandel</p>http://www.aspforums.net/Threads/154844/XSLTProcessor-is-undefined-error-in-IE11-browser/http://www.aspforums.net/Threads/154844/XSLTProcessor-is-undefined-error-in-IE11-browser/Sat, 15 Feb 2014 00:54:59 GMTWhy the Jquery doesnt work when I move the code into a separate .js file<p>Hello, I have follow this post and the code works well if i put it under the same page in the script section.</p> <p><a href="http://www.aspsnippets.com/Articles/Create-dynamic-textbox-using-JavaScript-in-ASP.Net.aspx">http://www.aspsnippets.com/Articles/Create-dynamic-textbox-using-JavaScript-in-ASP.Net.aspx</a><br /><br /><br />However, if i move to a separate js file call admin-btn.js and then it gives me error when it comes to this part of code:<br />&nbsp;</p> <p><em>&nbsp;function RecreateDynamicTextboxes() {</em><br /><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var values = eval('&lt;%=Values%&gt;');</em><br /><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (values != null) {</em><br /><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var html = "";</em><br /><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for (var i = 0; i &lt; values.length; i++) {</em><br /><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; html += "&lt;div&gt;" + GetDynamicTextBox(values[i]) + "&lt;/div&gt;";</em><br /><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</em><br /><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; document.getElementById("TextBoxContainer").innerHTML = html;</em><br /><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</em><br /><em>&nbsp;&nbsp;&nbsp; }</em></p> <p>The message is about sytax error in runtime (sorry it was in chinese..)</p> <p>Microsoft JScript 執行階段錯誤: 語法錯誤</p> <p>&nbsp;</p> <p>i have put all the code inside here in admin-btn.js<br />$(document).ready(function () {</p> <p>//All codes</p> <p>});</p> <p>&nbsp;</p> <p>Can anyone help me on this? THanks!</p>http://www.aspforums.net/Threads/182392/Why-the-Jquery-doesnt-work-when-I-move-the-code-into-a-separate-js-file/http://www.aspforums.net/Threads/182392/Why-the-Jquery-doesnt-work-when-I-move-the-code-into-a-separate-js-file/Sun, 11 Mar 2012 11:18:31 GMTWhen Item Clicked in Marquee Page should move to that section<p>hi</p> <p>I am making a webpage on which there is product List if client click on any image of product it should redirect to product.aspx page</p> <p>My question is if he click to 1st image of product it should highlight to that product details.</p> <p>and vice versa</p> <p>.</p>http://www.aspforums.net/Threads/108060/When-Item-Clicked-in-Marquee-Page-should-move-to-that-section/http://www.aspforums.net/Threads/108060/When-Item-Clicked-in-Marquee-Page-should-move-to-that-section/Sat, 08 Dec 2012 06:35:47 GMTWhen Anchor link goto button of page<p>hi every one</p> <p>i have button in my page i want when user click on button it go to other part of page EX:button is on top of page i want when user click on button it go to bottom of page.</p> <p>how i can do it</p> <p>&nbsp;</p>http://www.aspforums.net/Threads/182248/When-Anchor-link-goto-button-of-page/http://www.aspforums.net/Threads/182248/When-Anchor-link-goto-button-of-page/Wed, 28 Mar 2012 22:29:20 GMTWebsite to Learn JavaScript<p>Hi Sir,</p> <p>I don't know thw javascript. suggest some link to learn javascript for reqular expression,required field and etc.</p> <p>&nbsp;</p>http://www.aspforums.net/Threads/181640/Website-to-Learn-JavaScript/http://www.aspforums.net/Threads/181640/Website-to-Learn-JavaScript/Sat, 21 Jul 2012 10:33:37 GMTWatermark ASP.Net TextBox Control using JavaScript<p>I want to display default text in gray in ASP.Net TextBox. It should clear on focus.</p>http://www.aspforums.net/Threads/398840/Watermark-ASPNet-TextBox-Control-using-JavaScript/http://www.aspforums.net/Threads/398840/Watermark-ASPNet-TextBox-Control-using-JavaScript/Sat, 03 Dec 2011 03:18:18 GMTView more or Read more Link using jQuery and JavaScript in ASP.Net<p>view more data link and when click that link view all detail what is javascript or jqueary?</p> <p>&nbsp;</p>http://www.aspforums.net/Threads/104196/View-more-or-Read-more-Link-using-jQuery-and-JavaScript-in-ASPNet/http://www.aspforums.net/Threads/104196/View-more-or-Read-more-Link-using-jQuery-and-JavaScript-in-ASPNet/Fri, 27 Apr 2012 04:59:10 GMTValidation to Allow only Alphabets and Space using Regular Expression and JavaScript<p>how to put validation for city or state text box using mvc razor or jquery</p> <p>ex: city text box has to accept only strings and it has to allow space like "andhra pradesh"&nbsp;</p> <p>&nbsp;</p>http://www.aspforums.net/Threads/248414/Validation-to-Allow-only-Alphabets-and-Space-using-Regular-Expression-and-JavaScript/http://www.aspforums.net/Threads/248414/Validation-to-Allow-only-Alphabets-and-Space-using-Regular-Expression-and-JavaScript/Thu, 02 May 2013 05:36:08 GMTValidation to accept only numbers in TextBox using JavaScript or jQuery<p>sir i want to apply validation using jquery and java script like-</p> <p>1. only int value allow.</p> <p>2. decimal value should take only two digits after decimal point.</p> <p>3.only char value</p> <p>....................etc.</p> <p>&nbsp;</p> <p>&nbsp;</p>http://www.aspforums.net/Threads/156848/Validation-to-accept-only-numbers-in-TextBox-using-JavaScript-or-jQuery/http://www.aspforums.net/Threads/156848/Validation-to-accept-only-numbers-in-TextBox-using-JavaScript-or-jQuery/Mon, 07 Jul 2014 03:46:24 GMTValidate Time format with AM PM using JavaScript and Regular Expressions<p>I am trying to add a validation to dynamically added textboxes. The textbox should allow input of type (e.g)11:30 AM/PM No strings other than that should be entered. How can I achieve that? Below is the code for length validation of the input field.</p> <p>&nbsp;</p> <pre class="brush: js">function ValidateAddTime(txt, keyCode) { var val = txt.value; var lblmesg = document.getElementById(&#34;&lt;%=lblMesg.ClientID%&gt;&#34;); if (val.length &lt; 8 || val.length &gt; 8) { lblmesg.style.color = &#34;red&#34;; lblmesg.innerHTML = &#34;Required Format: hh:mm AM|PM&#34;; } else { lblmesg.innerHTML = &#34;&#34;; } //Add text box function function GetDynamicTextBox(value) { return &#39;&lt;input name = &#34;DynamicTextBox&#34; type=&#34;text&#34; value = &#34;&#39; + value + &#39;&#34; onkeyup = &#34;ValidateAddTime(this, event.keycode)&#34; /&gt;&#39; + &#39;&lt;input type=&#34;button&#34; value=&#34;Remove&#34; onclick = &#34;RemoveTextBox(this)&#34; /&gt;&#39; }</pre> <p>&nbsp;</p>http://www.aspforums.net/Threads/139509/Validate-Time-format-with-AM-PM-using-JavaScript-and-Regular-Expressions/http://www.aspforums.net/Threads/139509/Validate-Time-format-with-AM-PM-using-JavaScript-and-Regular-Expressions/Wed, 22 Jan 2014 22:17:52 GMTValidate TextBox on FocusOut (Blur) without using Buttons using JavaScript or jQuery<p>hi i want validate my registration page ...without onclick or onsubmit function i validate each textbox...i am using external js.how to i call that function?&nbsp;instead of onclick or onsubmit&nbsp;?</p>http://www.aspforums.net/Threads/134205/Validate-TextBox-on-FocusOut-Blur-without-using-Buttons-using-JavaScript-or-jQuery/http://www.aspforums.net/Threads/134205/Validate-TextBox-on-FocusOut-Blur-without-using-Buttons-using-JavaScript-or-jQuery/Thu, 25 Feb 2016 23:17:04 GMTValidate TextBox inside EditItemTemplate of DetailsView using JavaScript in ASP.Net<p>How can we pass or find an ID when using getElementById in a detailsView and Edit-ItemTemplate</p> <p>&nbsp;</p> <p>I am trying to find the elements</p> <p>ie textboxes and labels. I am trying to do a character count on the textboxes using getElementById..Is there another way</p>http://www.aspforums.net/Threads/117986/Validate-TextBox-inside-EditItemTemplate-of-DetailsView-using-JavaScript-in-ASPNet/http://www.aspforums.net/Threads/117986/Validate-TextBox-inside-EditItemTemplate-of-DetailsView-using-JavaScript-in-ASPNet/Tue, 07 Apr 2015 06:42:05 GMTValidate Numbers and also Mimimum and Maximum Length of characters for TextBox using JavaScript<p>Hi all,<br /> &nbsp;<br /> I have to do numbers validation using javascript, In that i have few douts about javascript, My application flow should like this,<br />i have one textbox which i validate to allow only digits , in digits i have allow up to 10,11 digits only but in my javascript code which cannot allow characters which is allowed only numbers thats i need But its cannot allow upto 10,11 digits, please find out the below code,</p> <p>&nbsp;</p> <p>javascript:</p> <pre class="brush: js">&lt;script type=&#34;text/javascript&#34;&gt; function validate() { var Tel = document.getElementById(&#34;&lt;%=TextBox1.ClientID%&gt;&#34;) if(Tel.value == &#34;&#34;) { alert(&#34;Enter Your Telephone No&#34;); Tel.focus(); return false; } var emailPat = /d[10,11]+$/; var emailid=Tel.value; var matchArray = emailid.match(emailPat); if (matchArray == null) { alert(&#34;It allows only digits (10-11 digits)&#34;); Tel.focus(); return false; } } &lt;/script&gt;</pre> <p></p> <p>&nbsp;</p> <p>&nbsp;</p>http://www.aspforums.net/Threads/171988/Validate-Numbers-and-also-Mimimum-and-Maximum-Length-of-characters-for-TextBox-using-JavaScript/http://www.aspforums.net/Threads/171988/Validate-Numbers-and-also-Mimimum-and-Maximum-Length-of-characters-for-TextBox-using-JavaScript/Mon, 22 Oct 2012 09:11:57 GMTValidate Multiple Select DropDownList using JavaScript on single Button Click<p>&nbsp;there more than 1 dropdown controls&nbsp;used</p>http://www.aspforums.net/Threads/795700/Validate-Multiple-Select-DropDownList-using-JavaScript-on-single-Button-Click/http://www.aspforums.net/Threads/795700/Validate-Multiple-Select-DropDownList-using-JavaScript-on-single-Button-Click/Tue, 25 Dec 2012 22:57:21 GMTValidate three dropdown lists control conditionally using JavaScript and ASP.Net Custom Validator<div style="background-color: #dddddd; border-left: 5px solid #999999; margin: 15px 15px 15px 30px; width: 95%;"> <div style="border: 10px solid #dddddd;"> <p>Hi I want to validate three dropdown lists the value of dropdown list fetched from sql database . The&nbsp; folowing code i am using , it does not give any error&nbsp; but not working ,please help</p> </div> </div> <pre class="brush: csharp">aspx code: &lt;head&gt; <br />&lt;script type=&#34;text/javascript&#34; &gt;<br />&nbsp;function CustomValidateBatch(sender, args) {<br />var yr1 = document.getElementById(&#34;ddlBYear1&#34;); <br />var yr2 = document.getElementById(&#34;ddlBYear2&#34;); <br />var brnch = document.getElementById(&#34;ddlbranch&#34;); <br />branch1=brnch[e.selectedIndex].value; if ( branch1 = &#34;MCA&#34;) { <br />( (document.getElementById(&#39;ddlBYear2&#39;).selectedIndex) - (document.getElementById(&#39;ddlBYear1&#39;).selectedIndex) == 3); {<br />} args.IsValid = true; } else args.IsValid = false; <br />} &lt;/script&gt; <br />&lt;/head&gt; <br />&lt;body&gt; <br />&lt;form id=&#34;form1&#34; runat=&#34;server&#34;&gt; <br />&lt;div&gt; &lt;tr&gt; &lt;td&gt; Branch : &lt;/td&gt; <br />&lt;td&gt; &lt;asp:DropDownList ID=&#34;ddlbranch&#34; runat=&#34;server&#34; OnSelectedIndexChanged=&#34;ddlbranch_SelectedIndexChanged&#34; AutoPostBack=&#34;true&#34;&gt; <br />&lt;/asp:DropDownList&gt; &lt;/td&gt; &lt;td&gt; <br />&lt;asp:CustomValidator ID=&#34;CustomValidator5&#34; runat=&#34;server&#34; ErrorMessage=&#34;please select branch&#34; ClientValidationFunction=&#34;ValidateBranch&#34; ValidationGroup=&#34;one&#34;&gt;<br />&lt;/asp:CustomValidator&gt; &lt;/td&gt; &lt;/tr&gt; <br />&lt;tr&gt; &lt;td&gt; Batch : &lt;/td&gt; <br />&lt;td&gt; &lt;asp:DropDownList ID=&#34;ddlBYear1&#34; runat=&#34;server&#34; AutoPostBack=&#34;true&#34; OnSelectedIndexChanged=&#34;ddlBYear1_SelectedIndexChanged&#34;&gt; &lt;/asp:DropDownList&gt; &lt;/td&gt; <br />&lt;td&gt; &lt;asp:DropDownList ID=&#34;ddlBYear2&#34; runat=&#34;server&#34; AutoPostBack=&#34;true&#34; OnSelectedIndexChanged=&#34;ddlBYear2_SelectedIndexChanged&#34;&gt; &lt;/asp:DropDownList&gt;<br />&nbsp;&lt;td&gt; &lt;/td&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; &lt;/td&gt; &lt;td&gt;<br />&nbsp;&lt;asp:CustomValidator ID=&#34;CustomValidator6&#34; runat=&#34;server&#34; ErrorMessage=&#34;please select start year !&#34; ClientValidationFunction=&#34;ValidateBYear1&#34; ValidationGroup=&#34;one&#34;&gt;&lt;/asp:CustomValidator&gt; &lt;/td&gt;<br />&nbsp;&lt;td&gt; &lt;asp:CustomValidator ID=&#34;CustomValidator7&#34; runat=&#34;server&#34; ErrorMessage=&#34;please select end year&#34; ClientValidationFunction=&#34;ValidateBYear2&#34; ValidationGroup=&#34;one&#34;&gt;&lt;/asp:CustomValidator&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt;<br />&lt;td&gt;&lt;/td&gt; &lt;td&gt; &lt;asp:CustomValidator ID=&#34;CustomValidator8&#34; runat=&#34;server&#34; ErrorMessage=&#34;Start year must be less from End year&#34; ControlToValidate=&#34;ddlBYear1&#34; ValidationGroup=&#34;one&#34; ClientValidationFunction=&#34;CustomValidate&#34;&gt;<br />&lt;/asp:CustomValidator&gt; &lt;/td&gt;&lt;td&gt; <br />&lt;%-- &lt;asp:CustomValidator ID=&#34;CustomValidator9&#34; runat=&#34;server&#34; ClientValidationFunction=&#34;CustomValidateBatch&#34; ControlToValidate=&#34;ddlBYear2&#34; ValidateEmptyText=&#34;true&#34; ErrorMessage=&#34;Batch Not valid&#34; &gt;&lt;/asp:CustomValidator&gt;--%&gt; <br />&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;asp:Button ID=&#34;but_Submit&#34; runat=&#34;server&#34; OnClick=&#34;but_Submit_Click&#34; Text=&#34;Continue&#34; <br />ValidationGroup=&#34;one&#34; /&gt; &lt;/div&gt; &lt;/form&gt; &lt;/body&gt;</pre> <p>&nbsp;</p>http://www.aspforums.net/Threads/882302/Validate-three-dropdown-lists-control-conditionally-using-JavaScript-and-ASPNet-Custom-Validator/http://www.aspforums.net/Threads/882302/Validate-three-dropdown-lists-control-conditionally-using-JavaScript-and-ASPNet-Custom-Validator/Wed, 16 May 2012 23:11:36 GMTValidate multiple ASP.Net TextBoxes using JavaScript and List the empty TextBoxes in alert box<p>Would like to know the concept behind the working of the URL below:<br /> &nbsp;<br /> www.tradeshows.tradeindia.com/musician-expo2013/register.html<br /> &nbsp;<br /> If any user clicks on the submit button without filling any information then a javascript pop up appears and all the important fields that has to displayed is shown one by one, I am aware about alert function of javascript but not aware to validate multiple textbox's using javascript.How to achieve this?</p> <p>In the above mentioned URL directly click on the the submit button, you will understand what exactly I want.</p> <p>&nbsp;</p>http://www.aspforums.net/Threads/847354/Validate-multiple-ASPNet-TextBoxes-using-JavaScript-and-List-the-empty-TextBoxes-in-alert-box/http://www.aspforums.net/Threads/847354/Validate-multiple-ASPNet-TextBoxes-using-JavaScript-and-List-the-empty-TextBoxes-in-alert-box/Mon, 12 Nov 2012 10:14:56 GMTValidate File Size and Extension of File to be uploaded using jQuery or JavaScript<p>w to find the file size and file extension of th uploded file in javascript or jquery</p>http://www.aspforums.net/Threads/205666/Validate-File-Size-and-Extension-of-File-to-be-uploaded-using-jQuery-or-JavaScript/http://www.aspforums.net/Threads/205666/Validate-File-Size-and-Extension-of-File-to-be-uploaded-using-jQuery-or-JavaScript/Tue, 10 Jun 2014 02:18:02 GMTValidate fake email addresses using Regular Expression and Custom Validator in ASP.Net<p>Hi,&nbsp;</p> <p>i am working in asp.net 4.5 and i am working on registration page. i have email field on my page i am using below regex for check email validation.</p> <p>&nbsp;</p> <pre class="brush: html">&lt;asp:TextBox ID=&#34;txtEmailAddress&#34; runat=&#34;server&#34; ValidationGroup=&#34;Registration&#34; autocomplete=&#34;off&#34; /&gt; &lt;asp:RequiredFieldValidator ID=&#34;reqfvUsername&#34; runat=&#34;server&#34; ControlToValidate=&#34;txtEmailAddress&#34; ErrorMessage=&#34;Field Required&#34; Display=&#34;Dynamic&#34; ValidationGroup=&#34;Registration&#34; ForeColor=&#34;Red&#34;&gt; &lt;asp:RegularExpressionValidator ID=&#34;regexEmailAddress&#34; runat=&#34;server&#34; ValidationGroup=&#34;Registration&#34; ForeColor=&#34;Red&#34; ErrorMessage=&#34;Invalid email address&#34; ControlToValidate=&#34;txtEmailAddress&#34; ValidationExpression=&#34;(?!(alpha|beta|ALPHA|BETA)@email\.com|email@(msn|yahoo|MSN|YAHOO)\.com|(testing|TESTING)@gmail\.com|.*@(yesmail|YESMAIL)\.com)^\w+([-+.&#39;]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$&#34; Display=&#34;Dynamic&#34;&gt; &lt;asp:Button ID=&#34;btnRegister&#34; runat=&#34;server&#34; Text=&#34;Register&#34; ValidationGroup=&#34;Registration&#34; /&gt;</pre> <p>for example, if the email contains</p> <p><a href="mailto:alpha@emailcom">alpha@email.com</a>&nbsp;</p> <p><a href="mailto:beta@email.com">beta@email.com</a></p> <p><a href="mailto:email@yahoo.com">email@yahoo.com</a></p> <p><a href="mailto:email@yahoo.com/email@msn.com">email@msn.com</a>&nbsp;</p> <p>testing@gmail.com</p> <p>then i want to throw invalid email address message. can it be done using regular expression? please show me some sample code.</p> <p>this is working fine for the lowe case. for uppercase /mixed case its not working. how can i make it to case insensitive? any suggestions or samples please</p>http://www.aspforums.net/Threads/558679/Validate-fake-email-addresses-using-Regular-Expression-and-Custom-Validator-in-ASPNet/http://www.aspforums.net/Threads/558679/Validate-fake-email-addresses-using-Regular-Expression-and-Custom-Validator-in-ASPNet/Sat, 11 Oct 2014 23:39:29 GMTValidate email using JavaScript and Regular Expression not working in ASP.Net<p>hi all,<br /> am new in javascript.<br /> i have used to develop one asp.net application.<br /> here i have make it used one validation process using java script.<br /> i need to validate my email address.<br /> if my email address is valid, i have redirect to another page.<br /> if my email address is not valid, am getting invalid mail id.<br /> but my problem is,<br /> if my email address is valid, i can't able to redirect to another page. please find the code below<br /> and let me know where am made mistake or else give me a valid code.<br /> &nbsp;<br /> my code:</p> <p>&nbsp;</p> <pre class="brush: js">&lt;%@ Page Language=&#34;C#&#34; AutoEventWireup=&#34;true&#34; CodeFile=&#34;Default2.aspx.cs&#34; Inherits=&#34;Default2&#34; %&gt; &lt;!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#34;&gt; &lt;html xmlns=&#34;http://www.w3.org/1999/xhtml&#34; &gt; &lt;head runat=&#34;server&#34;&gt; &lt;title&gt;Untitled Page&lt;/title&gt; &lt;script type=&#34;text/javascript&#34;&gt; function validEmail() { var mail = document.getElementById(&#39;email&#39;).value; // where `mail` is id of your input form var email = /^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/; if (mail.match(email)) { window.location=&#34;Default3.aspx&#34;; } else { alert(&#34;Invalid Email !!!&#34;); return false; } return true; } &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;form id=&#34;form1&#34; name=&#34;form1&#34; action=&#34;&#34; method=&#34;post&#34; runat=&#34;server&#34;&gt; &lt;div&gt; &lt;input type=&#34;text&#34; name=&#34;email&#34; id=&#34;email&#34;&gt; &lt;asp:Button ID=&#34;Button1&#34; runat=&#34;server&#34; OnClientClick=&#34;return validEmail()&#34; Text=&#34;Button&#34; OnClick=&#34;Button1_Click&#34; /&gt; &lt;/div&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt;<br /><br />thanks in advance </pre> <p>&nbsp;</p>http://www.aspforums.net/Threads/497384/Validate-email-using-JavaScript-and-Regular-Expression-not-working-in-ASPNet/http://www.aspforums.net/Threads/497384/Validate-email-using-JavaScript-and-Regular-Expression-not-working-in-ASPNet/Wed, 19 Mar 2014 05:55:27 GMT