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
"Mike Lowery" <se******@mouse-potato.com> wrote in message
news:ue**************@TK2MSFTNGP02.phx.gbl...
Just a guess, but I think this method may only work with Windows Forms,
not ASP.Net. Here's another way to do it:
http://www.odetocode.com/Articles/345.aspx
"RSH" <wa*************@yahoo.com> wrote in message
news:ej**************@TK2MSFTNGP02.phx.gbl... 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.AppSett ings.Get("WebMasterEmail")
) %>
The Email part of the string prints out but not the WebMasterEmail
property of the AppSettings.
What am I missing???
Thanks,
Ron