2007年4月27日 星期五

記住網址並重導到登入頁面

'--------------------判斷有無登入------------------------------------------
If Session("IsPassed") <> True Then
Session("MyURL") = Request.ServerVariables("PATH_INFO").ToString '用Session記住網址
Session("Params") = Request.QueryString '用Session記住網址列的 ? 後面帶入的參數
Response.Redirect("Login.aspx")
End If

沒有留言: