当前位置: 代码迷 >> ASP.NET >> 接收参数有关问题,非常奇怪!请大家帮忙
  详细解决方案

接收参数有关问题,非常奇怪!请大家帮忙

热度:530   发布时间:2013-02-26 00:00:00.0
接收参数问题,非常奇怪!请大家帮忙!
我在服务器端代码:
private   void   C1WebGrid2_ItemDataBound(object   sender,   C1.Web.C1WebGrid.C1ItemEventArgs   e)
{

e.Item.Attributes.Add( "onDblclick ",   "window.open( 'vilby_detail.aspx?tj=肃宁县 ', ' ', 'width=600,height=400 ') ");


}
在vilby_detail.aspx的cs中用Request[ "tj "].ToString();为什么只有两个字(肃宁)?
真是奇怪,非常郁闷!请大家帮忙,不胜感激!

------解决方案--------------------------------------------------------
string js = string.Format( "window.open( '{0}?tj={1} ', ' ', 'width=600,height=400 ') ", " 'vilby_detail.aspx ",Server.Encode( "肃宁县 "));
e.Item.Attributes.Add( "onDblclick ",js);

string tj=Request.QueryString[ "tj "]
  相关解决方案