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
What is hidden field in asp.net?
What are the benefits of view state?
What is query string in asp.net?
Explain the page lifecycle of an asp.net mvc? : asp.net mvc
How to integrate angular 8 with asp.net mvc 5? : Asp.Net MVC
Is there any alternative to avoid name collisions other then Namespaces?
Explain different types of validators in asp.net?
How will you load dynamic assembly? How will create assesblies at run time?
Which method is used to perform all validation at the page level?
How to send a DataReader as a parameter to a remote client ?
How you will improve web application performance?
Can we use html in asp.net?
What are the events in a page life cycle?
What are the two properties that are common on every validation control?
Explain about secure socket layer?