title: Getting particular property value from particular page in episerver
body: <p>I need to get the property value for user given property of user given page in episerver...
  for that i write a method..</p>
  
  <pre><code> public string GetContent(string pageName, string propertyName)
      {
          var contentTypeRepo = ServiceLocator.Current.GetInstance&lt;IContentTypeRepository&gt;();
          IEnumerable&lt;ContentType&gt; allPageTypes = contentTypeRepo.List();
          var currentpage = allPageTypes.Where(x =&gt; x.Name.ToLower() == pageName);
          var pageId = currentpage.First().ID;
          var pageRef = new PageReference(pageId);
          var contentRepository = ServiceLocator.Current.GetInstance&lt;IContentRepository&gt;();
          var page = contentRepository.Get&lt;PageData&gt;(pageRef);
          var content = page.GetPropertyValue(propertyName);
          return content;
      }
  </code></pre>
  
  <p>But I can not get the correct page by pageType ID...it is get some other page ....so this is what my requirement...
  user given page name and property name and the get method will return corresponding property value...
  Thanks.....</p>