ASP.NET INTERVIEW QUESTION & ANSWERS
26. |
What is the use of @Register directives? |
|
@Register directive informs the compiler of any custom server control added to the page. |
27. |
What is the difference between Authentication and Authorization? |
|
- Authentication is the process of identifying users.
- Authentication is identifying/validating the user against the credentials (username and password) and Authorization performs after authentication.
- Authorization is the process of granting access to those users based on identity.
- Authorization allowing access of specific resource to user.
|
28. |
What is the simplest way to write an HTML string to the output of an ASP.NET page?
|
|
The simplest possible way to write an HTML string is to use the Response.Write method. |
29. |
What is the difference between Server-side and client-side code? |
|
Server side code is executed at the server side on IIS in Asp.NET framework, while client side code is executed on the browser. |
30. |
How do you change the timeout for a Session object? |
|
You can change the timeout for a Session object by setting its Timeout property or by using the Web.Config file. |