R
Robert Scheer
Hi.
I created a new class where I defined some shared methods. One of
these methods (called IsInvalidKey) is a generic function that I wants
to use with several customvalidator controls.
In my .aspx page I defined an imports for my shared class:
<%@ Import namespace="Webfinder.Helper" %>
And for my customvalidator control I have:
<ASP:CUSTOMVALIDATOR id="custKey" runat="server"
controltovalidate="txtKey" clientvalidationfunction="IsKey"
onservervalidate="Validations.IsInvalidKey">*</ASP:CUSTOMVALIDATOR>
When I run the page I get the error:
BC30456: 'Validations' is not a member of 'ASP.FindUser_aspx'
If I define the function directly at the page's code-behind, it all
works.
How can I define a server-side function to use with several
customvalidators?
Thanks,
Robert Scheer
I created a new class where I defined some shared methods. One of
these methods (called IsInvalidKey) is a generic function that I wants
to use with several customvalidator controls.
In my .aspx page I defined an imports for my shared class:
<%@ Import namespace="Webfinder.Helper" %>
And for my customvalidator control I have:
<ASP:CUSTOMVALIDATOR id="custKey" runat="server"
controltovalidate="txtKey" clientvalidationfunction="IsKey"
onservervalidate="Validations.IsInvalidKey">*</ASP:CUSTOMVALIDATOR>
When I run the page I get the error:
BC30456: 'Validations' is not a member of 'ASP.FindUser_aspx'
If I define the function directly at the page's code-behind, it all
works.
How can I define a server-side function to use with several
customvalidators?
Thanks,
Robert Scheer