Adding a variable to a ASP.NET CustomValidator

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前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准