Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/319.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/date/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 特殊字符后的网页表单剪切_C#_Web Services - Fatal编程技术网

C# 特殊字符后的网页表单剪切

C# 特殊字符后的网页表单剪切,c#,web-services,C#,Web Services,我有一个简单的网页表单,用户可以在文本框中输入他们想要什么样的项目。例如,他们可能会键入:销售和预测报告需要修复。 然后,他们点击一个提交按钮,它会被发送到一个跟踪我们项目的第三方网站。 问题是,在上面给出的示例中,在“&”符号之后,所有内容都被切断。 它的发送方式如下: String request = "fct=createorcopyproject&guid=" + guid + "&projectname=" + TxtProjectName.Text + "&p

我有一个简单的网页表单,用户可以在文本框中输入他们想要什么样的项目。例如,他们可能会键入:销售和预测报告需要修复。 然后,他们点击一个提交按钮,它会被发送到一个跟踪我们项目的第三方网站。 问题是,在上面给出的示例中,在“&”符号之后,所有内容都被切断。 它的发送方式如下:

String request = "fct=createorcopyproject&guid=" + guid + "&projectname=" + TxtProjectName.Text + "&projectdesc=" + TxtDescription.Text +
        "&nexttasknumber=1&budgethours=0&budgetcost=0&estimatedstartdate=" + year + "-" + month + "-" + day + "&estimatedenddate=" + year + "-" + month + "-" + day + "&estimatedhours=0&estimatedexpenses=0&projectpriorityid=" + priorityIndex + "&projectstatusid=NULL&projecttemplate=0&contactname=" + user +
        "&defaultestimatedtime=0&defaulttaskstartdate=1&defaulttaskenddate=1&defaulttaskactualdates=2&clientid=" + areaIndex + "&createdefaults=True&languagedefaults=EN&projecttemplateid=0000003&keeptemplatelink=false&copyprojectassignments=True&copyprojectdocuments=True&copyforumtopics=False&copytasks=False&adjusttaskdates=False&copytaskdocuments=False&copytaskassignments=False&markproject=False&format=ds";
其中TxtDescription.Text是我们得到截止值的地方。 这是他们的目的还是我遗漏了什么?

使用方法对URL中发送的值进行编码(假设这是一个URL)