web/xiaoyuanzhaopin.aspx.cs
(完整代码) 2KBusing System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using US.Model;
using US.CommonLib;
using US.Dal;
using US.DBUtility;
public partial class xiaoyuanzhaopin : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
SqlDataReader dr = SQLHelper.ExecuteReader(SQLHelper.ConnectionStringLocalTransaction, CommandType.Text, "select vc_zhaopian from PersonalRusumes", null);
dr.Read();
if(dr.GetValue(0).ToString()!="")
{
SQLHelper.BindDataList(DataList1, SQLHelper.ConnectionStringLocalTransaction, CommandType.Text, "select top 5 * from PersonalRusumes", null);
}
}
}
protected void Button6_Click(object sender, EventArgs e)
{
SqlDataReader dr = SQLHelper.ExecuteReader(SQLHelper.ConnectionStringLocalTransaction, CommandType.Text, "select * from PersonalUsers where vc_PUName='" + TextBox6.Text + "' and vc_PUPassWord='" + TextBox7.Text + "'", null);
if (dr.Read())
{
Session.Add("AUId", dr.GetValue(0).ToString());
Response.Redirect("gerenhuiyuanshouye.aspx");
}
else
{
JavaScriptHelper.Alert("对不起,你的用户名或密码有误请重新输入!");
}
}
protected void LinkButton1_Click(object sender, EventArgs e)
{
Response.Redirect("wangjimima.aspx");
}
protected void LinkButton2_Click(object sender, EventArgs e)
{
Response.Redirect("index.aspx");
}
protected void LinkButton3_Click(object sender, EventArgs e)
{
Response.Redirect("PersonalZhuce.aspx");
}
protected void LinkButton4_Click(object sender, EventArgs e)
{
Response.Redirect("gengduojianliliebiao.aspx");
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
