日期:2014-04-27  浏览次数:22663 次

        string strConn = ConfigurationManager.AppSettings["sqlcon"].ToString();
        SqlConnection myconn = new SqlConnection(strConn);

        myconn.Open();

        string sql = "insert into 应聘信息表(应聘职位,姓名,性别,籍贯,出生年月,政冶面貌,身高,体重,婚否,视力,民族,最高学历,专业,联系电话,电子邮箱,居住地地址,身份证号码,教育背景,任务履历,自我评价)values('" + TextBox1.Text + "','" + TextBox2.Text + "','" + DropDownList1.SelectedValue + "','" + TextBox3.Text + "','" + TextBox11.Text + "','" + TextBox51.Text + "','" + TextBox13.Text + "','" + TextBox14.Text + "','" + TextBox12.Text + "','" + TextBox15.Text + "','" + TextBox4.Text + "','" + TextBox5.Text + "','" + TextBox6.Text + "','" + TextBox7.Text + "','" + TextBox17.Text + "','" +TextBox8.Text  + "','" + TextBox9.Text + "','" + TextBox30.Text + "','" + TextBox31.Text + "','" + TextBox50.Text + "')";


        SqlCommand cmd = new SqlCommand(sql, myconn);
        cmd.ExecuteNonQuery();
        myconn.Close();


        Response.Write(" <script language=javascript>alert('更新成功'); window.window.location.href='showshangwu.aspx';</script> ");