/// <summary> /// The get image class url. /// </summary> /// <param name="parameters"> /// The parameters. /// </param> /// <returns> /// The get image class url. /// </returns> public static string GetImageClassUrl(string parameters) { var paramClass = new HiddenImageParameters(); paramClass.LoadParametersFromString(parameters); // get the encoded parameters string encodedParams = paramClass.CreateEncodedParameterString(); // url encode and return... return(string.Format("id={0}", HttpUtility.UrlEncode(encodedParams))); }
/// <exception cref="CryptographicException">The value of the <see cref="P:System.Security.Cryptography.SymmetricAlgorithm.Mode" /> parameter is not <see cref="F:System.Security.Cryptography.CipherMode.ECB" />, <see cref="F:System.Security.Cryptography.CipherMode.CBC" />, or <see cref="F:System.Security.Cryptography.CipherMode.CFB" />.</exception> public static string GetImageClassUrl(string parameters) { var paramClass = new HiddenImageParameters(); paramClass.Parameters.AddRange(parameters.ParseParametersAsKeyValuePairs()); // get the encoded parameters string encodedParams = paramClass.CreateEncodedParameterString(); // url encode and return... return string.Format("id={0}", HttpUtility.UrlEncode(encodedParams)); }