开发者

RegularExpressionValidator firing too early

开发者 https://www.devze.com 2023-03-06 14:42 出处:网络
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

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

精彩评论

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