Disable Session State at the Page Level



Disable Session State at the Page Level..

Answer / skmdali786

1)Start Microsoft Visual Studio .NET, and create a new
ASP.NET Web Application.
2)In Solution Explorer, double-click the Web Form for which
you want to disable session state.
3)Click the HTML tab.
4)At the top of the page, add EnableSessionState="false" in
the @ Page directive. The modified attribute should appear

similar to the following:
<%@ Page language="c#" Codebehind="WebForm1.aspx.cs"
AutoEventWireup="false" Inherits="WebApplication1.WebForm1"
EnableSessionState="false" %>

5)Save the file and/or project to disable session state
throughout all pages in the application.

Hope it is Clear

Is This Answer Correct ?    7 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

What is Hybrid dictionary

1 Answers  


What are the differnt types of handler in ASP.NET?

0 Answers   Sans Pareil IT Services,


where should write the connection string Show that it will apply whole pages in the website

5 Answers   Symco,


In which module you have worked in your .net project explain?

1 Answers   TechSolution,


Difference between application events and session events

0 Answers  


How many types of sessions are there in asp net?

0 Answers  


Explain difference between dataset and datareader?

0 Answers  


please can any describe 'Master Page' in ASP.Net 2.0

4 Answers  


What is a PostBack ?

1 Answers  


Differentiate between early binding and late binding.

0 Answers  


How many web.config files in each solution

10 Answers   General Mills,


Which is the best institute for ASP.NET?

8 Answers   ABC Infotech, Tech Mahindra,


Categories