Question

By default, validators of asp.net look like label. Can I replace them to become divs, radiobox, checkbox etc.. ?

Était-ce utile?

La solution

Yes, look at ASP.NET's Control Adapters: http://msdn.microsoft.com/en-us/magazine/cc163543.aspx

You will need to completely re-implement the rendering of the control, however, and the best way to do this is by going through the ASP.NET source-code or by using Reflector to see how it's done.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top