ASP.NET学生助学贷款管理系统(7)

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

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

5.1 系统主界面介绍
在IE里运行本系统,出现系统的主界面,输入帐号、密码等待验证。

以下是引用片段:

核心代码如下:
                 protected void Button1_Click(object sender, EventArgs e)
    {
        string strJs = "";
        for (int i = 0; i < RadioButtonList1.Items.Count; i++)
        {
            if (RadioButtonList1.Items[i].Selected)
            {
                strJs = RadioButtonList1.Items[i].Text;
                break;
            }
        }
        if (strJs == "管理员")
        {
            if (Database.GetData("select * from 管理员 where  名称='" + TextBox1.Text + "' and 密码='" + TextBox2.Text + "'").Rows.Count > 0)
            {
                Session["User"] = TextBox1.Text;
                Response.Redirect("Admin/index.aspx");
            }
            else
            {
                ClientScript.'登陆信息错误');");
                return;
            }
        }
        else if (strJs == "辅导员")
        {
            if (Database.GetData("select * from 班级 where  辅导员帐号='" + TextBox1.Text + "' and 密码='" + TextBox2.Text + "'").Rows.Count > 0)
            {
                Sessin["User"] = TextBox1.Text;
                Response.Redect("FDY/index.aspx");
            }
            else
            {
                ClientScript.Reg登陆信息错误'>");
                return;
            }
        }
        else if (strJs == "学生")
        {
            if (Database.GetData("select * from 学生 where  学号='" + TextBox1.Text + "' and 密码='" + TextBox2.Text + "' and 审核='同意'").Rows.Count > 0)
            {
                Session["User"] = TextBox1.Text;
                Response.Redi("XS/index.aspx");
            }
            else
            {
                ClientScript.Re'登陆信息错误或等待审核中'>");
                return;
            }
        }

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

第8页为计算机毕业论文部分......

【联系方式】

【本站信誉】

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