i have a very basic question. We have all these validation controls in asp.net ( required field, range validator and others)..
my question is the required field validator is a server side control. So does that mean that it does a post back?..is it client side or server side control
The only controls that post back are buttons and other inputs where you set AutoPostback="True", such as a dropdownlist or a textbox. Another way of posting back is using an UpdatePanel and placing a trigger in it for a specified control and/or event.
All controls are considered client controls because the control is rendered as html to the client's browser.
Server controls are any controls that have runat="server" in their tags. This means that the control will have an object created to represent it in the code-behind, whether it is an ASP.NET webcontrol or a standard HTML control (which ASP.NET will render an HTMLControl object for).
Before executing code from the control that posted back, check the Page.IsValid property to make sure that it is true.
MCP - Web Based Client Development .NET 2.0
Q. Validators work on server side or client side.
Hope I was able to relax your confusion to some extent :)
I compete with myself to motivate me!!
Do not forget to mark posts, that help you, as "Answer".