issuanceJob.aspx.cs
上传用户:yawei0714
上传日期:2020-11-26
资源大小:1004k
文件大小:2k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

HTML/CSS

  1. using System;
  2. using System.Data;
  3. using System.Configuration;
  4. using System.Collections;
  5. using System.Web;
  6. using System.Web.Security;
  7. using System.Web.UI;
  8. using System.Web.UI.WebControls;
  9. using System.Web.UI.WebControls.WebParts;
  10. using System.Web.UI.HtmlControls;
  11. public partial class issuanceJob : System.Web.UI.Page
  12. {
  13.     protected void Page_Load(object sender, EventArgs e)
  14.     {
  15.     }
  16.     protected void Button1_Click(object sender, EventArgs e)
  17.     {
  18.         string Job = this.txtJob.Text;
  19.         string Number = this.txtNumber.Text;
  20.         string Sex = this.ddlSex.SelectedValue.ToString();
  21.         string Age = this.txtAge.Text;
  22.         string Knowledge = this.ddlKnowledge.SelectedValue.ToString();
  23.         string Specialty = this.txtSpecialty.Text;
  24.         string Experience = this.txtExperience.Text;
  25.         string City = this.txtCity.Text;
  26.         string Pay = this.txtPay.Text;
  27.         string ParticularInfo = this.txtParticularInfo.Text;
  28.         string FBDate = DateTime.Now.ToString();
  29.         string UserName = Session["UserName"].ToString();
  30.         string sql = "insert into tb_Job values('" + Job + "','" + Number + "','" + Sex + "','" + Age + "','" + Knowledge + "','" + Specialty + "','" +
  31.             Experience + "','" + City + "','" + Pay + "','" + ParticularInfo + "','"+FBDate+"','" + UserName + "','')";
  32.         if (dataOperate.execSQL(sql))
  33.         {
  34.             txtAge.Text = "";
  35.             txtCity.Text = "";
  36.             txtExperience.Text = "";
  37.             txtJob.Text = "";
  38.             txtNumber.Text = "";
  39.             txtParticularInfo.Text = "";
  40.             txtPay.Text = "";
  41.             txtSpecialty.Text = "";
  42.             RegisterStartupScript("true","<script>alert('发布成功!')</script>");
  43.         }
  44.         else
  45.         {
  46.             RegisterStartupScript("false","<script>alert('发布失败!')</script>");
  47.         }
  48.         
  49.     }
  50. }