Why can't I use Session another aspx.cs code??
-
I can use Session on login.aspx.cs. so I used like this. // Session["Id"]= id; and I can see components of Session, when I type "Session". but I can't use that another aspx.cs. page, for example, board.aspx.cs. There are only two values. SessionPageStatePersister and SessionParameter. That is all;; I don't know why... please let me know..
-
I can use Session on login.aspx.cs. so I used like this. // Session["Id"]= id; and I can see components of Session, when I type "Session". but I can't use that another aspx.cs. page, for example, board.aspx.cs. There are only two values. SessionPageStatePersister and SessionParameter. That is all;; I don't know why... please let me know..
-
that class file is not inherited System.Web.UI.Page class ? If it is then you will be getting Session while development. :)
Oh, THank you very much. you are right. that class file was not inherited System.Web.UI.Page class. Really thank you.^^