开发者

RegularExpressionValidator firing too early

I have an ASP.NET web application that is using RegularExpressionValidator controls inside of a user control. The user control is placed inside of a panel with an ajax:modal popup. When I click the link, it will open the popup displaying the user control.

What is happening is when I click the link to open the popup, it is throwing a postback and activating the validators before the user has any opportunity to开发者_Go百科 type anything into the boxes. I need to be able to click the link, open the popup, fill out the text boxes, and submit. The validators should only run when the submit button is clicked. Any ideas?


setting the validators parameters on the load in the code behind of the popupbox might fix your problem

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜