More in this section

Forums / Developing with Sitefinity / Page Creator Email Address

Page Creator Email Address

2 posts, 0 answered
  1. jay
    jay avatar
    2 posts
    02 Aug 2008
    09 Feb 2009
    Link to this post
    is it possible to programatically put the email address of the creator of a page on that page?

    I want to have a mailto link so visitors to my website can email the person who posted a blog entry.

    thanks for any help.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    10 Feb 2009
    Link to this post
    Hi jay,

    Here is an example that will return the email if the page owner

      CmsPageBase cmsPage = this.Page as CmsPageBase; 
            MembershipUser user = UserManager.Default.GetUser(cmsPage.CmsPage.Owner); 
            if (user != null

    I hope this helps.

    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
2 posts, 0 answered