Q. Explain the major built-in objects in ASP.NET ?
A. Application
Request
Response
Server
Session
Context
Trace.
Q. What is the appSettings Section in the web.config file in asp.net?
A. The appSettings block in web config file sets the user-defined values for the whole application.
For example, in the following code snippet, the specified ConnectionString section is used throughout the project for database connection:
Q. Which data type does the RangeValidator control support?
A. The data types supported by the RangeValidator control are Integer, Double, String, Currency, and Date.
Q. What is the difference between an HtmlInputCheckBox control and an HtmlInputRadioButton control?
A. In HtmlInputCheckBoxcontrol, multiple item selection is possible whereas in HtmlInputRadioButton controls, we can select only single item from the group of items.
Q. Which namespaces are necessary to create a localized application?
A. System.Globalization
System.Resources.
Q. What are the different types of cookies in ASP.NET?
A. 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.