| To enable session for page while doing on webpage we have to set this in the page directive section Below is the code for that
< %@ Page language="c#" Codebehind="WebForm1.aspx.cs"
AutoEventWireup="false" Inherits="WebAppName.WebForm1"
EnableSessionState="true" % > | | |