各位高手,我想做一个数据查询并导出数据到excel文件的功能,
先提交查询xml命令:
strXml+="<Search>";
strXml+="<Action>Enterprise</Action>";
strXml+="<Area>"+recOrgArea.value+"</Area>";
strXml+="<Status>"+recOrgStatus.value+"</Status>";
strXml+="</Search>";

objHTTP  = new ActiveXObject("Msxml2.XMLHTTP");
objHTTP.open("POST","Rpt_ProcCommand.aspx",false);
objHTTP.send(strXml); 然后在Rpt_ProcCommand.aspx.cs文件中查询数据,并生成一个excel,然后再下载到客户端,这样的一个方式,该怎么写代码?
急!!!!!