How do you do validations. Whether client-side or
server-side validations are better.?

Answer Posted / anjani mittal

ASP.net has some validation controls which r used for validation of entry in the textboxes,dropdown & other controls etc.
These Validation Controls r:-
1> Required field validator.
2> Regular Expression field validator.
3> Range Validator.
4> Compare validator.
5> Custom field validator.
6> Validation field summary(used to display error messages).

Client side validation is better than that of server side validation b'coz it reduces the load on server by using client side validation & by doing this server performance increases & there responsivess is efficient....

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of HttpHandlers? When to use this?

823


Less than one page, how many windows will you be able to maintain?

763


Explain the difference between asp & asp.net.

732


Why is global asax is used for?

735


What is the concept of view state in asp.net?

768


Why asp.net is better than php?

686


What is the significance of ASP.NET routing?

832


a web application needs to be created to accept the product name and quantity of a toy from a customer. After the customer has entered the product name the application needs to display the discounted price of the product to the customer (company is offering 35% discount on all products). The application should allow the customer to select the product name from a list box. and also while i'm data binding to a label with custom data binding with some declarations : "The Discounted Price is "+((System.Convert.todouble(lblprodprice.text)*(system.convert.todouble(txtqty.text)) - ((System.convert.todouble(lblprodprice.text)*(system.convert.todouble(txtqty.text)*0.35)). Where i need to give this declaration in asp.net 2.0.

1625


What are user controls?

759


How to use push notification?

798


Does asp.net still recognize the global.asa file?

728


Why is this service branded with windows livetm?

778


What are the advantages of asp.net?

727


In which event of the page viewstate is available?

643


How can we communicate with each server in N-tier Architecture? and what are the methods?

1978