我想在asp中加一個鏈接,指向asp.net網(wǎng)頁,但asp.net的網(wǎng)址是經(jīng)過HttpUtility.UrlEncode變形和HttpUtility.UrlDecode變回的,而asp的server.urlencode卻產(chǎn)生不了和HttpUtility.UrlEncode一樣的編碼,請問有沒有解決辦法
補充:原來asp.net的是"web.aspx?str="+HttpUtility.UrlEncode(str)
和HttpUtility.UrlDecode(Request.QueryString["str"].ToString().Trim())
而asp的是"web.aspx?web.aspx?str="+server.urlEncode( server.URLpathencode(str))
asp.net提交端為:"web.aspx?str="+ HttpUtility.UrlEncode( str,System.Text.Encoding.GetEncoding("gb2312"))
asp.net接收端為:str= HttpUtility.UrlDecode(Request.QueryString["str"].ToString().Trim(),System.Text.Encoding.GetEncoding("gb2312"))
其中str為需要傳遞的變量
本站僅提供存儲服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請
點擊舉報。