asp button. has server side code. has a custom validator.
The server side code does not execute until the validation has ran.
So it is completely irrelevant here, yes?
in the client side javascript code for the custom validator, can I call
any type of a function to see what event caused the page to attempt
submit hence calling all validation.
Yes it's in a form.
The two buttons are btnSearchAddress and btnSearchParcel.
For instance, when <asp:customvalidator id="val_cust_ByAddress"
runat="server" Display="None"
ClientValidationFunction="val_cust_ByAddress_ClientValidate"> said:
runs it calls
[...]
and in there I want to test if search by address was clicked or by
parcel.
Perhaps
function val_cust_ByAddress_ClientValidate(sender, args, action)
{
// use the value of action
}
<input type="button" name="foo"
onclick="val_cust_ByAddress_ClientValidate(..., ..., this.name)">
? If not, post the code the _client_ gets, i.e. the server generates.
Only relevant snippets of it, of course.
Here's some more of the code.
[...]
Who on Earth is supposed to read this junk?
You should at least post properly formatted code.
PointedEars