473,406 Members | 2,217 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Web.config reading the appSetting

Hi everyone,

I'm tring to read the appSettings from my Web.config file in Visual
Studio.Net (Code behind page) and it doesn't recognize
ConfigurationSettings.AppSetting? Yet it works in my .aspx page.

Any idea?

Thank you
Maz
Nov 17 '05 #1
1 1301
Add:
using System.Configuration

to the top of your page

"Maziar Aflatoun" <ma***@rogers.com> wrote in message
news:ML******************@news01.bloor.is.net.cabl e.rogers.com...
Hi everyone,

I'm tring to read the appSettings from my Web.config file in Visual
Studio.Net (Code behind page) and it doesn't recognize
ConfigurationSettings.AppSetting? Yet it works in my .aspx page.

Any idea?

Thank you
Maz

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: wuji | last post by:
Hi ! I understand that dotNet offers app.config to store application configuration as below: <configuration> <appSetting> <add key="MySettingKey1" value="MySettingValue1" /> <add...
4
by: Jeffrey Palermo [MCP] | last post by:
I use web.config files in many directories, and my aspx files can access the AppSettings. If I have a subdirectory Foo with an aspx, and Foo has a local web.config that defines an AppSetting. My...
3
by: Mads Brydegaard | last post by:
Hi, I have created a custom Config handler for reading a custom config section in my .config file(s) It works very well! I have placed a web.config in my root directory and then I use sub...
2
by: siaj | last post by:
Hello, I want to Read the value of the debug option from the Web.config file in My ASP.NEt application. The Section is <compilation defaultLanguage="vb" debug="true" /> Can someone help me with a...
2
by: Tim::.. | last post by:
Hi can someone please tell me why I can't put the following LDAP path into my web.config fill as an <appSetting> and how do I get it to work! <appSettings> <add key="strLDAP"...
16
by: Timm | last post by:
I'm trying to use ASP objects (basically formed and populated based on Web.Config settings) and I want to use them in a different non-asp program with minimal reprogramming. So, my question is how...
6
by: Mats-Lennart Hansson | last post by:
Hi, In a windows service, I have some appSettings. If I during runtime changes one of the values, is it availabele to the service from that moment? Or do I have to restart the service before I can...
4
by: John Bailo | last post by:
What's the cost of using a web.config key in a web method? Is the value cached at start up? Or at first run? Or read on each access? Is web.config always "read off the disk" or can the...
5
by: alf | last post by:
Hi folks, I'm trying to read a web.config section using RoleManagerSection settings = (RoleManagerSection)System.Configuration.ConfigurationManager.GetSection("system.web/roleManager"); and I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.