ASP.NET古董鉴赏管理网站(10)

来源:xiaoniu168.com 作者:本站原创 添加时间:2012-01-05 点击数:21558

计算机毕业设计介绍:

5.7  紫砂壶文献历史
此模块显示不同类别下的紫砂壶文献历史列表。

以下是引用片段:

核心代码如下:
       protected void btnLoginOut_Click(object sender, EventArgs e)
    {
        Session.Remove("User");
        if (Request.QueryString["LX"] != null)
        {
            Response.Redirect("index_History.aspx?LX=" + Request.QueryString["LX"]);
        }
        else
        {
            Response.Redirect("index_History.aspx");
        }
    }
    protected void btnLogin_Click(object sender, EventArgs e)
    {
        if (DataBase.Get_Table("select * from 会员信息 where 会员名='" + txtName.Text + "' and 密码='" + txtPwd.Text + "'").Rows.Count > 0)
        {
            Session["User"] = this.txtName.Text;
            Response.Redirect("index_History.aspx");
        }
        else
        {
            Page.ClientScript.RegisterStartupScript(this.GetType(), "info", "art('用户名、密码错误!');window.location.href=window.location.href;");
            return;
        }
    }

<责任编辑:计算机毕业设计网(http://www.xiaoniu168.com)>

【联系方式】

【本站信誉】

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