I have almost 20 textboxes and to check all i have to call validate event 20 times each using errorprovider. Is there any efficient way other than that.
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Carriage Return (ASCII chr 13) is missing from tex
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
Create validators (RequiredFieldValidator or whatnot) for each of them, then assign them all to the same ValidationGroup. You can enforce validation of all the controls in that group at once.
http://msdn.microsoft.com/en-us/library/ms227424.aspx