当前位置: 代码迷 >> ASP.NET >> img.src = "SChart.aspx?now="+ now +"sqlWhere ="+encodeURIComponent(_sqlWhere);该怎么处理
  详细解决方案

img.src = "SChart.aspx?now="+ now +"sqlWhere ="+encodeURIComponent(_sqlWhere);该怎么处理

热度:2582   发布时间:2013-02-25 00:00:00.0
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真会玩
  相关解决方案