I am able to access the value of a property defined in the Settings.settings file in my class file SomeClass.cs as such:
TestProject.Properties.Settings property
Thats because Settings
class is defined as internal
.
You can workaround that with something like this on your code-behind:
...
public string Test { get; set; }
...
this.Test = WebApplication1.Properties.Settings.Default.Test;
...
And back in your aspx:
<%= this.Test %>
But I suggest you to use web.config
to store settings stuff.