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

Forums / General Discussions / Use usercontrol in page (external?)

Use usercontrol in page (external?)

3 posts, 0 answered
  1. DrGiorgini
    DrGiorgini avatar
    5 posts
    Registered:
    13 Jul 2010
    15 Nov 2010
    Link to this post

    Hello, we have deploy a personal "Membership provider" (with Role and profiling) and we have created some usercontrols:

    login
    profile
    recoverypassword
    logout
    ...

    this usercontrols are called from any webapps without any problem ( with a similar asp-include method ).

    Now I want to use this control in my cms site.

    If I add my control in web.config, and drag it in sitefinity page, the result is a redirect to main page...
    ok, my controls it's designed to live in a normal page, not a sitefnity page... it's strange, but it's possible.

    So, I've created a aspx page using one of my master page (in App_theme), but I've no menu's and no style it's included..

    I want to share this usercontrols between different webapps, not only in sitefinity, so I not want to extend a sitefinity class or interface... so I think that get the look it's the simply way, but It's possible to get Menu and style from context and use in a external aspx? 

    Note: My version is Sitefinity 3.7

    Best regards!

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    15 Nov 2010
    Link to this post
    Hi Ser-Vis,

    You can add the following declarationof RadMenu control  in your external page ( it should be part of the current application)

    <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" ShowStartingNode="false" />
    <telerik:RadMenu ID="RadMenu1" runat="server"   DataSourceID="SitemapDataSource1" >
    </telerik:RadMenu>

    Another option is using a web service call that populates the control. You can take a look at this post.


    Greetings,
    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
  3. DrGiorgini
    DrGiorgini avatar
    5 posts
    Registered:
    13 Jul 2010
    15 Nov 2010
    Link to this post
    very fast, thank!
Register for webinar
3 posts, 0 answered