I need to have a custom validator that can in some way incorporate a custom variable when calling the client-side javascript validation. This validator is used in a repeater, and every item in the repeater needs to use the custom validator, but validating against its own variable. Is this possible and how can I do it?
Example, I need its javascript validation function to be like
JavascriptValidation(sender, args, MYVARIABLE)
Or is there any way to incorporate my variable in the 'args'? I'm not sure what that is.
以上就是Adding a variable to a ASP.NET CustomValidator的详细内容,更多请关注web前端其它相关文章!