从html表单复制并粘贴outlook

时间:2018-01-02 19:59:23

标签: asp.net outlook

我想构建一个应用程序,当我填写表单时,它将复制数据,点击一下按钮就会粘贴outlook电子邮件正文中的一些数据

谢谢

1 个答案:

答案 0 :(得分:-1)

我即将完成我的webform网站 问题:当我向textarea添加小内容(任何类型)并单击提交时,它可以工作!

但是当我在textarea中输入长多行文本时,它会在s附近给出语法错误。

SqlConnection con = new SqlConnection(" Data source = hidden; initial catalog = dsatdata; User id = sa; password = xxxxxx");         con.Open();         var query ="插入escalationmatrix值('" + lbl_case_number.Text +"','" + Request.Form [&#34 ; statust"]。ToString()+"','" + Request.Form [" status_summaryt"]。ToString()+&#34 ;','" + Request.Form [" impact_severityt"]。ToString()+"','" + Request.Form [" next_stept"] +"','" + Request.Form [" root_causet"] +&#34 ;','" + DateTime.Now +"')";

    // SqlCommand cmd = new SqlCommand("UPDATE [escalation] SET [Status] = '" + Request.Form["statust"].ToString() + "', [status_summary] = '" + Request.Form["status_summaryt"].ToString() + "', [impact_severity] = '" + Request.Form["impact_severityt"].ToString() + "', [next_step] = '" + Request.Form["next_stept"] + "', [root_cause] = '" + Request.Form["root_causet"] + "'  WHERE [Case_Number] = '" + lbl_case_number.Text + "'" , con);
    SqlCommand cmd = new SqlCommand(query, con);



    cmd.ExecuteNonQuery();`