AJAX 后台怎么取不到直 - .NET技术 / ASP.NET
代码如下 请高手 指点下 谢谢
ajax_http.js
-------------
function getXMLHTTP() {
var xmlhttp;
if (window.ActiveXObject) {
//IE
try {
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}
catch (e) {
xmlhttp = new ActiveXObject("Msxml2.XMLHTP");
}
} else {
//FireFox
xmlhttp = new XMLHttpRequest();
}
return xmlhttp;
}
var XMLHttpObj;
function addTestInfo1() {
XMLHttpObj = getXMLHTTP();
// var subName = document.getElementById("D1").value;
var txtTitle = document.getElementById("txt").value;
var txtA = document.getElementById("txtA").value;
var txtB = document.getElementById("txtB").value;
var txtC = document.getElementById("txtC").value;
var txtD = document.getElementById("txtD").value;
var txtQuestion = document.getElementById("txt1").value;
var txtFenS = document.getElementById("txt2").value;
XMLHttpObj.open("POST", "checkTestInfo.aspx?TestTitle=" + txtTitle + "&am
相关问答:
我现在用struts2框架中需要使用ajax实现局部刷新,但是从容器里返回的值不知道怎么从struts.xml配置文件里映射到jsp页面里,以前servlet里写out.orint("xxxxx")就可以得到~,但是现在用struts就不知道怎么 ......
我JSP的页面是:
<%@ page language="java" contentType="text/html; charset=gb2312"
%>
<script>
function Save(){
xmlHttp=GetXmlHttpObject()
if(xmlHttp==nul ......
我在一个html中写如下代码:
JScript code:
<html>
<head>
<script type="text/javascript" charset="utf-8"
src="script/jquery-1.3.2.min ......
各位大侠,我学习的是ASP.NET,想知道相关技术有哪些,就像JAVA EE中有struct sping jsp severlet 等,ASP.NET还有哪些些相关技术。
http://topic.csdn.net/u/20090914/21/af27de99-f0f3-4cfd-9379-13764f8ec6b1.ht ......
使用的是框架自带的treeview
绑定显示,能够按照正确的形式显示出来
但一点击就会报错
程序集“System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”中的类型“System.Web.UI.WebCo ......