在使用net framework 3.5时,部署到IIS 时,应用程序池, 需要注意事项:
1. Failed to load resource: theserver reponded with a status of 500 (Internal server error)
需要修改应用池设置,把启动32位应用程序设为true
标识改为 Local System
选择netframeWork v2.0 集成
发布web service 时,注意事项,Publish method 选择File System
Js 实现 选择项
<select id="returnDirectory"style="width:220px;height:25px;"> </select>
var xmlDoc = xmlhttp.responseXML;
var mySelect = document.getElementById("returnDirectory");
var doc =xmlDoc.getElementsByTagName("GetEveryPlanDirectoryResult")[0];
var lenght = doc.childElementCount;
for(var i = 0; i<lenght; i++){
var text = doc.childNodes[i];
mySelect.options.add(new Option(text.firstChild.nodeValue,i));
}
var obj =document.getElementById("returnDirectory"); //selectid
var index = obj.selectedIndex; // 选中索引
var text = obj.options[index].text; // 选中文本
var receiverEmail =document.getElementById("planReceiverEmail").value;