Info.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
public partial class Info : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
string sql;
sql = "select a.*,b.gongsimingcheng from gangwei a left join gongsi b on a.gongsiID=b.ID where a.id=" + Request.QueryString["id"].ToString().Trim();
DataSet result = new DataSet();
sqlConn conn = new sqlConn();
result = conn.hsggetdata(sql);
if (result != null)
{
HiddenField1.Value = result.Tables[0].Rows[0]["gongsiID"].ToString();
Literal1.Text = "<a href='CompanyInfo.aspx?id=" + HiddenField1.Value + "' target='_blank'>" + result.Tables[0].Rows[0]["gongsimingcheng"].ToString() + "</a>";
Literal8.Text = result.Tables[0].Rows[0]["mingcheng"].ToString();
Literal2.Text = result.Tables[0].Rows[0]["renshu"].ToString();
Literal3.Text = result.Tables[0].Rows[0]["xingbie"].ToString();
Literal4.Text = result.Tables[0].Rows[0]["yuexin"].ToString();
Literal5.Text = result.Tables[0].Rows[0]["yaoqiu"].ToString();
Literal6.Text = result.Tables[0].Rows[0]["daiyu"].ToString();
Literal7.Text = result.Tables[0].Rows[0]["zhizhe"].ToString();
}
}
}
protected void Button1_Click(object sender, EventArgs e)
{
if (Session["userid"] == null) //判断是否登录
{
Response.Write("<script language=javascript>alert('登录后才能投递简历!');</script>");
return;
}
string xueshengID = Session["studentid"].ToString().Trim();//获取用户ID
string gangweiID = Request.QueryString["id"].ToString().Trim();//获取岗位ID
//查询该用户是否投递了该职位
string strsql = "select * from yingpin where xueshengID=" + xueshengID + " and gangweiID=" + gangweiID + "";
sqlConn conn = new sqlConn();
DataSet ds = new DataSet();
ds = conn.hsggetdata(strsql);
if (ds.Tables[0].Rows.Count > 0)//已投递
{
Response.Write("<script language=javascript>alert('已经投递过该岗位,不能重复投递!');</script>");
return;
}
//插入投递简历信息
strsql = "insert into yingpin(xueshengID,gangweiID)VALUES(" + xueshengID + "," + gangweiID + ")";
int result;
result = conn.hsgexucute(strsql);
if (result == 1)
{
Response.Write("<script>alert('投递简历成功!');</script>");
后面还有 7 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
