Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help! -- CustomValidator without ControlToValidate property

Status
Not open for further replies.

sd110404

Programmer
Nov 3, 2004
63
US
Hi there,

I searched the forums here for help, but didnt come accross what i am looking for.

I have added a custom validation in my form which calls InterSubCheck on OnServerValidate event.

Below is the customvalidator defination of my aspx page.

<asp:customvalidator id="Customvalidator6" runat="server" ErrorMessage="My error mmessage" OnServerValidate="InterSubCheck">

And i have defined a function for InterSubCheck inside my codebehind file.
The above works fine when i run in my system and in any system at office.

Then I uploaded this file to our companys website and I am getting the following error.

Server Error in '/' Application.
--------------------------------------------------------------------------------

Compilation Error
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.

Compiler Error Message: CS0117: 'ASP.EmpForm_aspx' does not contain a definition for 'InterSubCheck'

and it points to
<asp:customvalidator id="Customvalidator6" runat="server" ErrorMessage="My error mmessage" OnServerValidate="InterSubCheck">

the above line.

Any solution? I havent used ControlToValidate property in my customValidator control. Will that be a problem? I had tried a dummy customvalidator with controlTOValidator field set, but still i am getting the error.

Can some one please help me with this error, or point to similar forum here.

Thanks a lot in advance.
 
Might want to try posting about this in the ASP.Net, ASP, HTML, etc forums. Seeing as how this is a VB.Net forum, you're much less likely to get an informative reply.

-Rick

----------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top