chore: 首次簽入 Thinkyu ASP.NET 專案
- 加入 Visual Studio / ASP.NET .gitignore - 排除建置輸出、IDE 設定、NuGet packages、大型 MSI 安裝檔
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using System.Web.Security;
|
||||
using WebLib;
|
||||
|
||||
namespace Education.MobileSurvey
|
||||
{
|
||||
public partial class Complete : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (Session[PublicVariable.UserId] == null || string.IsNullOrEmpty(Session[PublicVariable.UserId].ToString()))
|
||||
{
|
||||
Response.Redirect("Login.aspx");
|
||||
}
|
||||
}
|
||||
|
||||
protected void btnBack_Click(object sender, EventArgs e)
|
||||
{
|
||||
Response.Redirect("SurveyList.aspx");
|
||||
}
|
||||
|
||||
protected void btnLogout_Click(object sender, EventArgs e)
|
||||
{
|
||||
Session.Clear();
|
||||
FormsAuthentication.SignOut();
|
||||
Response.Redirect("Login.aspx");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user