|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
System.Configuration.ConfigurationSettings.AppSettings.Get("...")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 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 Show quoteHide quote "RSH" <way_beyond_o***@yahoo.com> wrote in message news:ejJ3QarbGHA.1208@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.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 Show quoteHide quote "Mike Lowery" <selfspam@mouse-potato.com> wrote in message news:ueYBo4sbGHA.4604@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" <way_beyond_o***@yahoo.com> wrote in message > news:ejJ3QarbGHA.1208@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.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 >> > >
.exe from within a form
Help trimming off filename from path Attempted to read or write protected memory clearing all the lables on a form in vb.net 2005 Help! Something adds 1 hour to my datetimes! :-S Saving a data table to a MS Access database help in search&replace for ArrayList Troubled saving a clipped region from an image to disk as transparent Phone recording device Outlook session on client PC |
|||||||||||||||||||||||