More in this section
Forums / Developing with Sitefinity / Page Creator Email Address

Page Creator Email Address

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. jay
    jay avatar
    2 posts
    Registered:
    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
    Registered:
    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
            { 
                Response.Write(user.Email); 
            } 

    I hope this helps.

    Greetings,
    Ivan Dimitrov
    the Telerik team

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