System.Configuration.ConfigurationSettings.AppSettings.Get("...")

  • Thread starter Thread starter RSH
  • Start date Start date
R

RSH

Hi,

I have a situation where I am attempting to print the contents of an
AppSettings property in the aspx file of my website. Basically here is the
code I am using:
<% Response.Write("Email:" &
System.Configuration.ConfigurationSettings.AppSettings.Get("WebMasterEmail")
) %>
The Email part of the string prints out but not the WebMasterEmail property
of the AppSettings.

What am I missing???

Thanks,
Ron
 
It works in the CodeBehind, but I need a way to access the property in the
ASPX page.

I suppose I could rearchitect it to call a procedure in the codebehind
file...but I am reworking an existing site and I have to do this in many
places throughout the site.

Thanks,
Ron
 
Back
Top