ASP.NET网上教学辅助管理系统(7)

来源:xiaoniu168.com 作者:本站原创 添加时间:2011-11-08 点击数:29488

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

4.2 系统主界面 
在IE里运行本系统,出现系统的主界面,包括选择帐号、密码,登陆按钮。如图:
计算机毕业论文

以下是引用片段:

其关键代码实现如下:
if (TextBox1.Text == "admin")
        {
            //管理员 根据管理员表进行判断
            if (DataControl.GetData("select * from 管理员 where 帐号='" + TextBox1.Text + "' and 密码='" + TextBox2.Text + "'").Rows.Count > 0)
            {
                Response.Redirect("Admin/index.aspx");
            }
            else
            {
                Page.>");
                return;
            }
        }
        else if (TextBox1.Text.Length > 6)
        {
            //学生 根据学生表进行判断
            if (DataControl.GetData("select * from 学生 where 学号='" + TextBox1.Text + "' and 密码='" + TextBox2.Text + "'").Rows.Count > 0)
            {
                Session["Acount"] = TextBox1.Text;
                Response.");
            }
            else
            {
                Page.
                return;
            }
        }
        else if (TextBox1.Text.Length <= 6)
        {
            //教师 根据教师表进行判断
            if (DataControl.GetData("select * from 教师 where 帐号='" + TextBox1.Text + "' and 密码='" + TextBox2.Text + "' ").Rows.Count > 0)
            {
                Session["Acount"] = TextBox1.Text;
                Response.
            }
            else
            {
                Page.
                return;
            }
        }

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

第8页为计算机毕业论文班级信息维护功能介绍......

【联系方式】

【本站信誉】

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