ajax新手问题:POST方式传参,服务器取不到值请高手帮忙看下代码 [问题点数:20分,结帖人greatking004]

Bbs1
本版专家分:0
结帖率 100%
Bbs1
本版专家分:0
Bbs1
本版专家分:0
Bbs6
本版专家分:8225
Blank
金牌 2011年12月 总版技术专家分月排行榜第一
2011年11月 总版技术专家分月排行榜第一
Blank
红花 2012年1月 .NET技术大版内专家分月排行榜第一
2011年12月 .NET技术大版内专家分月排行榜第一
2011年11月 .NET技术大版内专家分月排行榜第一
2008年3月 .NET技术大版内专家分月排行榜第一
Blank
黄花 2010年4月 .NET技术大版内专家分月排行榜第二
2008年2月 .NET技术大版内专家分月排行榜第二
Blank
蓝花 2010年3月 .NET技术大版内专家分月排行榜第三
2009年12月 .NET技术大版内专家分月排行榜第三
2009年4月 .NET技术大版内专家分月排行榜第三
Bbs3
本版专家分:896
Bbs1
本版专家分:0
Bbs1
本版专家分:0
Bbs2
本版专家分:155
Bbs1
本版专家分:0
Bbs3
本版专家分:581
Bbs1
本版专家分:0
Bbs3
本版专家分:581
Bbs1
本版专家分:0
Bbs1
本版专家分:0
Bbs5
本版专家分:2721
Bbs1
本版专家分:55
Bbs3
本版专家分:581
Bbs1
本版专家分:0
Bbs1
本版专家分:0
Bbs1
本版专家分:0
Bbs2
本版专家分:272
Bbs7
本版专家分:15280
Bbs2
本版专家分:104
Bbs1
本版专家分:1
Bbs1
本版专家分:0
Bbs1
本版专家分:0
Bbs1
本版专家分:0
为什么我的$_POST取不到
rn rn rn 新闻内容rnrn rnrn rnrnrnrn . rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrn rnrnrnrnrnrnrnrnrnrnrnrn rn rn以上是我表单页面rnrn rn rn 正确答案rn rn $val ) // $id就是题目的id, $val就是选择的答案rn $sql = 'SELECT `title`,`asr` FROM `tk` WHERE `id`='.$id; // 查询出正确答案rn $result = mysql_query( $sql );rn $row = mysql_fetch_array( $result );rn echo $row['title'] . ( $row['asr'] == $val ? ' 正确' : ' 错误' );rnrn// 其实只查询一次数据库,这样会效率高一些rn$answer = $_POST['answer'];rn$id = array_keys( $answer );rn$sql = 'SELECT `id`,`title`,`asr` FROM `tk` WHERE `id` IN ('.implode( ',', $id ).')';rn$result = mysql_query( $sql );rnwhile ( $row = mysql_fetch_array( $result ) )rn echo $row['title'] . ( $row['asr'] == $answer[$row['id']] ? ' 正确' : ' 错误' );rnrn?>rnrnrnrnrnrnrn这是我取值页面 怎么就不行呢
POST的变量取不到
在POST方法提交中,上一页定义的变量取<em>不到</em>,这是为什么?在FORM中设置的ACTION是正确的
取oracle的clob值取不到,请帮忙
select readme into :ls_readme from t_schools WHERE id = 1711;rn结果ls_readme是空的,而数据库确是有.rn
高手帮忙看下代码
Set Variable: "this X" = GetProperty ( "/spin6", _x )rn  Set Variable: "this Y" = GetProperty ( "/spin6", _y )rn  Set Variable: "spX" = GetProperty ( "/spin7", _x ) rn  Set Variable: "spY" = GetProperty ( "/spin7", _y )rn  Set Variable: "difX" = thisX - spXrn  Set Variable: "difY" = thisY - spY rn  Set Variable: "stepX" = 1 rn  Set Variable: "stepY" = 1 rn  Set Variable: "xStp" = difX / 5 rn  Set Variable: "yStp" = difY / 5rn  Set Property ("/spin7", X Position) = spX + xStp rn  Set Property ("/spin7", Y Position) = spY + yStp rnrnrn这什么错了rn
高手帮忙看下
gcc -g -o test lib1.o lib2.a -lpthreadrnrn为主要编译出了的test 程序,rn为什么 gdbrnfile test rn之后提示为,test 找<em>不到</em>调试符号呢?rn感谢<em>高手</em>帮助。
高手帮忙看下
[code=C/C++]rn#include rn#include rn#include rnrn#include rnvoid GetIpAddrList(char *pServerName)rnrn struct hostent *ipList;rn Sleep(100);rn ipList = gethostbyname(pServerName);rn if(ipList != NULL)rn rn while(*ipList->h_addr_list != NULL)rn rn struct in_addr tempAddr;rn memcpy(&tempAddr,*ipList->h_addr_list,sizeof(struct in_addr));rn printf("%s\n",inet_ntoa(tempAddr));rn ipList->h_addr_list++;rn rn rnrnint main()rnrn WORD wVersionRequested;rn WSADATA wsaData;rn int err;rnrn wVersionRequested = MAKEWORD( 2, 2 );rnrn err = WSAStartup( wVersionRequested, &wsaData );rn if ( err != 0 )rn rn /* Tell the user that we could not find a usable */rn /* WinSock DLL. */rn return;rn rnrn /* Confirm that the WinSock DLL supports 2.2.*/rn /* Note that if the DLL supports versions greater */rn /* than 2.2 in addition to 2.2, it will still return */rn /* 2.2 in wVersion since that is the version we */rn /* requested. */rnrn if ( LOBYTE( wsaData.wVersion ) != 2 ||rn HIBYTE( wsaData.wVersion ) != 2 )rn rn /* Tell the user that we could not find a usable */rn /* WinSock DLL. */rn WSACleanup( );rn return;rn rnrn FILE *pData = fopen("data.txt","r+b");rn if(pData == NULL)rn rn exit(EXIT_FAILURE);rn rn char szBuf[BUFSIZ];rnrn while(1)rn rn memset(szBuf,0,BUFSIZ);rn if(fgets(szBuf,BUFSIZ,pData))rn rn if(szBuf[strlen(szBuf)-1] == '\n')rn szBuf[strlen(szBuf) -1] = '\0';rn printf("%s\n",szBuf);rn GetIpAddrList(szBuf);rn rn elsern break;rn rn fclose(pData);rn// GetIpAddrList("www.baidu.com");rn// GetIpAddrList("www.sina.com.cn");rn// GetIpAddrList("www.sohu.com");rn getchar();rn return 0;rnrnrn[/code]rn想让各位<em>高手</em><em>帮忙</em><em>看下</em>,为什么通过注释的部分可以显示对应域名的ip,而通过我这种<em>方式</em>只能获取最后一个域名的ip地址呢?我的data.txt的内容是:rnwww.baidu.comrnwww.sina.com.cnrnwww.sohu.comrn请大虾<em>帮忙</em><em>看下</em> 。。。
新手代码问题,请高手帮忙
为什么我输入下面<em>代码</em>的时候出现了 两个错误 看不明白rn请<em>高手</em><em>帮忙</em>指出 我哪里出错了rnLIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16rnDebug/point.exe : fatal error LNK1120: 1 unresolved externalsrnError executing link.exe.rn[code=C/C++]#includernrnstruct Point rnrn int x;rn int y;rn;rnrnvoid main()rnrn Point pt;rn pt.x=5;rn pt.y=6;rn cout<
帮忙看下代码
我在DataList控件的模板里放了个chekbox控件,我想单独实例化这个控件,对控件的checked属性进行判断,rn<em>代码</em>如下:rn protected void chkall_CheckedChanged(object sender, EventArgs e)rn rn //CheckBox chkall= this.FindControl("chkall") as CheckBox;rn CheckBox chkall = this.DataList1.FindControl("chkall") as CheckBox;rn if (chkall.Checked == true)rn rn Response.Write("aaaaaaaaaaaaabbbbbbbbbbbbbbb");rn rn rn但是报错:未将对象引用设置到对象的实例。rn截图如下:rn[img=https://img-bbs.csdn.net/upload/201406/03/1401787220_337655.jpg][/img][img=https://img-bbs.csdn.net/upload/201406/03/1401787229_996390.jpg][/img]
新手,请高手帮忙看下这段代码,谢谢
初学perl,写了个关于文本比较的<em>代码</em>,实现的功能很简单,比较每行相同与否rnrn#!/usr/bin/perl -wrnrnopen (TEST1,"))rn $linenum ++;rn INNER:while (defined($line2 = ))rn chomp($line1);rn chomp($line2);rn if (($line1 eq $line2))rn print ("$line1 equal to $line2 at line $linenum\n");rn last INNER; rn rn elsern print ("$line1 not equal to $line2 at line $linenum\n");rn last INNER; rn rn rn rnrnclose (TEST1);rnclose (TEST2);rn rn现在的结果是,如果test1和test2行数相等就能比较出来,而不等的话多出的行则无法比较。请教<em>问题</em>出在哪?是不是while的条件?rnrn另外,类似这种文本比较,如何得到最高效率?rnrn谢谢!rnrnrnrn
ajax问题 帮忙看下
[code=JScript]function upnum(h_id)rnrnvar url = "InfoOnOff.asp?ID="+ h_idrnvar <em>ajax</em> = InitAjax();rn<em>ajax</em>.open("GET", url, true); rn<em>ajax</em>.onreadystatechange = function() rnrnif (<em>ajax</em>.readyState == 4 && <em>ajax</em>.status == 200) rnalert(h_id); rn rnrnrn<em>ajax</em>.send(null);rnrn[/code]rn这是js<em>代码</em>rn[code=VBScript]rnID = Request.QueryString ("ID")rnrnrn StrSQL="Update WebInfo Set Is_Commend=0 Where ID="&IDrn DbConn.Execute StrSQLrnrnDbConn.Close rnSet DbConn=Nothingrn[/code]rn这是asp<em>代码</em>rnrnrn)">rnrn这样写 是否正确 为什么我点击之后 数据库中的数据还是没有改变rn
checkbox问题(附代码),取不到值!
checkbox 在 datalist 中,但选中其中部分checkbox ,递交时什么也取<em>不到</em>rn如果取消其中一句" if(chk.Checked)",却可以取到全部checkbox的值rn怎么解决.rnrnrnrnrn主要<em>代码</em>如下:rnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrnrn ");rn rn rn rnrn
帮忙看看这段代码哪有问题,为什么取不到
rn
ajax异步调用为何取不到值?
页面上有如下两个radiobutton:rnrn 参加购礼包,加一元,送名表活动 rn rn 不参加购礼包,加一元,送名表活动rn要实现点击第一个数据库里相应的金额就变为1000(原价:999的礼包),点击第二个就还是999rn我用AJAX实现,<em>代码</em>如下:rn rnrn。。。。。。。rnif request.QueryString("yh")=1 then rn response.write("OK"); rnend if rn上面一段<em>代码</em>总执行不了,不知道是哪里有<em>问题</em>?rn向各位指教
ajax不到值 急 急 急!
$.<em>ajax</em>(rn type: "get",rn async : false,rn url:"http://172.18.22.100:8088/fish-web-yihua/rest/question/getDemandList?iType=2&id=12136&userCode=admin",rn dataType:"jsonp",rnrn success: function(json)rn alert(1);rn alert(json);rn , rn );rn );rnrn直接在网上输入地址url能够去到json值,为什么用<em>ajax</em>取<em>不到</em>,,又没报错,输出 undefindrn求<em>帮忙</em>
ajax,后台取不到hidden的值
<em>代码</em>如下,运行之后,在动态添加的那个文本框text_1中输入asd,然后点击下拉列表select,选第二项,然后进入.cs文件的select_SelectedIndexChanged函数,可是这时候我为什么取<em>不到</em>hidden里的值呢?,我把hidden改成text也不好使...rn请各位<em>高手</em>指点rn不多说,上<em>代码</em>,原来很复杂,我简化了下rn.aspxrn[code=HTML]rnrn...rnrnrn rn rn rn rn ...rn ...rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrn[/code]rnrn.jsrn[code=JScript]rnfunction fill(id_str)rnrn document.getElementById(globals.controlIdentities.hidden_test_1).value=document.getElementById(id_str).value;rn rn[/code]rnrn.csrn[code=C#]rnprotected void Page_Load(object sender, EventArgs e)rnrn int i=1;rn protected void show(i);rnrnrnprotected void show(int i)rnrn if(i==1)rn div_test.innerHtml="";rn if(i==2)rn div_test.innerHtml="";rnrnrnprotected void select_SelectedIndexChanged(object sender, EventArgs e)rnrn int selectedvalue=int.Parse(menu_test_choose.SelectedValue);rn string a=hidden_test_1.Value;//这里根本取<em>不到</em>hidden_test_1.Value,为什么呢?rn show(selectedvalue);rnrn[/code]
为什么ajax不到这个值呢?
以下<em>代码</em>,为什么$_POST['val']的值是没定义呢?请不吝赐教!谢谢!rnrn[code=javascript]rn rn 中奖记录rn rn rn rn IDrn 昵称rn 得奖rn 奖项内容rn 得奖时间rn 审核状态rn rn rn rn '; rn echo ' '. $i . ' ';rn echo ' '.$row['username'].'';rn if ($row['p']==6)rn echo ' 未中奖';rn elsern echo ' '.$row['prize'].'';rn rn echo ' ';rn echo ' '.$row['t'].' '; rn echo ' ';rn echo ' ';rn echo ''.date("Y-m-d ", $row['times']);rn echo ' ';rn echo ' ';rn echo ($row['s']==0?'未审核':($row['s']==1?'审核通过':'审核不通过'));rn echo ' ';rn echo '';rnrn ?> rn rn rn rn rn rn rn[/code]rnrn[code=php]rn
关于ajax中xmlHttp.responseXML取不到
[code=JScript]var xmlHttp;rnrnfunction createXMLHttpRequest()rn if(window.XMLHttpRequest) //Mozilla 浏览器rn xmlHttp = new XMLHttpRequest();rn else if(window.ActiveXObject) //IE浏览器rn tryrn xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");rn catch(e)rn try rn xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");rn catch(e)rn rn rn if(xmlHttp == null)rn alert("不能创建XMLHttpRequest对象");rn return false;rn rnrnrnfunction sendAsynchronRequest(url,parameter,callback)rn //步骤2:创建一个XMLHttpRequest对象rn createXMLHttpRequest();rn //步骤3:设置XMLHttpRequset对象的属性参数rn //3-1:设置onreadystatechange,保存一个回调函数指针rn if(parameter == null)rn xmlHttp.onreadystatechange = callback;rn //3-2:设置对<em>服务器</em>调用的参数rn xmlHttp.open("GET",url,true);rn //步骤4:调用send方法就会向<em>服务器</em>端发起一个异步请求,去访问由URL指定的资源(如:html jsp servlet action等)rn xmlHttp.send(null);rn //步骤5:<em>服务器</em>端处理完请求后开始返回response,并由XMLHttpRequest对象开始接收rn elsern xmlHttp.onreadystatechange = callback;rn xmlHttp.open("POST",url,true);rn //参数放置在请求体rn xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded;");rn rn xmlHttp.send(parameter);rn rn[/code]rnrn上面这个是<em>ajax</em>.js rnrn[code=JScript]function load(url)rn rn rn var loadDiv = document.getElementById("loadDiv");rn loadDiv.innerHTML = ""+"上传中,请稍后..."rn sendAsynchronRequest(url,null,loadCallBack);rnrnrn//处理用户登录结果的回调函数rnfunction loadCallBack()rn if(xmlHttp.readyState==4) rn alert(xmlHttp.status);rn if(xmlHttp.status==200) rn alert(xmlHttp.status);rn var xmlDoc=xmlHttp.responseXML;rn alert(xmlDoc);rn var message=xmlDoc.getElementsByTagName("message")[0];rn alert(message);rn var error=xmlDoc.getElementsByTagName("error")[0];rn var loadDiv = document.getElementById("loadDiv");rn if(message != null)rn loadDiv.innerHTML=""+message.firstChild.nodeValue+"";rn rn if(error != null)rn loadDiv.innerHTML=""+error.firstChild.nodeValue+"";rn rn rn elsern alert("请求的页面有异常");rn return false;rn rn rn[/code]rnrn这个是onload.jsrnrn我在页面引入这两个js。之后 是这么写的rn rnrn这个servlet是这么写的rn[code=Java]xml = MakeXML.makeXml("上传成功",true);[/code]rnrn别的是逻辑过程rnrn再就是 MakeXML rn[code=Java]package common;rnrnimport java.lang.reflect.Field;rnimport java.util.Iterator;rnimport java.util.List;rnrnpublic class MakeXML rn rn public static String makeXml(String message,boolean flag) throws Exceptionrn StringBuffer bf = new StringBuffer();rn bf.append("");rn bf.append("");rn if(message != null)rn if(flag) rn bf.append("");rn bf.append(message);rn bf.append("");rn else rn bf.append("");rn bf.append(message);rn bf.append("");rn rn rn bf.append("");rn return bf.toString();rn rn rn public static String makeXml(Object o,String message) throws Exceptionrn StringBuffer bf = new StringBuffer();rn bf.append("");rn bf.append("");rn if(message != null)rn bf.append("");rn bf.append(message);rn bf.append("");rn rn if(o != null)rn parseObject(o,bf);rn rn rn bf.append("");rn return bf.toString();rn rn rn public static String makeXml(List list,String message) throws Exceptionrn StringBuffer bf = new StringBuffer();rn bf.append("");rn bf.append("");rn if(message != null)rn bf.append("");rn bf.append(message);rn bf.append("");rn rn if(list != null)rn Iterator iter = list.iterator();rn while(iter.hasNext())rn Object o = iter.next();rn parseObject(o,bf);rn rn rn bf.append("");rn return bf.toString();rn rn rn rn private static void parseObject(Object o,StringBuffer bf) throws Exceptionrn Class c = o.getClass();rn Field[] fs = c.getDeclaredFields();rn //System.out.println(o.getClass().getSimpleName().toLowerCase());rn bf.append("");rn for(int i = 0;i < fs.length;i++)rn fs[i].setAccessible(true);rn bf.append(""+fs[i].get(o)+rn "");rn rn bf.append("");rn rn rn rn rn public static void main(String[] args) throws Exceptionrn rn rnrn[/code] rnrn就是这样喽,rn在执行的时候就出现<em>问题</em>。rnalert(xmlHttp.status);rn if(xmlHttp.status==200) rn alert(xmlHttp.status);rn var xmlDoc=xmlHttp.responseXML;rn alert(xmlDoc);rnrn在最后一个输出。根本没输出。也就是xmlHttp.responseXML无值。我哪里错了??
后台取不到ajax传的值
请求可以进入后台,但是ServletActionContext.getRequest().getParameter("XXX");拿<em>不到</em>指定的参数,我另外一个<em>ajax</em>请求格式和后台处理是一样的但是可以拿到值,我找<em>不到</em>原因在哪,请各位帮<em>帮忙</em>,<em>代码</em>如下:rn前台<em>ajax</em>:rn[code=Java]function replyMessage() rn var input = prompt("请输入你要回复的信息", "");rn var id = $('#messageId').val();rn if (input != null && input != "") rn $.<em>ajax</em>(rn url : 'message!sendMessage.action',rn type : 'get',rn date : rn input : inputrn ,rn async : false,rn success : function(msg) rn alert("success!");rn ,rn error : function(XMLHttpRequest, textStatus, errorThrown) rn alert("error");rn rn );rn rn [/code]rn后台request取值rn[code=Java]String context = ServletActionContext.getRequest().getParameter(rn "input");[/code]rncontext总是为null
高手帮忙看下这段代码!!
rn rn rn rn rn rn rn rn rn rn rn rn这是一段读取数据库一个字段的<em>代码</em>,可是他显示出来的字段默认是最后的一个字段,希望能请<em>高手</em>帮下忙。name是要读取的数据库字段。
高手帮忙看下这段代码
<em>代码</em>如下rnrnindex.htmlrn[code=javascript]rnrnrn rn rn rn rn rn rn rn rn rn rn rnrnrn rn rn rn Hide panelrn rn rnrn rn rn rnrnrn[/code]rnrnpanel.js:rn[code=javascript]rn$('.dropdown-toggle').dropdown();rnrnvar hidden=false;rnrn$("#paneltoggle").click(function() rn $("div.panel").toggle(1000);rn $("div.map").attr("style", "width:100%;");rn);rnrn[/code]rnrn我想点击按钮来隐藏面板,显示整块地图。 但现在点击Hide Panel按钮只能隐藏panel里的东西,但红色背景还是存在,而且地图部分不能变成100%。rnrn小弟初接触javascript,请版里<em>高手</em>指点。rn
Ajax和javascript传参方式
js方法封装入参数据   把js的以json形式<em>传参</em> {"sTitle":"操作","mData":"isReview","mRender":function(data,type,full){                         var info ={'ynBaseCustomerEnterpriseId':full.ynBaseCustomerEnterpriseId,    
ajax传参方式
**<em>ajax</em><em>传参</em><em>问题</em> <em>方式</em>一 前端: function deleteSearchHistory(b){ $.<em>ajax</em>({ url: context+&amp;quot;/service/expertRecommend/deleteSearchHistory&amp;quot;, type : '<em>post</em>', data:{&amp;quot;id&amp;quot;:(dataNew.data)[b].ID}, success : functi...
高手帮忙看下这段代码
能不能把下面的<em>代码</em>写成VB的<em>代码</em>rnrnbool ChangeMountPoint(LPCTSTR lpDriveLetter,LPCTSTR lpDevice,bool bAddMountPoint)rnrn bool bRet = false;rn TCHAR szDriveLetterAndSlash[4] = 0;rn TCHAR szDriveLetter[3] = 0;rn TCHAR szUniqueVolumeName[MAX_PATH] = 0;rn if(lpDriveLetter && lpDevice)rn rn szDriveLetter[0] = lpDriveLetter[0];rn szDriveLetter[1] = TEXT(':');rn szDriveLetter[2] = TEXT('\0');rn rn szDriveLetterAndSlash[0] = lpDriveLetter[0];rn szDriveLetterAndSlash[1] = TEXT(':');rn szDriveLetterAndSlash[2] = TEXT('\\');rn szDriveLetterAndSlash[3] = TEXT('\0');rn if ( bAddMountPoint )rn rn //Try to Attach lpDevice to lpDriveLetterrn bRet = DefineDosDevice (DDD_RAW_TARGET_PATH, szDriveLetter,rn lpDevice);rn rn if (bRet)rn rn if (!GetVolumeNameForVolumeMountPoint (szDriveLetterAndSlash,rn szUniqueVolumeName,rn MAX_PATH))rn rn //Can't Find Attached lpDevice 's VolumeNamern szUniqueVolumeName[0] = '\0';rn rn rn bRet = DefineDosDevice ( rn DDD_RAW_TARGET_PATH|DDD_REMOVE_DEFINITION|rn DDD_EXACT_MATCH_ON_REMOVE, szDriveLetter,rn lpDevice);rn rn if (!bRet)rn return bRet;rn rn bRet = SetVolumeMountPoint(szDriveLetterAndSlash, rn szUniqueVolumeName);rn rn rn elsern rn bRet = DeleteVolumeMountPoint (szDriveLetterAndSlash);rn rn rn rn return bRet;rn
ajax和asp的问题 高手帮忙看下 谢谢
// JavaScript Documentrnif (!window.XMLHttpRequest) rn window.XMLHttpRequest=function ()rn return new ActiveXObject("Microsoft.XMLHTTP");rn rnrn//@desc load a page(some html) via xmlhttp,and display on a containerrn//@param url the url of the page will load,such as "index.php"rn//@param request request string to be sent,such as "action=1&name=surfchen"rn//@param method POST or GETrn//@param container the container object,the loaded page will display in container.innerHTMLrn//@usage rn// <em>ajax</em>LoadPage('index.php','action=1&name=surfchen','POST',document.getElementById('my_home'))rn// suppose there is a html element of "my_home" id,such as "" rn//@author SurfChen rn//@url http://www.surfchen.org/rn//@license http://www.gnu.org/licenses/lgpl.html LGPLrnfunction GWAjax(url,request,method,container)rnrn method=method.toUpperCase();rn var loading_msg='Loading...';//the text shows on the container on loading.rn var loader=new XMLHttpRequest;//require Cross-Browser XMLHttpRequestrn if (method=='GET')rn rn urls=url.split("?");rn if (urls[1]=='' || typeof urls[1]=='undefined')rn rn url=urls[0]+"?"+request+"&fresh="+Math.random();rn rn elsern rn url=urls[0]+"?"+urls[1]+"&"+request+"&fresh="+Math.random();rn rn rn request=null;//for GET method,loader should send NULLrn rn loader.open(method,url,true);rn if (method=="POST")rn rn loader.setRequestHeader("Content-Type","application/x-www-form-urlencoded");rn rn container=document.getElementById(container);rn loader.onreadystatechange=function()rn if(loader.readyState == 0)rn container.innerHTML = "Sending...";rn rn if(loader.readyState == 1)rn container.innerHTML = "Loading...";rn rn if(loader.readyState == 2)rn container.innerHTML = "Response Loaded...";rn rn if(loader.readyState == 3)rn container.innerHTML = "Response Ready...";rn rn //if (loader.readyState==1)rn //rn //container.innerHTML=loader.responseText;rn //rn if (loader.readyState==4)rn rn if(loader.status==200)rn var strJSON=loader.responseText;rn rn try rn container.innerHTML=strJSON;rn catch(exception) rn alert(exception);rn rn //var rrr=result['content'];rn //var result=(eval(obj.content).toString());rn //container.innerHTML=strJSON;rn else if(loader.status == 404)rn container.innerHTML = "File not found";// add msgrn elsern container.innerHTML = "There was a problem retrieving the XML."; rn rnrn rn rn loader.send(request);rnrnrn//@desc transform the elements of a form object and their values into request string( such as "action=1&name=surfchen")rn//@param form_obj the form objectrn//@usage formToRequestString(document.form1)rn//@notice this function can not be used to upload a file.if there is a file input element,the func will take it as a text input.rn// as I know,because of the security,in most of the browsers,we can not upload a file via xmlhttp.rn// a solution is iframe.rn//@author SurfChen rn//@url http://www.surfchen.org/rn//@license http://www.gnu.org/licenses/lgpl.html LGPLrnfunction formToRequestString(form_obj)rnrn var query_string='';rn var and='';rn for (var i=0;i
关于ajax问题~~高手进来帮忙看下~
rnrnrnindex.htmrndiv id="thiscontent">正在载入数据……rn rnrnrn内容还是可以正常显示的~~不过IE老会提示“错误:尚为实现”rn请问是什么原因?rn具体可以看http://www.hz139.com/Help/Service/flow.htmrnrn还有<em>服务器</em>端除了用response.write escape(content)rn还有什么方法让取过来的数据不是乱码rnrn
这样做取不到数据吗?高手看下代码
[code=C#] /// rn /// Retrieve a list of all appointments listed in the Outlook calendar.rn /// rn /// Calendar Items DataSetrn public DataSet getCalendarDataSet()rn rn Microsoft.Office.Interop.Outlook.AppointmentItem item;rn DataSet ds = new DataSet();rn ds.DataSetName = "Calendar";rn ds.Tables.Add("Appointment");rn ds.Tables[0].Columns.Add("Subject");rn ds.Tables[0].Columns.Add("Location");rn ds.Tables[0].Columns.Add("Start");rn ds.Tables[0].Columns.Add("End");rn ds.Tables[0].Columns.Add("AllDayEvent");rn ds.Tables[0].Columns.Add("Duration");rn ds.Tables[0].Columns.Add("Organizer");rn ds.Tables[0].Columns.Add("Importance");rn ds.Tables[0].Columns.Add("Sensitivity");rn ds.Tables[0].Columns.Add("Body");rnrn tryrn rn objFolder = objNamespace.GetDefaultFolder(Microsoft.Office.Interop.Outlook.OlDefaultFolders.olFolderCalendar);rn Debug.WriteLine(objFolder.Items.Count + " Appointments found.");rn foreach (Microsoft.Office.Interop.Outlook.AppointmentItem itemw in objFolder.Items)rn rn ds.Tables[0].Rows.Add(new object[] rn itemw.Subject,rn itemw.Location,rn itemw.Start,rn itemw.End,rn itemw.AllDayEvent,rn itemw.Duration,rn itemw.Organizer,rn itemw.Importance,rn itemw.Sensitivity,rn itemw.Bodyrn );rn this.ItemProcessed();rn rnrn Debug.WriteLine(ds.Tables[0].Rows.Count + " Appointments exported.");rn rn catch (System.Exception e)rn rn Console.WriteLine(e);rn rn return ds;rn rn[/code]rnrnrn怎么绑到gridview上之后没显示任何东西啊?先谢谢大家了
ajax不到数据
http://localhost:8080/xx/zz.do 显示 out的 xml 数据rnrnxml.open("GET",arguments[0],true);// arguments[0]是 /xx/zz.dornrnxml.send();rnrnalert(arguments[0]);//这边有rnrnxml.onreadystatechange=function()rnrnalert("begin");//这边没有rnrnif(xml.readyState==4)rnrnif(xml.status==200)rnxmlData=xml.responseXML;rn.rn.rn.rn难道是url 写错了?? 谢 只有5分了
Ajax 问题高手帮忙
js接受<em>代码</em> var name=XMLHttpReq.responseXML.getElementsByTagName("name")[0].firstChild.nodeValue;rn rnjava<em>代码</em> rn List list = new ArrayList();rn PrintWriter out = response.getWriter();rn response.setContentType("text/xml; charset=UTF-8"); rn response.setHeader("Cache-Control","no-cache"); rn out.println(""); rn out.println(""+list+""); rn out.println(""); rnrn我想问的是js可以接到这个list对象吗?如果可以js怎么操作这个list
新手,持久化存储问题,附代码帮忙看下
本人想试着写个课程表的程序,其中想利用CEikDocument::ReStoreL()和StoreL()的方法来对课表进行存取,不过不太明白这两个函数如何使用,看参数貌似必须用到字典流,可是我自定义的课表类中并没有用到字典流。<em>高手</em>指点!如果类设计有什么<em>问题</em>,也请指出!rn[code]rnclass TCourseInfornrnpublic:rn TCourseInfo();rn TCourseInfo(TDesC& aName,TDesC& aAddr,TDesC& aTeacher,TInt aTime,TInt aBeginWeek,TInt aEndWeek);rn void ExternalizeL(RWriteStream& aStream) const;rn void InternalizeL(RReadStream& aStream);rn/*rn TInt operator>(const TCourseInfo& aCourseInfo);rn TInt operator iName;rn TBuf iAddr;rn TBuf iTeacher;rn enumrn rn At1_2,rn At3_4,rn At5_6,rn At7_8,rn At9_10rn iTime;rn TInt iBeginWeek;rn TInt iEndWeek;rn;rnrnTCourseInfo::TCourseInfo()rnrnrnrnTCourseInfo::TCourseInfo(TDesC& aName,TDesC& aAddr,TDesC& aTeacher,TInt aTime,TInt aBeginWeek,TInt aEndWeek)rnrn iName = aName;rn iAddr = aAddr;rn iTeacher = aTeacher;rn iTime = aTime;rn iBeginWeek = aBeginweek;rn iEndWeek = aEndWeek;rnrnrnvoid TCourseInfo::ExternalizeL(RWriteStream& aStream) constrnrn aStream<>iName;rn aStream>>iAddr;rn aStream>>iTeacher;rn iTime = aStream.ReadInt32L();rn iBeginWeek = aStream.ReadInt32L();rn iEndWeek = aStream.ReadInt32L();rnrnrnTBool TCourseInfo::operator==(const TCourseInfo& aCourseInfo)rnrn if(!iName.Compare(aCourseInfo.iName) && !iAddr.Compare(aCourseInfo.iAddr) && !iTeacher.Compare(aCourseInfo.iTeacher)rn && iTime == aCourseInfo.iTime && iBeginWeek == aCourseInfo.iBeginWeek && iEndWeek == iBeginWeek.iEndWeek)rn return ETure;rn else return EFalse;rnrnrnrnrnrnrnrnrnclass CSyllabusDB : public CBasernrnpublic:rn static CSyllabusDB* NewL();rn static CSyllabusDB* NewLC();rn rn void SaveToFileL();rn void ReadFromFileL();rn TBool AddToArray(const TCourseInfo& aCourseInfo);rn TBool DelACourse(const TCourseInfo& aCourseInfo);rn void DelAll();/////////////////////////////////////?????????????????????????????????????没写呢!!!!!rn TBool GetArrayStatus();//数组是否被修改,是:程序推出时要将Array写入文件;否:直接退出rn ~CClassScheduleDB();rn rn rnprivate:rn CClassScheduleDB();rn void ConstructL();rn rnprivate:rn CArrayFixFlat* iCoursesArray;rn TBool iChanged;rn RFs iFs;rn;rnrnCSyllabusDB::CSyllabusDB()rnrn iChanged = EFalse;rnrnrnCSyllabusDB::~CSyllabusDB()/////////////////////////////////////////////rnrn iFs.Close();rnrnrnCSyllabusDB* CSyllabusDB::NewL()rnrn CSyllabusDB* self = CSyllabusDB::NewLC();rn CleanupStack::Pop();rn return self;rnrnrnCSyllabusDB* CSyllabusDB::NewLC()rnrn CSyllabusDB* self = new (ELeave) CSyllabusDB();rn CleanupStack::PushL(self);rn self->ConstructL();rn return self;rnrnrnvoid CSyllabusDB::ConstructL()rnrn iCoursesArray = new(ELeave) CArrayFixFlat(20);rn User::LeaveIfError(iFs.Connect());rn iFs.MkDirAll(KFileStoreDir);rnrnrnvoid CSyllabusDB::SaveToFileL(TDesC& aFileName)rnrn TParse parsedName;rn iFs.Parse(aFileName,parsedName);rn rn CFileStore* store = CDirectFileStore::ReplaceLC(iFs,parseName.FullName(),EFileWrite);rn store->SetTypeL(KDirectFileStoreLayoutUid);rn rn RStoreWriteStream stream;rn TStreamId id = stream.CreateLC(*store);rn rn TInt count = iCoursesArray->Count();rn stream.WriteInt32L(count);rn rn TInt i;rn for(i = 0; i < count ; i++)rn rn streamSetRootL(id);rn store->CommitL();rn CleanupStack::PopAndDestroy();rnrnrnvoid CSyllabusDB::ReadFromFileL(TDesC& aFileName)rn rn TParse parsedName;rn iFs.Parse(aFileName,parsedName);rn rn CFileStore* store = CDirectFileStore::OpenLC(iFs,parseName.FullName(),EFileRead);rn store->SetTypeL(KDirectFileStoreLayoutUid);rn rn RStoreReadStream stream;rn TStreamId id = stream.OpenLC(*store);rn rn TInt count = stream.ReadInt32L();rn rn TInt i;rn for(i = 0; i < count ; i++)rn rn stream >> iCoursesArray->At(i);rn rn CleanupStack::PopAndDestory(2);//store,streamrn //return 0;rnrnrnTBool CSyllabusDB::AddToArray(const TCourseInfo& aCourseInfo)rnrn TInt i;rn for(i = 0; i < iCoursesArray->Count();i++)rn rn if(aCourseInfo == iCoursesArray->At(i))rn return EFalse; rn rn iCoursesArray->AppendL(aCourseInfo);rn return ETure;rnrnrnTBool CSyllabusDB::DelACourse(const TCourseInfo& aCourseInfo)rnrn TInt i;rn for(i = 0; i < iCoursesArray->Count();i++)rn rn if(aCourseInfo == iCoursesArray->At(i))rn rn iCoursesArray->Delete(i);rn return ETrue;rn rn rn return EFalse;rnrn[/code]
关于ajaxfileupload传参不到问题
这几天小白的大叔在搞一个图片上传的功能,其中遇到的一个<em>问题</em>令我百思不得其解,故来向大佬们取取经。rn<em>问题</em>是这样的:我通过<em>ajax</em>fileupload插件来完成上传功能,但是跑程序的时候就是各种的400报错,尝试各种方法无果 -0-rn下面上<em>代码</em>:rnjsp:[img=https://img-bbs.csdn.net/upload/201708/08/1502185240_60745.png][/img]rn[img=https://img-bbs.csdn.net/upload/201708/08/1502185259_59152.png][/img][img=https://img-bbs.csdn.net/upload/201708/08/1502185276_894076.png][/img]rncontroller:[img=https://img-bbs.csdn.net/upload/201708/08/1502185317_881575.png][/img]rn[img=https://img-bbs.csdn.net/upload/201708/08/1502185333_768378.png][/img]rn[img=https://img-bbs.csdn.net/upload/201708/08/1502185341_885938.png][/img]rn配置:[img=https://img-bbs.csdn.net/upload/201708/08/1502185423_925322.png][/img]rn报错信息:[img=https://img-bbs.csdn.net/upload/201708/08/1502185437_953256.png][/img]rnrn希望有大佬或者遇到过类似<em>问题</em>的小伙伴能够给我一些启发
获取不到post的值
[code=PHP]rnrn[/code]rn rn提交过去,却获取<em>不到</em><em>post</em>的值,用get的<em>方式</em>就可以。。。
新手问题,请高手帮忙
我新建了asp.net Web 服务,怎么会提示如下的错误:rnVisual Studio.net已检测到指定的web<em>服务器</em>运行的不是ASP.NET.1.1版,您将无法运行ASP.NET应用程序或服务.rn我已经运行了aspnet_regiis.exe文件了.怎么回事呢?rn
新手问题 高手帮忙
我在用servlet的时候,其中一个jsp中有一个radiogroup,不知道在servlet怎么接收radiogroup的返回值?rnrn谢谢~~
新手问题,请高手帮忙
Object[][] data = "张汇",new Integer(80),new Integer(70),new Integer(60),new Integer(210);rnnew Integer(80),这是指什么,这样声明是什么意思rnrn还想问问J2EE是什么,能详细说说吗
Session取不到问题
以前将登陆用户保存到Cookie中,现在想存到session中, 保存后在其它页面老取<em>不到</em>值..很是郁闷rn我有两个Handler类rnLoginHandler 中rncontext.Session.Add("userid", userid);rn另外一个Handler类 取这个useridrnrn调试了下 context.Session.count=0rn两个Handler类也都实现了 IRequiresSessionState, IReadOnlySessionState接口rn求<em>高手</em>解答...rn
iframe+Request.QueryString取不到值的问题
for(var i=0;irnrn请问各位大侠,我在TreeModeOnly.aspx.cx文件中通过Request.QueryString["ItemName"]总是不能获得值,应该怎么写才对?谢谢各位
session取不到值的问题
现象: 框架TP3.2.3 后端提供接口 供前端<em>ajax</em>调用 前后端不再同一个<em>服务器</em>上  1.会有跨域<em>问题</em> 解决 :每个接口文件在__construct 方法 添加header头 允许跨域  header("Access-Control-Allow-Credentials: true");//配合前端携带相同的sessionid header('Content-Type:text/ht
CheckBoxList取不到值的问题
<em>新手</em>第一帖,最近被这个<em>问题</em>困扰了很久,一直不知道如何解决,放到这里让大家看看,希望<em>高手</em>不吝赐教,同时,也别嘲笑我。rnrn主要要实现的目的是:1.从数据库中读取送有用户作为CheckBoxList1的items;2.将Ugroup字段的数据作为参考,存在就为checked,不存在就不选;3.通过按钮Button1把数据再写回去。rnrn现在主要的<em>问题</em>是:写回去时无法获得CheckBoxList1都选择了那些项!rnrn源<em>代码</em>附上:rn这部分是从数据库中读取送有用户作为CheckBoxList1的items,并将Ugroup字段的数据作为参考;rn[code=csharp]rn public partial class user_edit : System.Web.UI.Pagern rn protected void Page_Load(object sender, EventArgs e)rn rnrn if (!IsPostBack)rn rn rn bandtext();rn rnrn rnrn private void bandtext()rn rn if (Request.QueryString["id"] != null) //编辑用户rn rn string id = "select * from nUsers where id=" + Request.QueryString["id"];rn IList fid = DBHelper.ExecuteSql_ToList(id, null);rnrn foreach (var per in fid)rn rn //输出到view中;rn TextBox1.Text = per.Name.ToString();rn TextBox1.ReadOnly = true;rn // TextBox2.Text = per.Name.ToString();rn DropDownList1.SelectedItem.Text = per.Uright.ToString();rn if (per.Enabled == true)rn rn CheckBox1.Checked = true;rn rn elsern rn CheckBox1.Checked = false;rn rnrn //把所有用户全部绑定到CheckBoxList1中;rn string names = "select Name from nUsers order by id";rn IList cl1 = DBHelper.ExecuteSql_ToList(names, null);rn this.CheckBoxList1.DataTextField = "Name";rn this.CheckBoxList1.DataValueField = "Name";rn this.CheckBoxList1.DataSource = cl1;rn this.CheckBoxList1.DataBind();rnrn //将Ugroup的数据绑定到CheckBoxList1;rn string group = per.Ugroup.ToString();rn string[] st = group.Split(',');rn foreach (ListItem lItem in this.CheckBoxList1.Items)rn rn for (int i = 0; i < st.Length; i++)rn rn if (lItem.Value == st[i])rn rn lItem.Selected = true;rn //break;rn rn rn rn rn rnrn rn[/code]rnrnrn这部分回写rn[code=csharp]rn protected void Button1_Click(object sender, EventArgs e)rn rn //数据对应rn string Tpass = System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(TextBox2.Text.Trim(), "MD5");rn bool Tenableed;rn if (CheckBox1.Checked == true)rn rn Tenableed = true;rn rn elsern rn Tenableed = false;rn rn string Turight = DropDownList1.SelectedItem.ToString();rn string Tremark = DropDownList1.SelectedValue.ToString();rnrn string retval = "";rn for (int i = 0; i < this.CheckBoxList1.Items.Count; i++)rn rn if (this.CheckBoxList1.Items[i].Selected == true)rn rn retval += CheckBoxList1.Items[i].Text.ToString();rn // Response.Write(this.CheckBoxList1.SelectedItem.Value);rn rn rn //Label2.Text = retval;rn retval = retval.TrimEnd(',');rn Response.Write("ceshi" + retval);rnrnrn string Tugroup = retval;rnrn string sql = "update nUsers set Password=@pass ,Enabled=@enableed,Uright=@uright,Ugroup=@ugroup,Remark=@uremrk where id = " + Request.QueryString["id"];rn int x = DBHelper.ExecuteSql(sql, new pass = Tpass, enableed = Tenableed, uright = Turight, ugroup = Tugroup, uremrk = Tremark );rn rn bandtext();rn rnrnrnrn[/code]
xmlNodeListGetString取不到值的问题
rnrnecharge_query_lockedrn1001rn85104004rn118rn20051021144733rn144733210302rn106012rnrn0rn0rnrnrnrnrn1rn103rn10000rn0348800121887489rn20051021102626rnrnrn1rn103rn10000rn0348800121887490rn20051021095955rnrnrn1rn103rn10000rn0348800121887491rn20051021102329rnrnrnrnrn收到的xml是这样的 rn但是 取值的时候printf出来都是null 节点的name也显示出来都是正确的 请问这是怎么回事啊
session取不到问题
我用PHP Version 5.2.6,现在在A.php中$_session['tt']='tt';点击超链接转到b.php中,取<em>不到</em>值。sessionID生成了,好像每个页面都生成一个。大家知道这是什么原因吗?谢谢了rn网上找了好多,发现都是以前版本出现这个<em>问题</em>,现在大家能不能指点下,万分感谢
不到值的问题">request.form("")取不到值的问题
画面结构为rn最上面(head)有一个FRAME,下面(body)左右各一个FRAMErn现在是点击上面FRAME(head)的一个按钮来刷新(body)的页面。rn(head)的FORM1里面设了一个隐藏值name="aaa",rn按钮点击时FORM1.submit()rnrnFORM1.method = "<em>post</em>";rnFORM1.target="body";rnFORM1.action=body的url;rnFORM1.submit();rnrn然后body.asp刷新时request.form("aaa")的值是空值。rnrn<em>问题</em>出在哪里?是不是这种方法做得不对阿?
DropDownList取不到值的问题
[code=csharp]rnrnrn protected void Page_Load(object sender, EventArgs e)rn rn if (!IsPostBack)rn rn DropDownList2.DataSource = new ProjectTypeServer().GetAll();rn DropDownList2.DataBind();rn rn rnrn protected void ImageButton1_Click(object sender, ImageClickEventArgs e)rn rn rn if (DropDownList2.SelectedIndex == -1)rn rn PageBase.alert(Page, "系统错误");rn return;rn rnrn[/code]rnrn页面上面是能够读取出来下拉框的,一点击按钮提交就报空值,出完错点确定之后下拉框就没有值了,我根踪调试了一下,发现点击按钮之后DropDownList2.Item.Count的值为0,这是何解?从来没有遇到过这样的<em>问题</em>
URLConnection POST方式传参总结
URLConnection POST<em>方式</em><em>传参</em>总结 HTTP Post方法用于向<em>服务器</em>提交数据,写法比Get方法稍微复杂那么一点,这里总结一下Post<em>方式</em><em>传参</em>的几种方法1、  一个或者多个参数,以form形式提交,提交形式如“name=zhangsan&amp;amp;password=123456”,提交<em>代码</em>如下(只是关键语句,不是完整<em>代码</em>): URL<em>post</em>Url = new URL(&quot;your url...
Volley Post 方式传参失败
在项目中遇到的<em>问题</em>,<em>服务器</em>总是收<em>不到</em>参数,使用的是<em>post</em>的<em>传参</em><em>方式</em>。 使用 StringRequest 来进行<em>传参</em>。因需要设置头文件和Params进行传输。重写了 getHeaders() 函数。经过捕获数据进行调试之后,发现是因为 getHeaders() 里面写了headers.put("Content-Type", "application/json; charset=utf-8");导致
get和post的区别(传参方式
 传值的方法有2种,   这两种<em>方式</em>跟HTTP请求时所使用的请求<em>方式</em>直接相关: GET / POST   get和<em>post</em>的区别首先:从本质上区别   1.GET用于信息获取(查)  工   2.POST表示可能修改变<em>服务器</em>上的资源的请求(增删改)   再者:从表现形式上区别   1.如果使用GET请求,需要传递参数时,只能通过URL传值   2.如果使用POST请求,需要传递参数时,能够通过表...
phpstrom get能取到值,post不到值,解决方法
phpstrom get能取到值,<em>post</em>取<em>不到</em>值,解决方法:需要设置phpstrom, 参考http://www.wwwquan.com/show-66-641-1.html
PHPStorm中$_POST和$_FILES取不到问题
今天晚上被这个<em>问题</em>一直困扰,研究了好久终于找到原因了。是端口号的<em>问题</em>。必须设置PHPStorm与Apache端口一致,才能使用。特此记录。 PHPStorm端口设置:
帮忙啊,取不到cookie值
做自动下载网页数据rn用vb.net自带的webbrowser控件取得cookie比ie(ver8)取得cookie少两个值。rn
cookie取不到值,帮忙看看
rn在login.aspx页面点按钮rnprotected void btnLogin_Click(object sender, ImageClickEventArgs e)rn rnHttpCookie cookie = new HttpCookie("COOKIES_USERINFO");rn cookie.Value = "aaa";rn cookie.Expires = System.DateTime.Now.AddYears(1); //1年rn cookie.Path = string.Empty;rn Response.Cookies.Add(cookie); rnrn Response.Redirect("~/index.aspx");rnrnrn在index.aspx页面Page_Load取值rnResponse.Cookies["COOKIES_USERINFO"].Valuern为空rnrn哪里有<em>问题</em>吗?IE设置cookie是可用的。
PHP表单提交POST取不到
废话不说 直接上<em>代码</em>rn前台<em>代码</em>rn[code=html]rnrnrn rn Insert title herern rnrnrn rn rn rn 姓名rn rn rn rn 年龄rn rn rn rn 性别rn rn rn rn rn rn rnrnrn[/code]rn后台rn[code=php]rn
新手!请高手帮忙
如何检查一个字符串是否含有单引号或双引号?谢谢!!
不到值,求大神帮忙
取<em>不到</em>值,通过测试list里面有值,但 取<em>不到</em>值n n n n $emp.idn $emp.namen $emp.agen $emp.gendern $emp.birthn $emp.salaryn $emp.deptnon n n n n n n n n n List list = simp.findAll(); n req.setAttribute("list", list);n req.getRequestDispatcher("/find.jsp").forward(req,res);n
新手,请高手帮忙!!!
是这样,小弟我最近学完.net想要找工作,但是工作经验,自己动手做过一些网站,马上工作了,请各位资深人氏指点一二,该怎么找工作。rn我的简历上写的有工作经验1年,一般项目用到的技术,请简单介绍一下,好应付面试。rn另外,如果哪位有.net方面的简历,能否发给我,我只要关于项目经历方面的描述就好。rn谢谢rn我邮箱是619703@163.com
新手,请高手帮忙
1、我创建了一个类EmployeeSTE保存基本信息,还有一些方法。rn2、在EmployeeQueryForm页面类中我定义了一个EmployeeSTE的实例ste,rn在页面中用到了这个实例ste。query.aspxrnrn rn rn rn .............................rn rn rn rn rn rn rn rn .............................rn rn rnrnrn3、我在EmployeeQueryForm页面类中定义了一个打印按钮的方法rn private void print_Click(object sender, System.EventArgs e)rn rn //另一个命名空间的方法rn namespace.print.printDataGrid(Page);rn rn4、我在使用打印按钮操作时,错误如下:rn rnLine 197: rnLine 198: rnLine 199: rnLine 200: rnrn 我是初学,说得不够明白,还请见谅。那位<em>高手</em>能给帮一下,我怎么才能解决这个<em>问题</em>。rn我在printDataGrid方法中这是作了一些隐藏按钮一类的操作。
js修改了控件值,服务器代码不到
控件是用的html控件,就一个文本框。其他的文本框又可以,试过了把其他的拷过来改名也是一样的。rn程序控制已经检查了,没有发现有限制。
帮忙看下不到30行的代码!
[code=Assembly]rndata segmentrn num dw 0rn ary dw 100 dup(0)rndata endsrncode segmentrn assume cs:code,ds:datarnstart: mov ax,datarn mov ds,axrn lea si,aryrnlop: mov ah,1 ;10行rn int 21hrnlop1: cmp al,13 ;回车?rn jz exitrn cmp al,32 ;空格?rn jz loprn and al,0fhrn cbwrn mov bx,axrn mov al,10rn mul byte ptr num ;20行rn add ax,bxrn mov num,axrn jmp lop1rn mov [si],numrn add si,2rn jmp loprnexit: mov ah,4chrn int 21hrncode endsrn end startrn;24和27行出现<em>问题</em>,我用的masm5.0的编译器rn;哪位高人<em>帮忙</em>该该,这个程序就是用来将用户输入的数据存放在指令内存中.rn;谢谢了!rn[/code]
cookie取不到
在项目中遇到html页面需要做一些记忆操作,选择把记忆操作的值存储在cookie中,遇到了某些页面可以获取有些页面获取<em>不到</em>,查阅了一番资料发现cookie也是有路径权限的。 cookie默认路径:当前访问的servlet父路径。 例如:我在http://localhost:8080/myProject/a/b/c/test.html页面设置了一个cookie,我在myProject/a/b/c...
request.QueryString()取不到
我做一个产品展示,在Produclist.aspx页面中列出产品图片和名称,想在Productdetail.aspx页面中显示详细信息,rn<em>代码</em>如下rn.....rn想利用 request.QueryString["productId"进行进一步查询,可是却接收<em>不到</em>值我做了一天了,希望高人指教
为什么取不到值?
其实我的本意是就让html控件间相互赋值rn以下<em>代码</em>取<em>不到</em>值。显示的是 [undefined]rnfunction Button1_onclick() rnrn document.getElementById("Text1").innerText = rn document.getElementById("Button1").Value ; rn rnrndocument.getElementById("Button1") 后面根本没有Value的选项。但是我确实定义了呀。
xmlhttp.responseXML.getElementsByTagName取不到值。
var xmlhttp = new XMLHttpRequest();rnxmlhttp.open('POST', '../servlet/<em>ajax</em>Servlet', true);rn rnxmlhttp.onreadystatechange = function() rn if (xmlhttp.readyState == 4) rn if (xmlhttp.status == 200)rn alert(xmlhttp.responseXML.xml);rn alert(new XMLSerializer().serializeToString(xmlhttp.responseXML.getElementsByTagName("div")[0])); rn rn rnrn我修改<em>服务器</em>端送回来的xml字段(xmlhttp.responseXML.xml),rn如果是 " test";rn就取<em>不到</em>值。rnrn如果是 " test",就能alert出来。rnrn和解? rn怎么样才能把第一种情况的div值取出来?rn
存储过程取不到
用mysql写了个存储过程,写了张临时表,然后想用游标循环这个表中的某个字段,定义游标和写入临时表的数据都没有<em>问题</em>,但用游标循环的时候就报错了,错误是rn1329 - No data - zero rows fetched , selected, or processedrnrn以下是<em>代码</em>,请<em>帮忙</em>解决一下,谢谢rnrn[code=SQL]rnbeginrnrn DECLARE mysql VARCHAR(1000) CHARSET utf8;rn DECLARE s_column VARCHAR(1000);rn DECLARE e_column VARCHAR(1000);rn DECLARE cash_total decimal(12,2);rn DECLARE estateId int;rn DECLARE cash_max decimal(12,2);rnrn DECLARE cur CURSOR FOR SELECT DISTINCT(ESTATE_ID)rn FROM tmp_cash_record;rnrn /* Create temporary table */rn DROP TABLE IF EXISTS tmp_cash_record;rn CREATE TEMPORARY TABLE tmp_cash_record(rn `ESTATE_ID` int NOT NULL,rn `ESTATE_NAME` varchar(50) collate utf8_unicode_ci NOT NULL,rn `CUSTOMER_NAME` varchar(50) collate utf8_unicode_ci NOT NULL,rn `CUSTOMER_ADDRESS` varchar(50) collate utf8_unicode_ci NOT NULL,rn `CUSTOMER_TEL` varchar(50) collate utf8_unicode_ci NOT NULLrnrn ) DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;rnrn /* Create temporary table */rn DROP TABLE IF EXISTS tmp_cash_record_estate;rn CREATE TEMPORARY TABLE tmp_cash_record_estate(rn `ESTATE_ID` int NOT NULL,rn `ESTATE_NAME` varchar(50) collate utf8_unicode_ci NOT NULL,rn `CASH_TOTAL` decimal(12,2) NOT NULL default '0.00',rn `TOTAL` decimal(12,2) NOT NULL default '0.00',rn `CASH_TOTAL_RATE` decimal(12,2) NOT NULL default '0.00',rn `CUSTOMER_TOTAL` int NOT NULL,rn `CASH_MAX` decimal(12,2) NOT NULL default '0.00'rn ) DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;rnrnrnrnrn SET s_column = "ESTATE_ID, ESTATE_NAME, YF_MONEY,CUSTOMER_NAME, CUSTOMER_ADDRESS, CUSTOMER_TEL";rn SET mysql = CONCAT('insert into tmp_cash_record(',s_column,')' );rn SET mysql = CONCAT(mysql ,"select s.ESTATE_ID, s.ESTATE_NAME, r.YF_MONEY, c.CUSTOMER_NAME, c.CUSTOMER_ADDRESS, c.CUSTOMER_TEL" );rn SET mysql = CONCAT(mysql, " FROM cash_record_", regionCode, " AS r, sys_estate_2_0_", regionCode, " AS s, cash_record_customer_", regionCode, " AS c");rn SET mysql = CONCAT(mysql, " WHERE r.id = c.CASH_ID AND s.ESTATE_ID = c.ESTATE_ID AND r.CASH_DATETIME BETWEEN '",beginDate," 00:00:00' and '",endDate," 23:59:59' " );rnrn SET @sql = mysql;rn PREPARE stmt FROM @sql;rn EXECUTE stmt;rn DEALLOCATE PREPARE stmt;rnrnrn SET mysql = CONCAT('insert into tmp_cash_record(',s_column,')' );rn SET mysql = CONCAT(mysql ,"select s.ESTATE_ID, s.ESTATE_NAME, r.YF_MONEY, c.CUSTOMER_NAME, c.CUSTOMER_ADDRESS, c.CUSTOMER_TEL" );rn SET mysql = CONCAT(mysql, " FROM cash_record_history_", regionCode, " AS r, sys_estate_2_0_", regionCode, " AS s, cash_record_customer_", regionCode, " AS c");rn SET mysql = CONCAT(mysql, " WHERE r.id = c.CASH_ID AND s.ESTATE_ID = c.ESTATE_ID AND r.CASH_DATETIME BETWEEN '",beginDate," 00:00:00' and '",endDate," 23:59:59' " );rnrn SET @sql = mysql;rn PREPARE stmt FROM @sql;rn EXECUTE stmt;rn DEALLOCATE PREPARE stmt;rnrn SELECT ifnull(sum(YF_MONEY) , 0)INTO cash_total FROM tmp_cash_record;rn SET e_column = "ESTATE_ID, ESTATE_NAME, CASH_TOTAL,TOTAL, CASH_TOTAL_RATE, CUSTOMER_TOTAL,CASH_MAX";rnrn SET mysql = CONCAT('insert into tmp_cash_record_estate(',e_column,')' );rn SET mysql = concat( "SELECT ESTATE_ID, ESTATE_NAME,SUM(YF_MONEY) , ", cash_total, " AS 'CASH_TOTAL', ROUND(SUM(YF_MONEY) *100/",cash_total,", 2) , COUNT(DISTINCT CUSTOMER_TEL),0.00");rn SET mysql = concat(mysql, " from tmp_cash_record group by ESTATE_NAME ORDER BY CASH_TOTAL DESC LIMIT ", pageCount, " , ", pageSize, ";");rnrn SET @sql = mysql;rn PREPARE stmt FROM @sql;rn EXECUTE stmt;rn DEALLOCATE PREPARE stmt;rnrn OPEN cur;rn FETCH cur INTO estateId;rnrn WHILE ( estateId is not null) DOrnrn SELECT MAX(CASH) FROM(SELECT sum(t.YF_MONEY) as 'CASH' FROM tmp_cash_record AS t GROUP BY t.CUSTOMER_TEL) AS NUM INTO cash_max;rn SET mysql = CONCAT("UPDATE tmp_cash_record_estate SET CASH_MAX = ",cash_max," WHERE ESTATE_ID =", estateId);rn SET @sql = mysql;rn PREPARE stmt FROM @sql;rn EXECUTE stmt;rn DEALLOCATE PREPARE stmt;rnrnrn FETCH cur INTO estateId;rn END WHILE;rn CLOSE cur;rnrnrnrn /*SELECT COALESCE(COUNT(distinct ESTATE_NAME),0) INTO totalCount FROM tmp_cash_record;*/rnrnendrn[/code]
不到隐藏域的值
正在学习ASP+javascriptrnrnrnrn rn rnrn 隐藏域的值是[color=#FF0000][/color]rn rnrn红颜色的,取<em>不到</em>值rn而绿颜色的,能取到值rnrn这是什么原因呢?rn
jquery 取不到
[code=JScript]rn var $element = $('body:not(.drupalorg-site-main.front) #edit-search-theme-form-1'),rn value = $element.siblings('label').text();rn[/code]rnrnrn[code=HTML]rn rn Search Inkebook.com rn rn rnrn[/code]rnrnvalue为什么没取到值, rn我是用firebug , 在这个页面(http://www.inkebook.com/)执行一下<em>代码</em>rnrn提示:TypeError: element is nullrn[在此错误处中断] rnrnvalue = element.siblings('label').text();
session值取不到
我有一个seesion是在异步方法中赋值的,当session的保存<em>方式</em>是InProc时没<em>问题</em>,但是现在为了session不丢失,把session的保存<em>方式</em>改为StateServer,但是改后session值就取<em>不到</em>了。我跟踪已经确定是在异步方法中赋值取<em>不到</em>,其他地方给session赋值都可以取到。求助!
为何取不到值,
QUESTION:1rn dim conn as new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=i:\web\d.mdb")rn dim objcmd as OleDbCommand=new OleDbCommand("showbulletin",conn)rn objcmd.CommandType=CommandType.StoredProcedurern dim objPara as OleDbParameterrn objpara=objcmd.Parameters.add("@id",Oledbtype.integer)rn objpara.direction=parameterDirection.Inputrn objpara.value=3rnrn dim objreader as OleDbDataReaderrn tryrn objcmd.connection.open()rn objreader=objcmd.executeReaderrn lbltitle.text=objreader.getstring(0)rn lbldate.text=objreader.getstring(2)rn txttext.text=objreader.getstring(1)rn txtnickname.text=objreader.getstring(3)rn catch ex as OleDbExceptionrn throw exrn finallyrn conn.closern end tryrnrnSQL SENTENCE:rntable:bulletin ,manrnSELECT [bulletin].[title], [bulletin].[text], [bulletin].[noticedate], [bulletin].[reply], [man].[nickname]rnFROM bulletin LEFT JOIN man ON [bulletin].[relatedman]=[man].[id]rnWHERE [bulletin].[id]=[@id]rnORDER BY [bulletin].[noticedate] DESC;rn在数据库中查询是正常的,ID为自增型。rnrn运行错误提示:No data exists for the row/column.rn但是如果objcmd.executescalar却能返回第一个字段的值!rn求解!rnQUESTION 2:rnrnDATAGRID中,SELECT后触发db_onselect事件;有个查询rnSELECT TOP 40 bulletin.id,bulletin.title FROM bulletinrn当在DATAGRID中选取某行时,如何得到该行bulletin.id的值。rn我用 提示:rn'DataBinding' is not an event of 'System.Web.UI.WebControls.ButtonColumn'rn该如何解决?rn谢谢!rn
为什么取不到
rnrnrnrnrnrnrnrnrn rn rn rn rn 当前位置:首页 -> 论坛 -> 发表新言论成功rn rn rn rn rn 返回个性论坛rn 返回java论坛rn rn rn
Request.QueryString取不到
一个页面A放一个GridView,一个页面B放FormViewrnFormView里有一个ImageButton(一个“赞”)rn现在就是想实现,点一下就+1(初始值是0),于是用Request.QueryString去取页面A的GV里的被选中的id。rn可是取<em>不到</em>,这是为什么?rnrn[code=csharp]protected void btngood_Click(object sender, EventArgs e)rn rn string god=Request.QueryString["id"];rn string connectionString = ConfigurationManager.ConnectionStrings["lijunConnectionString"].ConnectionString;rn SqlConnection cnn = new SqlConnection(connectionString);rn string st = "update Article set good=good+1 where artid='"+@god+"'";rn cnn.Open();rn SqlCommand cmd = new SqlCommand(st, cnn);rn SqlDataReader rdr = cmd.ExecuteReader(); rn [/code]rn
WebBrowser.StatusText 取不到
WebBrowser 文档内容加载完成后,鼠标没有进行在页面上滚动或移动到其他链接上的一次操作, 在点击超链接弹出新窗口的时候 StatusText 为空,这个怎么解决?rnprivate void browser_NewWindow(object sender, System.ComponentModel.CancelEventArgs e)rn rn var _url = ((System.Windows.Forms.WebBrowser)sender).StatusText; rn browser.Navigate(_url);rn e.Cancel = true;rn
ViewBag取不到
HomeController 下的Index Action,ViewBag.test="123"rn然后在前台有个按钮,点击按钮发送Ajax请求到后台的GetData()方法rnGetData()方法下 ViewBag.test = "456";rn但是前台<em>ajax</em>的回调函数里取@ViewBag.test值还是"123"rn如果在GetData()方法中设置ViewBag.test2 = "456"; 前台取@ViewBag.test2值为空。rn请教这是怎么回事?对MVC还不是特别熟悉,请指点。rn
不到datagird的值,
private void getInput()rn rn DataTable dt =( DataTable) (ViewState["myDataTable"]) ;rn// foreach (DataGridItem di in this.dgDetails.Items)rn// rn//rn// if (di.ItemType == ListItemType.Item || di.ItemType == ListItemType.AlternatingItem)rn// rnrnrnrn for(int i=0;i
Request.Form 取不到
我在服务端的gridview中手写了一个gridview.Rows[0].cells[0].Text = "",然后客户端的gridview里生成了一个输入框。我输入任意值然后点按钮提交,想用Request.Form["bud_Summary_Nm"]来取得我输入的值,结果取<em>不到</em>,有哪位<em>高手</em>遇见过次<em>问题</em><em>帮忙</em>解决一下,谢谢。
不到值,怎么回事???
rn有一个用户控件 .ASCX 文件rnrn他里面包含了,一个Repeater控件,而Repeater控件中 又 包含了一个标签控件 LabelrnrnRepeater数据已经绑定,现在要在 这个用户控件中的后台编码文件中 取 Label的值,rnrn 试了好多边取<em>不到</em> ????rnrnResponse.Write(((Label)rpt.Items[1].FindControl("lbl")).Text);rn
RS233技术文摘总结下载
1. RS-232-C 详解 2. 串口通信基本接线方法 3. 串口通讯的概念及接口电路 4. 有关 RS232和RS485接口的问答 5. 同步通信方式 6. 通信协议7. 实战串行通讯 8. 全双工和半双工方式 9. 浅析 PC 机串口通讯流控制 10. 奇偶校验 11. 开发通信软件的技术与技巧 12. 接口技术的基本知识 13. 一个单片机串行数据采集/传输模块的设计 14. 单工、半双工和全双工的定义 15. 从 RS232 端口获得电源 16. 串行同步通信的应用 17. 串行通信波特率的一种自动检测方法 18. RS-232、RS-422 与RS-485 标准及应用 19. 串 相关下载链接:[url=//download.csdn.net/download/fengweichangzi/2709032?utm_source=bbsseo]//download.csdn.net/download/fengweichangzi/2709032?utm_source=bbsseo[/url]
非常好用的取颜色小工具,奉献给大伙下载
非常好用的取颜色小工具,奉献给大伙享用,收藏多时了,呵呵 相关下载链接:[url=//download.csdn.net/download/qq348852348aa/3267950?utm_source=bbsseo]//download.csdn.net/download/qq348852348aa/3267950?utm_source=bbsseo[/url]
c++ 实验 继承 派生下载
do-while语句编程,求自然数1-10的和;并用for语句改写此程序。 (2)编程计算图形的面积。程序可计算圆形、长方形、正方形的面积,运行时先提求用户选择图形的类型,然后,再要求用户对圆形输入半径值,对长方形输入长与宽,对正方形输入边长,计算出面积的值后,在屏幕上显示出来。 相关下载链接:[url=//download.csdn.net/download/michaelniu1990/4266149?utm_source=bbsseo]//download.csdn.net/download/michaelniu1990/4266149?utm_source=bbsseo[/url]
我们是很有底线的