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