ASP.NET

There are 3 entries for the tag ASP.NET

Disabling Session State

If you don't use session state, you can improve performance of your web application by disabling session state. If you want to disable the sessions for the whole application, you need to set the web.config in the following way:   <configuration>       <system.web>       <sessionState mode="Off" /> If you want you can disable the sessions state in a specific page: <%@ Page Language="C#" AutoEventWireup="true" EnableSessionState="False" %> Tags: ASP.NET

Increase ASP.NET ViewState data security

To increment the security of the ASP.NET ViewState data you must enable the encryption of the data. To do that, you can choose between two option: 1 - By the web.config file:   <configuration>       <system.web>       <pages viewStateEncryptionMode="Always" /> Through this option you will enable the encryption of the ViewState data for all the application pages. 2 -  By the page: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" ViewStateEncryptionMode="Always" %> Make attention on the ViewStateEncryptionMode. In this case you enable the encryption...

TreeView and the selected leaf without Themes

Hi guys, I had a problem with the TreeView. I needed to change the text in bold of the clicked TreeView's leaves, without using Themes. I found a workaround as follows: protected void Page_Init(object sender, EventArgs e) { string selectedLeaf = string.Empty; if (Request.QueryString.Get("Report") != null) ...