首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

img.src = "SChart.aspx?now="+ now +"sqlWhere ="+encodeURICom

2012-08-08 
img.src SChart.aspx?now+ now +sqlWhere +encodeURIComponent(_sqlWhere)img.src SChart.asp

img.src = "SChart.aspx?now="+ now +"sqlWhere ="+encodeURIComponent(_sqlWhere);
img.src = "SChart.aspx?now="+ now +"sqlWhere ="+encodeURIComponent(_sqlWhere);
为什么SChart.aspx页面取不到sqlWhere的值?
string sqlWhere = System.Web.HttpContext.Current.Request.QueryString["sqlWhere"];

[解决办法]
img.src = "SChart.aspx?now="+ now +"&sqlWhere ="+encodeURIComponent(_sqlWhere);

[解决办法]

探讨

img.src = "SChart.aspx?now="+ now +"&sqlWhere ="+encodeURIComponent(_sqlWhere);

[解决办法]
探讨

img.src = "SChart.aspx?now="+ now +"&sqlWhere ="+encodeURIComponent(_sqlWhere);

[解决办法]
_sqlWhere 看看他有没有值呗
[解决办法]
加了空格可能就被当作字符串处理了吧?
[解决办法]
那你获取的就不能是“sqlWhere”而是“sqlWhere ”
[解决办法]
LZ真会玩

热点排行