ASP.NET快件信息管理系统(8)

来源:xiaoniu168.com 作者:本站原创 添加时间:2011-12-01 点击数:25378

计算机毕业设计前台功能介绍:

(一)系统主界面
在IE里运行本系统,出现系统的主界面。

<,/TABLE>

〖资料来源:计算机毕业论文 www.xiaoniu168.com

第9页为计算机毕业论文基本功能介绍......

【联系方式】

【本站信誉】

用心做计算机毕业设计论文网

以下是引用片段:

相关代码如下:
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
        }
    }
    protected void LinkButton1_Click(object sender, EventArgs e)
    {
        //判断当前的登陆角色 根据不同的登陆角色判断从那个数据库表格检索用户登陆信息

        if (DataControl.GetData("select * from  员工信息 where 员工号='" + TextBox1.Text + "' and 员工密码='" + TextBox2.Text + "'").Rows.Count > 0)
        {
            Session["user"] = TextBox1.Text;
            if (TextBox1.Text == "admin")
            {
                Response.Admin/Index.aspx");
            }
            else
            {
                Response.Tdy/Index.aspx");
            }
        }
        else
        {
            Page.用户名或密码错误'>");
        }
    }

    protected void Button1_Click(object sender, EventArgs e)
    {
        Response.Redt("");
    }