More in this section

Forums / Developing with Sitefinity / [Provider]guid and localised url

[Provider]guid and localised url

2 posts, 0 answered
  1. Pierre
    Pierre avatar
    433 posts
    16 Feb 2006
    28 Sep 2009
    Link to this post
    Using gerUrl i have some problems to get my localised pages .

    GetUrl by NewsView return localised "en"
    http://localhost:51976/Project/en/Productos/09-09-27/hello.aspx by NewsView

    this.PageUrl is a ~/Services.aspx selected from Localised Dialog cmsPage selector
    ResolveUrl(this.PageUrl) + GetItemUrl("[" + this.ProviderName + "]" + content.ID.ToString(), true);
    http://localhost:51976/Project/Products/09-09-27/hello.aspx by SimpleControl

    Some better way to get my localised paths.

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    29 Sep 2009
    Link to this post
    Hi Pierre,

    You can use UrlHelper class. Sample code is shown below:


    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
2 posts, 0 answered