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

Forums / Developing with Sitefinity / Post to dynamic page

Post to dynamic page

2 posts, 0 answered
  1. Ron
    Ron avatar
    1 posts
    Registered:
    27 Jun 2010
    04 Aug 2010
    Link to this post
    I recently created a Sitefinity project that serves as a vendor portal.  I created a user control and uploaded to the site.  Next, I created a sample page with the user control shown.  So far everything works fine.  The user controls content should be loaded based on the user login to the portal.  My question is, how can I send information concerning the logged in user to a dynamic page.  I created my own providers and replaced the Sitefinity providers.  I am using the Sitefinity login page.  The sitefinity login page seems to be the place for me to perform the work that is required; however, I do not understand how to get at custom provider information and pass this information along to the next page.

    Thanks

    Ron
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    08 Aug 2010
    Link to this post
    Hello Ronald,

    1. You can add logic in your user control and from there check the current user and decide what will be shown. By default you can use GetCurrentUserRoles and GetCurrentUser methods of UserManager class.

    2. You can get the user from HttpContext.Current - context.User or return Thread.CurrentPrincipal

    3. You can use QueryString or Cookies to pass some data between pages or controls.


    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