日期:2014-05-20  浏览次数:20399 次

接收参数问题,非常奇怪!请大家帮忙!
我在服务器端代码:
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 "]