using System.Deployment.Application; using System.Web; using System.Collections.Specialized; private NameValueCollection GetQueryStringParameters() { NameValueCollection col = new NameValueCollection(); if (ApplicationDeployment.IsNetworkDeployed) { string queryString = ApplicationDeployment.CurrentDeployment.ActivationUri.Query; col = HttpUtility.ParseQueryString(queryString); } return col; }