whathappened9
01-08-2007, 05:42 PM
Hello,
I have a subscribtion page which validates use input using javaScript, if valid info should be sent to server and saved. Until this point it was validating the user input
// this is sub.aspx
<input id="Button1" type="button" value="Submit" runat="server" onclick="validateForm()" />
/// in sub.aspx.cs
Button1.Attributes.Add("onclick", "return validateForm()");
The problem is after I defined Button1_ServerClick in my sub.aspx.cs page to get the info and save it to database. now even the client side validation is not working. could some one please guide how to do this the right way.
I have a subscribtion page which validates use input using javaScript, if valid info should be sent to server and saved. Until this point it was validating the user input
// this is sub.aspx
<input id="Button1" type="button" value="Submit" runat="server" onclick="validateForm()" />
/// in sub.aspx.cs
Button1.Attributes.Add("onclick", "return validateForm()");
The problem is after I defined Button1_ServerClick in my sub.aspx.cs page to get the info and save it to database. now even the client side validation is not working. could some one please guide how to do this the right way.