1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Error when selecting ProviderName from ContentSelector

Error when selecting ProviderName from ContentSelector

3 posts, 0 answered
  1. William Chang
    William Chang avatar
    12 posts
    Registered:
    05 Apr 2010
    22 Apr 2010
    Link to this post
    I created a control that use the Generic Content module, but I need to select a content item by the Provider Name. The ContentSelector has a drop-down list of Providers, but when I select one I get a very weird error (doesn't look like it's relative to my code). Is this a bug with Sitefinity? Is there a simple workaround, like can I set the ContentSelecter to a specific ProviderName?

    Error:
    Exception Details: System.Web.HttpException: Multiple controls with the same ID 'BlogsDataSource' were found. FindControl requires that controls have unique IDs.

    Code Snippet of ContentSelector:
    [WebEditor("Telerik.Cms.Engine.WebControls.ContentSelector, Telerik.Cms.Engine")]
    [Browsable(true), DisplayName("Content Selector"), Description("The content seletor.")]
    public Guid ContentId {get;set;}
     
    [Browsable(true), Description("Gets or sets the name of the data provider that will be used to retrieve shared content. If the value is empty or null, the default data provider will be used.")]
    public String ProviderName {get;set;}

    Thank you for helping,
    William Chang
  2. William Chang
    William Chang avatar
    12 posts
    Registered:
    05 Apr 2010
    22 Apr 2010
    Link to this post
    *bump*

    Help please?
  3. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    23 Apr 2010
    Link to this post
    Hello William Chang,

    This is a known bug in the ContentSelector when exposed in a control, but it works fine for all built-in controls. You need to use a custom selector as this one I created in this post - Web Editor


    I would like to make a not that the response time in forums is 72 hours.

    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.
Register for webinar
3 posts, 0 answered