Myadmin/employ_info_update.aspx.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Data.OleDb;
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;
public partial class Myadmin_employ_info_update : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
//if (Session["ERICAdmin"] == null)
//{
// Response.Write("<script language='JavaScript'>" + "\n");
// Response.Write("parent.location='UserLogin.aspx?timeout=true';");
// Response.Write("</script>" + "\n");
//}.
if (HttpContext.Current.Request.Cookies["UserName"] == null)
{
Response.Redirect("UserLogin.aspx");
}
else
{
datareader();
}
}
}
private void datareader()
{
DataSet ds = AllDataBind.DataBindForInt("employ_info", "id", Request.QueryString["id"].ToString());
txb_begin_date.Text = ds.Tables["OtherTable"].Rows[0]["begin_date"].ToString();
txb_jop_items.Text = ds.Tables["OtherTable"].Rows[0]["jop_items"].ToString();
txb_need_num.Text = ds.Tables["OtherTable"].Rows[0]["need_num"].ToString();
txb_work_address.Text = ds.Tables["OtherTable"].Rows[0]["work_address"].ToString();
txb_project_num.Text = ds.Tables["OtherTable"].Rows[0]["project_num"].ToString();
ddl_sort.SelectedValue = ds.Tables["OtherTable"].Rows[0]["area_type"].ToString();
FCKeditor1.Value = ds.Tables["OtherTable"].Rows[0]["content"].ToString();
//area_type,project_num,work_address,jop_items,begin_date,need_num,content,add_time,is_ok"
}
protected void Btn_ok_Click(object sender, EventArgs e)
{
if (Page.IsValid)
{
OleDbConnection con = DBcon.createcon();
con.Open();
OleDbCommand cmd = new OleDbCommand("update employ_info set begin_date='" + txb_begin_date.Text.Replace("'", "") + "',jop_items='" + txb_jop_items.Text.Replace("'", "") + "',need_num='" + txb_need_num.Text.Replace("'", "") + "',work_address='" + txb_work_address.Text.Replace("'", "") + "',project_num='" + txb_project_num.Text.Replace("'", "") + "',area_type='" + ddl_sort.SelectedValue + "',content='" + FCKeditor1.Value + "' where id="+Convert.ToInt32(Request.QueryString["id"])+"", con);
try
{
后面还有 19 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
