开发者

Attach ASP.NET's RegularExpressionValidator to an INPUT created by some javascript?

I've got an ASP.NET page that includes an asp:TextBox with a RegularExpressionValidator attached, 开发者_开发知识库and some JavaScript that creates an INPUT textbox (among other things) on the page.

I'd like to attach another RegularExpressionValidator onto that new INPUT without going back to the web server. Is this possible?

Many thanks.

(Search fodder follows. These validators would have the same issue.)

RequiredFieldValidator CompareValidator RangeValidator CustomValidator


Those field validators (being server controls) generate javascript and send it to the page. I would look at the generated javascript. I have looked, but not that closely. I bet there is a way for you to generate your own javascript that would set the appropriate properties to override the settings that were generated on the server.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜