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 is a 1x1 pixel?

712


Why cyclomatic complexity is important?

755


Describe the differences between the lifecycles of Windows services and Standard EXE?

824


Where session variables are stored?

734


How will you do Redo and Undo in a TextControl?

858


How do cookies work?

765


Distinguish between Server-side and Client-side code?

766


How will create assesblies at run time?

741


Name the two properties are on every validation control?

732


Describe session handling in a webfarm, how does it work and what are the limits?

799


Differentiate between globalization and localization.

747


What are Caching techniques in .NET

797


What is postback request?

724


What does a switch do?

740


What is request and response in asp.net?

711