Example #1
0
        /// <summary>
        /// Creates a language link
        /// </summary>
        /// <param name="language">The language</param>
        /// <returns>A Link with the current Url, the GET-params when there and the language param</returns>
        private string CreateLanguageLink(string language)
        {
            string queryString = WebTools.GetAllQueryStringParams(String.Empty, this.QueryStringParameterName);
            string format      = string.Concat(this.Page.Request.Url.AbsolutePath, "?{0}");

            return(string.Format(CultureInfo.InvariantCulture,
                                 format, string.Concat(this.QueryStringParameterName, "=", language, queryString)));
        }