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 event handlers can I include in Global.asax ?

1 Answers  


What is Master Page in Asp.net?

9 Answers  


How can we inherit a static variable?

0 Answers  


How do you declare static variable?

0 Answers  


What tags do you need to add within the asp:datagrid tags to bind columns manually? How?

0 Answers  






hi i am varinder. i am very eager to learn ASP.net in C#. i am beginer to it. i have refer some books but i found it tuff to understand. their language is tuff. So please tell me the best site or best book to learn ASP.net in C#. i will be very thankful. Varinder

1 Answers  


Can we throw exception from catch Block?

9 Answers   Accenture, IBM,


How long do session variables last?

0 Answers  


What Name space does the web page belon in the .net framework class hierarchy?

1 Answers   L&T, Wipro,


what is .net

15 Answers   Net Solution,


how can we display records in single datagrid using two datasets in different place?

2 Answers   Global Computer, Honeywell,


How do you create a permanent cookie?

2 Answers  


Categories