I'm trying to migrate from ASP thinking into the hep new world of
..NET.
There seems to be no way to pass arguments in validation.
example:
<asp:customvali dator id="OurCustomVa lidator"
ControlToValida te="OurTextBox "
OnServerValidat e="SSValidate(2 0)"
ErrorMessage="E rror"
runat="server" />
I can't simply use an argument in the SSValidate() function above.
Even when I declare it explicitly:
Sub SSValidate(sour ce as Object, value as ServerValidateE ventArgs, num
as Integer)
I cannot use an argument.
Is there any way to do this. If not, /why/?
..NET.
There seems to be no way to pass arguments in validation.
example:
<asp:customvali dator id="OurCustomVa lidator"
ControlToValida te="OurTextBox "
OnServerValidat e="SSValidate(2 0)"
ErrorMessage="E rror"
runat="server" />
I can't simply use an argument in the SSValidate() function above.
Even when I declare it explicitly:
Sub SSValidate(sour ce as Object, value as ServerValidateE ventArgs, num
as Integer)
I cannot use an argument.
Is there any way to do this. If not, /why/?