+1-888-365-2779
Try Now
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?

2 posts, 0 answered
  1. Bruno Michels
    Bruno Michels avatar
    125 posts
    Registered:
    16 Apr 2010
    04 Apr 2011
    Link to this post
    I have a Language Selector on my page. When I am in the URL

    /product/<code>

    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
    Registered:
    19 Sep 2016
    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