asp.net - call javascript from control with ValidationGroup -
If a button is set to a validation group then how do I call a JS function with the "click on button" button Can i
& lt; Asp: button id = "btnTest" runat = "server" text = "test" OnClick = "btnTest_Click" validation group = "valid mail" OnClientClick = "javascript: return checkTest ()" /> & Lt; Script & gt; CheckTest () {If (Val) return true and return false}
It seems that you are trying to validate something on your button click.
If you are, instead of verifying the handler on the button, I will add a validator and call it my checkTest ()
function. Do not forget to add the validator for the "ValidateMail" verification group and set the validity of reasons = "true"
on the button.
This validation will cause all the beliefs in the mail because the verification group is in the fire.
Does it remember the point of your question or your question?
Comments
Post a Comment