ajax Post提交问题
<script type="text/javascript">
var xmlHttp;
function CreateXMLHttpObject()
{
if(window.ActiveXObject)
{
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
}
else if(window.XMLHttpRequest)
{
xmlHttp = new XMLHttpRequest();
}
}
function CallBack()
{
if(xmlHttp.readyState == 4)
{
if(xmlHttp.status == 200)
{
var addresult = xmlHttp.responseText;
if(xmlHttp.responseText != "")
{
alert(addresult);
}
else
{
}
}
}
}
function Show()
{
var name;
CreateXMLHttpObject();
var url = "AjaxPostSave.aspx";
var postData= "content=" + name;
name=document.getElementById("txtSearch").value;
xmlHttp.onreadystatechange = CallBack;
xmlHttp.open("post",url,true);
xmlHttp.setRequestHeader("Content-Type","pplication/x-www-form-urlencoded")
xmlHttp.send("postData");
}
</script>
</head>
<body>
<form id="form1">
<div>
<input type="text" id="txtSearch" value="222"/><input type="button" value="搜索" onclick="Show()"/>
</div>
</form>
</body>
</html>
这是我的代码 我在另一个页面怎么获取不到值啊 Request.Form["content"]、Request.QueryString["content"] 都是空值???