Is it possible for me using session variables into
Hello:
I have a class where Iâm using session variables, notwithstanding when I compile Project itâs sending me this error: âName âsessionâ doesnât exist in class or namespace âWUC_CreDes.Class1ââ.
Does it mean that it is not permitted to me using session variables into a class?
This is my code:
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
namespace WUC_CreDes
{
public class Class1
{
public static bool No_PostBack()
{
Session["par1"] = "";
return false;
}
}
}
Thank you in advance for your help.
A.L.
El Hombre que tiene Amigos ha de mostrarse Amigo
__________________
El Hombre que tiene Amigos ha de mostrarse Amigo
|