开发者

ControlToValidate: how to debug?

I'm getting some error: ControlToValidate of '' cannot be empty (ControlToValidate de '' ne peut pas être vide in french).

Most of the time, this error occurs aft开发者_C百科er the add of new controls in the page/user control, and it's not too difficult to figure out with control is lacking ValidationGroup.

But what can you do to find out the cause of this error when it's a legacy screen with tons of controls, with ajax and telerik components? I'm mainly looking for tips / best practices to debug such issues.

Thanks in advance.


This error occurs if you have a validator control on your page without filling in the control to validate property. It has nothing to do with validationgroups as far as I know.

To answer your question, I would say a regular expression will be the 'easiest' way to do so.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜