Public Class CadminPage
Inherits Web.UI.Page
Sub New()
MyBase.New()
If CType(Session("op"), operator).user Is Nothing Then
Response.Redirect("frmlogin.aspx")
End If
End Sub
End Class
其中"OP"是我定义的结构
Session在这里起不了作用,真是遗憾,有办法吗?
...全文
925打赏收藏
讨论,用什么方法能使session起作用
Public Class CadminPage Inherits Web.UI.Page Sub New() MyBase.New() If CType(Session("op"), operator).user Is Nothing Then Response.Redirect("frmlogin.aspx") End If End Sub End Class 其中"OP"是我定义的结构 Session在这里起不了作用,真是遗憾,有办法吗?