Validations in asp.net

El Boss

New Member
hey wanted to know is the validation done in asp.net is server side or client sideThe ASP.NET Web validation controls ALL use server-side validation. THey are adaptive controls, meaning that if a user visits with an uplevel browser, they will *ALSO* send client-side validation code. But realize that ALL of these validation controls use server-side validation regardless of what browser the user is using.<BR><BR>To learn more, read this article:<BR>http://www.4guysfromrolla.com/webtech/090200-1.shtml<BR><BR>(it's a bit dated, but it is a good starting point...)Thanks Scott,<BR>but wanted one thing now what ever validation U make it will be displayed on the browser. if i want to display it as an alert on the browser what will i do. do i have to manipulate client side code which it gives or there is some other option.<BR>and one more thing as U told that if the browser is latest u get the client side validation code that i have also seen it but what happen if the browser is old and i want to give the alert.<BR><BR>thanks<BR>Look into the ShowMessageBox property of the asp:ValidationSummary control. eg:<BR><BR> <asp:ValidationSummary runat="server"<BR> id="vsFoo" ShowMessageBox="true..... />Thanks Digory.<BR>Its working absolutely fine.
 
Back
Top