日期:2014-05-17  浏览次数:20425 次

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真会玩