More in this section
Forums / Sitefinity SDK / How to make Language Selector send URL Route Values?

How to make Language Selector send URL Route Values?

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Bruno Michels
    Bruno Michels avatar
    125 posts
    16 Apr 2010
    04 Apr 2011
    Link to this post
    I have a Language Selector on my page. When I am in the URL


    And click to change the language I get redirected to /product

    My page is /product and I am getting the parameter with

    var pageParams = Page.RouteData.Values["Params"as string[];
    Is there a way I can keep the parameters when I change the language?

    public class LanguageSelector : SimpleScriptView
    Name: Telerik.Sitefinity.Web.UI.LanguageSelector
    Assembly: Telerik.Sitefinity, Version=4.0.1210.0

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    07 Apr 2011
    Link to this post
    Hello Bruno,

    Can you provide some more details about the result you would like to achieve. Also you can use GetUrlParameters  that is an extension method of ControlExtensions.

    Kind regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered