More in this section

Forums / Developing with Sitefinity / I want to use sitefinity with RadControls

I want to use sitefinity with RadControls

3 posts, 0 answered
  1. Joao Araujo
    Joao Araujo avatar
    1 posts
    Registered:
    03 Aug 2009
    04 Aug 2009
    Link to this post

    Requirements

    RadControls version
    2009.02

    .NET version
    3.5

    Visual Studio version
    2008

    programming language
    C#


    PROJECT DESCRIPTION
    I am developing a web site where Admins, customers, and agent will be able to see information regarding their activity on the system.

    I is much like a Checking Account web site, not that complex, where the customer sees only what is related to his account, but admins and supervisors have a broader view of the data stored.

    My question is, can I use Sitefinity to develop it, considering I have to capture information from  the logged in customer in order to identity and associate the transactions directed to a personal account to a certain user? Can I use the api to identity the logged in user and its id, including also its role on the system?



    Thanks a lot,

  2. Brian
    Brian avatar
    14 posts
    Registered:
    01 Dec 2007
    07 Aug 2009
    Link to this post
    sure thing.   Sitefinity membership is based off the Asp.Net membership.

    Get the user name by accessing the HTTPContext.

    string username = HttpContext.Current.User.Identity.Name; 

    You can also see if the user is in a specific role

       if (!this.Context.User.IsInRole("Managers")) 


  3. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    07 Aug 2009
    Link to this post
    Hi Joao Araujo,

    Yes, you can use Sitefinity for this purpose. In addition to the previous reply, we are using the standard membership provider and create a RolePrincipal object whenever user logs in. You can play with this object and see what properties it has.

    Best wishes,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the newTelerik Support Portal.
    Check out the tipsfor optimizing your support resource searches.
Register for webinar
3 posts, 0 answered