Form Validation Trouble

Dragon BoY

New Member
I read the article on Forum validation. I copied the code. I received the following error.<BR><BR>Your help is valued and appreciated....<BR><BR>Compilation Error <BR>Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. <BR><BR>Compiler Error Message: BC30456: 'btnSubmit_OnClick' is not a member of 'ASP.validation_aspx'.<BR><BR>Source Error:<BR><BR> <BR><BR>Line 32: <BR>Line 33: <TR><TD COLSPAN=3 ALIGN=CENTER><BR>Line 34: <asp:button type="submit" name="btnSubmit" onclick="btnSubmit_OnClick" text="Submit Form!" runat="server"/><BR>Line 35: </TD></TR><BR>Line 36: </TABLE><BR> <BR><BR>Source File: c:inetpubwwwrootjellisvalidation.aspx Line: 34 <BR>You are specifying that when the button is clicked, an event btnSubmit_Onclick must be run. The error is due to the fact that you do not have such a procedure in your code...<BR><BR>add<BR><BR>Sub btnSubmit_Onclick(src as Object, e as Eventargs)<BR><BR>End Sub<BR><BR>And it will work...
 
Back
Top