经典ASP Request.Form删除空格?

时间:2010-06-10 21:10:49

标签: forms asp-classic request

我想把这个奇怪的想法......在经典的ASP中我似乎在Request.Form值中丢失了空格......

即,Request.Form(“json”)是

{"project":{"...","administrator":"AlexGorbatchev",
"anonymousViewUrl":null,"assets":[],"availableFrom":"6/10/20104:15PM"...

然而,CStr(Request.Form)是

json={"project":{"__type":"...":"Alex Gorbatchev",
"anonymousViewUrl":null,"assets":[],"availableFrom":"6/10/2010 4:15 PM"...

以下是整个代码:)

<%@ language="VBSCRIPT"%>
<%
Response.Write(CStr(Request.Form("json")))
Response.Write(CStr(Request.Form))
%>

有人请告诉我,我没有丢失所有的大理石......

1 个答案:

答案 0 :(得分:1)

我发现问题在5分钟之后......像往常一样:)发布的值需要进行网址编码。