温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:Asp.net物资流通管理系统源码
当前文件:
WuZiLiuTongGuanLi/admin/SystemText.aspx.cs[1K,2009-6-12 11:58:46],打开代码结构图
WuZiLiuTongGuanLi/admin/SystemText.aspx.cs[1K,2009-6-12 11:58:46],打开代码结构图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
12
public partial class admin_SystemText : System.Web.UI.Page 13
{ 14
protected void Page_Load(object sender, EventArgs e) 15
{ 16
if (Session["UserID"] == null || Session["UserID"] == "") 17
{ 18
Response.Write("<script language='javascript'>alert('您尚未登陆或登陆超时');location.href='/';</script>"); 19
Response.End(); 20
} 21
else 22
{ 23
if (!CheckLogin.CheckAdmin(Convert.ToInt32(Session["UserID"]))) 24
{ 25
Response.Write("<script language='javascript'>alert('您的权限不够请不要非法登陆');location.href='/';</script>"); 26
Response.End(); 27
} 28
} 29
30
Panel1.Visible = true; 31
Panel2.Visible = false; 32
} 33
protected void LinkButton1_Click(object sender, EventArgs e) 34
{ 35
Panel1.Visible = true; 36
Panel2.Visible = false; 37
} 38
protected void LinkButton2_Click(object sender, EventArgs e) 39
{ 40
Panel1.Visible = false; 41
Panel2.Visible = true; 42
} 43
protected void Button1_Click(object sender, EventArgs e) 44
{ 45
string SysTit = NewsTatil.Text; 46
string Count = Counts.Text; 47
admin Mad = new admin(); 48
Mad.InsertSystemT(SysTit, Count); 49
Response.Write("<script language='javascript'>alert('通知添加成功');location.href='SystemText.aspx'</script>"); 50
} 51
} 52






}
}