如果是用 Request.QueryString["id"]; 都知道是获取当前url的参数,可是如何获取给定的url参数?
Uri uri = new Uri(hd_result.Value); string queryString = uri.Query; string result = getSimple(HttpUtility.ParseQueryString(queryString).Get("id"));
参考:http://www.cnblogs.com/gaizai/archive/2010/05/27/1743485.html
HttpUtility类:http://msdn.microsoft.com/zh-cn/library/system.web.httputility(v=vs.110).aspx