Disable Session State at the Page Level

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What symbol specifies the beginning of a query string?

537


What are web server controls in asp.net?

556


Explain how can we inherit a static variable?

526


What are the three parts of an http response?

534


How can you implement encapsulation in asp.net?

11317






Explain the use of resource manager class in .net.

508


What is difference between asp state management and asp.net state management?

577


What is the syntax for datagrid and specifying columns?

2095


What are the two Layouts supported by a Web form in ASP.NET?

558


How to create multi language website in asp.net mvc? : Asp.Net MVC

499


Where the viewstate is stored after the page postback?

678


What are the memory-mapped files?

526


What is .net framework and what are the main components of it?

377


What happens if an ASP.NET server control with event-handling routines is missing from its definition?

606


Why is global asax is used for?

520