ValidationGroup in ASP.NET 2.0

xiaoxiao2021-03-06  24

In ASP.NET 1.1, for the verification class control, it is very troublesome when using a control that does not need to be verified, that is, it is impossible to choose to verify certain controls, and in ASP.NET 2.0 Newly add ValidationGroup properties, you can specify certain controls, as follows:

ErrorText = "Need to Fill in Value!"

ControlTovAlidate = "TextBox1"

Runat = "server" />

ErrorText = "Need to Fill in Value!"

ControlTovAlidate = "TextBox2"

Runat = "server" />

转载请注明原文地址:https://www.9cbs.com/read-79481.html

New Post(0)