2014-01-29 22 views

回答

0

您可以使用HttpServerUtility.UrlEncode

這裏是一個MSDN環節爲HttpServerUtility.UrlEncode

string destinationURL = "http://www.contoso.com/default.aspx?user=test"; 
NextPage.NavigateUrl = "~/Finish?url=" + Server.UrlEncode(destinationURL);