How do get the value in the JavaScript function identified in ClientValidationFunction
property that was entered in the control that was identified in the ControlToValidate
property of a asp:CustomValidator
control?
function MyValidateFunction(sender, args) {
//want to get value of MyControl
}
<asp:CustomValidator
ID="cvAlarmedLocationAddress"
runat="server"
ControlToValidate="MyControl"
ClientValidationFunction="MyValidateFunction"
Text=""
/>