/// <summary> /// Transfer to the SAE details /// </summary> /// <param name="toxicityId"></param> private void TransferToSAEDetails(int?toxicityId) { // get params var urlParams = PageUtil.GetUrlPairs(Request.Url.Query); if (urlParams.ContainsKey("toxicityId")) { urlParams["toxicityId"] = toxicityId + ""; } else { urlParams.Add("toxicityId", toxicityId + ""); } if (urlParams.ContainsKey("patientItemId")) { urlParams["patientItemId"] = PatientItemId.Value + ""; } else { urlParams.Add("patientItemId", PatientItemId.Value + ""); } string saeURL = string.Format("PatientToxicitiesSAE.aspx?{0}", PageUtil.CreateUrlPairs(urlParams)); // go to SAE details Response.Redirect(saeURL, true); }
/// <summary> /// Returns a list of of User entered parameters and values /// </summary> /// <returns></returns> protected virtual IDictionary <string, string> GetUserParams() { Dictionary <string, string> postedParams = new Dictionary <string, string>(); // paramaters passed as single encoded query param string paramsQS = Request.QueryString["params"]; // move to POST??? if (!string.IsNullOrEmpty(paramsQS)) { // decode: param1%3Dvalue1%26para2%3Dvalue2 -> param1=value1¶2=value2 string decodedQS = Server.UrlDecode(paramsQS); postedParams = PageUtil.GetUrlPairs(decodedQS); } return(postedParams); }