检索使用post方法ajax发送的数组值 [英] retriving array value send using post method ajax

查看:68
本文介绍了检索使用post方法ajax发送的数组值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在asp中使用ajax的post方法
并想在后页中检索值,但出现错误

I am using post method of ajax in asp
and want to retrieve value in back page but getting error

<pre lang="cs">var newArray = myArray.join(&quot;!-@-$_&quot;);
        xmlhttp.open(&quot;POST&quot;, &quot;Ajaxasp.asp&quot;, true);
        xmlhttp.setRequestHeader(&quot;Content-type&quot;, &quot;application/x-www-form-urlencoded&quot;);
        xmlhttp.send(&quot;newArray=&quot; + newArray);</pre>


如何从背面页的newArray中检索数据

surabhi


how to retrieve data from newArray in backside page

surabhi

推荐答案

_& quot;); xmlhttp.open(&"POST&",&"Ajaxasp.asp&",true); xmlhttp.setRequestHeader(&内容类型&",&应用程序/x-www-form-urlencoded&"); xmlhttp.send(& quot; newArray =& quot; + newArray); < /pre >
_&quot;); xmlhttp.open(&quot;POST&quot;, &quot;Ajaxasp.asp&quot;, true); xmlhttp.setRequestHeader(&quot;Content-type&quot;, &quot;application/x-www-form-urlencoded&quot;); xmlhttp.send(&quot;newArray=&quot; + newArray);</pre>


如何从背面页的newArray中检索数据

surabhi


how to retrieve data from newArray in backside page

surabhi


Request.Forms集合中检查它.

试试:
Check for it in Request.Forms collection.

Try:
Request.Form("newArray")


参考:
MSDN:Request.Form集合 [ Request.Form [


Refer:
MSDN: Request.Form Collection[^]
Request.Form[^]


这篇关于检索使用post方法ajax发送的数组值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆