Skip to main content

Top 100 Dot Net Interview Questions - Part 10

91. How many types of Cookies are available in ASP.NET?

There are two types of Cookies available in ASP.NET:

  • 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.

92. What is the use of the Global.asax file?

The Global.asax file executes application-level events and sets application-level variables.

93. What are the Culture and UICulture values?

The Culture value determines the functions, such as Date and Currency, which are used to format data and numbers in a Web page. The UICulture value determines the resources, such as strings or images, which are loaded for a Web page in a Web application.

94. What is the difference between ASP session and ASP.NET session?

ASP does not support cookie-less sessions; whereas, ASP.NET does. In addition, the ASP.NET session can span across multiple servers.

95. Which control will you use to ensure that the values in two different controls match?

You should use the CompareValidator control to ensure that the values in two different controls match.

96. What is the difference between a page theme and a global theme?

A page theme is stored inside a subfolder of the App_Themes folder of a project and applied to individual Web pages of that project. Global themes are stored inside the Themes folder on a Web server and apply to all the Web applications on the Web server.

97. What do you mean by a neutral culture?

When you specify a language but do not specify the associated country through a culture, the culture is called as a neutral culture.

98. What is the use of the <sessionState> tag in the web.config file?

The <sessionState> tag is used to configure the session state features. To change the default timeout, which is 20 minutes, you have to add the following code snippet to the web.config file of an application:<sessionState timeout="40"/>

99. Can you post and access view state in another application?

Yes, you can post and access a view state in other applications. However, while posting a view state in another application, the PreviousPage property returns null.

100. Which method do you use to kill explicitly a users session?

The Session.Abandon() method kills the user session explicitly.

Comments

Popular posts from this blog

Introducing Viroprotek

Introducing Viroprotek Advanced Hand Sanitizer & Disinfectant from Asian Paints @ Cheaper Price, contact me at 9884040933

Apple 'iWatch' is Jony Ive's pet project, could release this year

Wearable computing is being seen as one of the next-big-things in the future of technology, whether it's Google's Glass or companies like Samsung and Apple racing to pitch their next smart watch. Independent watch-maker  Pebble  may have taken the lead, but Apple isn't too far behind. A new Bloomberg report  says that Apple's so-called iWatch is expected to release this year. The report mentions that the project is currently being fuelled by the efforts of a 100 engineers being led by Apple design chief Jony Ive himself. While the bit about 100 engineers seems excessive for a company that is known for small teams that work on the secret projects, the report does mention that Ive, who has a fetish for high-end watches, went so far as to order "boxes" of Nike sports watches for his team to study a few years ago. The business portal points out that the iWatch may end up being more profitable than Apple's other rumoured new television business. Even though ...