?? index.aspx.cs
字號:
?using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class index : System.Web.UI.Page
{
public string time;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
try
{
if ((Session["isLog"].ToString()) == "true")
{
DateTime now = DateTime.Now;
time = now.ToString();
}
else
{
//Response.Write("<script>alert('請先登陸')</script>");
Response.Redirect("default.aspx");
}
}
catch
{
//Response.Write("<script>alert('請先登陸')</script>");
Response.Redirect("default.aspx");
}
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -