问号传值?出现乱码问题。

首先取到值:并有Server.UrlEncode 进行转换。

   string dw = ViewState["orgname"].ToString();
dw = Server.UrlEncode(dw);

页面传值正常传。

 Response.Write(" <script   language=javascript> window.open   ( 'jc.aspx?guid=" + guid + "&dw=" + dw + " ',  '借出信息表',   'height=320,   width=700,   top=200,left=270,   toolbar=no,   menubar=no,   scrollbars=no,   resizable=no,  location=no,   status=no ') </script> ");


//Response.Redirect("xuanren.aspx?userid=" + userid + "&sjdw=" + sjdw + "&bjdw=" + bjdw + "&bid=" + bid);

接受传值的时候也需要解下码:用

Server.UrlEncode 

 string dw = Server.UrlDecode(Request.QueryString["dw"].ToString());



posted on 2012-03-30 11:22  小东北  阅读(1589)  评论(0编辑  收藏  举报