Standard Posted by maxi326 Posted on September 28, 2009 , Monday Posted under Programming Comments Leave a comment Encoding Error When Passing Value in Url Title: 使用URL傳參數出現亂碼 Use the following to solve the problem. HttpUtility.UrlEncode()/UrlDecode() And this method save you from some XSS attacks too ^_^ 用下列方法就編碼可以 HttpUtility.UrlEncode()/UrlDecode() 這會同時避開某部份XSS攻擊 Advertisements Like this:Like Loading... Related ASP.NETC#QueryStringURL亂碼 Post navigation ← 新竹敗家日記 2009/09/25 Request.Params vs Request.QueryString → Leave a Reply Cancel reply Enter your comment here... Please log in using one of these methods to post your comment: Email (required) (Address never made public) Name (required) Website You are commenting using your WordPress.com account. ( Log Out / Change ) You are commenting using your Google+ account. ( Log Out / Change ) You are commenting using your Twitter account. ( Log Out / Change ) You are commenting using your Facebook account. ( Log Out / Change ) w Cancel Connecting to %s Notify me of new comments via email.