lJannetBergn
New Member
i used the gen_validatorv31.js for php forms and its working fine. But when i want to use it for my ASP page its not working properly. Please see my html code in ASP for and help me to identify the problem.My Master page [siteMAster.master]:<html xmlns="http://www.w3.org/1999/xhtml"><head id="Head" runat="server"> <link href="http://stackoverflow.com/questions/13722955/~/Styles/SiteMaster.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="http://stackoverflow.com/questions/13722955/Scripts/form_validatorv31.js"></script> </script> </head><body> <form runat="server" id="abctest"> <div class=MainContentPlaceHolder> <asp:ContentPlaceHolder id="ContentPlaceHolder" runat="server"> </asp:ContentPlaceHolder> </div> </form></body></html>My Test1 Page:<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="ContentPlaceHolder"> <center> <table border="0" cellpadding="5" cellspacing="10" width="40%" style="background-color:#E6E6E6"; > <tr> <td align="right">Name: </td> <td> <asp:TextBox ID="Name" runat="server" Width="200"></asp:TextBox>*</td> </tr> <tr align="center"><td colspan="2"><asp:Button ID="DBSaveButton" runat="server" Text="SAVE" Width="250" Height="40" onclick="DBSaveButton_Click" /></td></tr> <tr style="text-align:center"> <td colspan="2"> <asp:Label ID="DBSaveLabel" runat="server" Text=""></asp:Label> </td> </tr> </table> <script type="text/javascript"> var frmvalidator = new Validator("abctest"); frmvalidator.addValidation("Name", "req", "Please enter your First Name"); </script> </center> </asp:Content>