Toon posts:

[ASPNET] validation controls client/server side?

Pagina: 1
Acties:
  • 28 views sinds 30-01-2008

Verwijderd

Topicstarter
Kan iemand voor mij het volgende ophelderen?

Worden ASPNET validation controls alleen clientsite met javascript afgehandeld?
Of wordt bij de afwezigheid van javascript ondersteuning ook serverside nog iets opgevangen?

Thanx in advance

Koen

  • Sybr_E-N
  • Registratie: December 2001
  • Laatst online: 27-04 20:34
Daar kun je lekker zelf voor kiezen, of je doet het client-side of je implementeert het zelf aan de server kant. Vaak krijg je een combinatie van beide.

  • whoami
  • Registratie: December 2000
  • Laatst online: 27-04 23:03
Uit de MSDN:
Server-Side and Client-Side Validation
Validation controls perform input checking in server code. When the user submits a form to the server, the validation controls are invoked to review the user's input, control by control. If an error has occurred in any of the input controls, the page itself is set to an invalid state so you can test for validity before your code runs.

If the user is working with a browser that supports DHTML, the validation controls can also perform validation using client script. This can substantially improve response time in the page; errors are detected immediately and error messages are displayed as soon as the user leaves the control containing the error. If client-side validation is available, you have greater control over the layout of error messages and can display an error summary in a message box. For more details, see Client-Side Validation for ASP.NET Server Controls.
voortaan ff zelf vooronderzoek doen dus.

https://fgheysels.github.io/


Dit topic is gesloten.