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

If we add a textbox and give the required field validator,and i add two radio buttons 1 is yes another one is No.And i add another one server control button ,if i click the button ,if the radio button Yes is checked the validation control is fired ,if no the validation control is not fired.So what you used to solve this problem.

6 Answers   CTS,


under which namespaces connection strings can be defined?

4 Answers  


What is difference between View State and Hidden Field in ASP.NET?

0 Answers  


How to convert a string into an Integer in ASP.net?

12 Answers  


How can you send an email message from an asp.net web page?

0 Answers  






How can we implement a identity (sql server) call in an asp.net page?

0 Answers  


What is the difference between ASP Session State and ASP.Net Session State?

0 Answers  


What is the difference between session state and session variables ?

6 Answers   Digital GlobalSoft,


What’s the difference between Response.Write() andResponse.Output.Write()?

1 Answers  


How to sign out from forms authentication?

0 Answers  


What is xaml? Are xaml file compiled or built on runtime?

0 Answers  


Difference between Active Exe and Dll ?

3 Answers   Satyam,


Categories