Set - 4

Question 41 :

What is smart navigation?

Answer :

The cursor position is maintained when the page gets refreshed due to the server side validation and the page gets refreshed.

Question 42 :

What is view state?

Answer :

The web is stateless. But in ASP.NET, the state of a page is maintained in the in the page itself automatically. How? The values are encrypted and saved in hidden controls. this is done automatically by the ASP.NET. This can be switched off / on for a single control

Question 43 :

How do you validate the controls in an ASP .NET page?

Answer :

Using special validation controls that are meant for this. We have Range Validator, Email Validator.

Question 44 :

Can the validation be done in the server side? Or this can be done only in the Client side?

Answer :

Client side is done by default. Server side validation is also possible. We can switch off the client side and server side can be done.

Question 45 :

How to manage pagination in a page?

Answer :

Using pagination option in DataGrid control. We have to set the number of records for a page, then it takes care of pagination by itself.