温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:Asp.net物资流通管理系统源码
当前文件:
WuZiLiuTongGuanLi/admin/Default.aspx.cs[1K,2009-6-12 11:58:45],打开代码结构图
WuZiLiuTongGuanLi/admin/Default.aspx.cs[1K,2009-6-12 11:58:45],打开代码结构图1using System; 2
using System.Data; 3
using System.Configuration; 4
using System.Collections; 5
using System.Web; 6
using System.Web.Security; 7
using System.Web.UI; 8
using System.Web.UI.WebControls; 9
using System.Web.UI.WebControls.WebParts; 10
using System.Web.UI.HtmlControls; 11
//该源码下载自www.51aspx.com(51aspx.com) 12
13
public partial class admin_Default : System.Web.UI.Page 14
{ 15
//5_1_a_s_p_x.c_o_m 16
17
protected void Page_Load(object sender, EventArgs e) 18
{ 19
if (Session["UserID"] == null || Session["UserID"] == "") 20
{ 21
Response.Write("<script language='javascript'>alert('您尚未登陆或登陆超时');location.href='/';</script>"); 22
Response.End(); 23
} 24
else 25
{ 26
if (!CheckLogin.CheckAdmin(Convert.ToInt32(Session["UserID"]))) 27
{ 28
Response.Write("<script language='javascript'>alert('您的权限不够请不要非法登陆');location.href='/';</script>"); 29
Response.End(); 30
} 31
} 32
} 33
protected void LinkButton1_Click(object sender, EventArgs e) 34
{ 35
Session["UserID"] = ""; 36
Session["UserName"] = ""; 37
Session["Type"] = ""; 38
Response.Redirect("/"); 39
} 40
} 41






}
}