比如在chrome瀏覽器地址欄中輸入localhost:10000/abc.aspx?name=你好啊,請問怎樣在對應的aspx.cs中獲取到這個中文,不是亂碼
uj5u.com熱心網友回復:
System.Web.HttpUtility.UrlDecode(Request["name"]);System.Web.HttpContext.Server.UrlDecode(Request["name"]);
uj5u.com熱心網友回復:
Request.QueryString("name")uj5u.com熱心網友回復:
要轉碼的 1,2合并使用即可’uj5u.com熱心網友回復:
1樓的應該就可以了uj5u.com熱心網友回復:
URL要編碼轉載請註明出處,本文鏈接:https://www.uj5u.com/net/46367.html
標籤:ASP.NET
上一篇:創建多個子檔案夾
