title: How to access SharePoint web part properties?
body: <p>I have created a feature for SharePoint 2007 that has a web part. I have added a custom property to the web part like so:</p>
  
  <pre><code>[Personalizable(PersonalizationScope.Shared)]
  [WebBrowsable(true)]
  [Category("My Custom Properties")]
  [WebDisplayName("ServiceURL")]
  [WebDescription("The URL for the Wcf service")]
  public string ServiceURL { get; set; }
  </code></pre>
  
  <p>Along with this web part, I've added a custom page that the web part will have a link to. I would like to reference the web part property from the custom page, but I don't know where these properties are stored. I've tried to access it using the code below, but both property collections don't have any properties stored.</p>
  
  <pre><code>SPFeaturePropertyCollection spProperties = SPContext.Current.Site.Features[this.FeatureGuid].Properties;
  </code></pre>
  
  <p>or</p>
  
  <pre><code>SPFeaturePropertyCollection spProperties = SPContext.Current.Site.Features[this.FeatureGuid].Definition.Properties;
  </code></pre>
  
  <p>My question is how can I get a reference to the web part property from other pages?</p>