Asp.Net Questions and Answers
9. |
What is a Cookie? |
|
- Cookie is a lightweight executable program, which the server posts to client machines.
-
Cookies store the identity of a user at the first visit of the Web site and validate them later of the next visits for their authenticity.
-
The values of a cookie can be transferred between the user's request and the server's response.
|
10. |
What is the difference between Session cookie and Persistent cookie? |
|
Session Cookie:- Resides on the client machine for a single session until the user does not log out.
Persistent Cookie:- Resides on a user's machine for a period specified for its expiry, such as 10 days, one month and never.
- The user can set this period manually.
|
11. |
What is the difference between HTML and Web server controls? |
|
- HTML controls are client side controls therefore, all the validations for HTML controls are performed at the client side.
-
On the other hand, Web server controls are server side controls; therefore, all the validations for Web server controls are performed at the server side.
|
12. |
What is AutoPostBack? |
|
If you want a control to postback automatically when an event is raised, you need to set the AutoPostBack property of the control to True.
|