|
by: Torrance S. |
last post by:
Hi,
I have a class in an assembly that references a value in web.config
like this:
<appSettings>
<add key="mykey" value="myvalue"/>
</appSettings>
string temp = System.Configuration.ConfigurationSettings.AppSettings.Get("mykey");
|
by: Martin |
last post by:
Hi
I am noticing some strange behaviour in some asp.net pages that I have
put together and am hoping someone can explain to me what is
happening.
I have two domains hosted at oneandone.co.uk. My main domain points to
the root /. space in my account and contains various htm and aspx
pages that work just fine (well I had problems with Session state but
that's another story!) the web.config file for this 'app' resides in
|
by: Jeff Robichaud |
last post by:
Hello,
Since it is possible to put application settings in a file other than
web.config, I was wondering what is the best practice in doing so vs.
putting these settings directly in web.config. My point is that when I
deploy an application, I want to overwrite web.config all the time, because
the contents of this file has a direct impact on the application's overall
behavior. For example, the execution timeout for my app is 60 seconds,...
|
by: TB |
last post by:
Hi All:
This news group is proving to be great help on my path towards
mastering ASP.NET thanks to all of you helpful souls out there. I am
looking forward to the day when I can contribute with a few ounces of
hard-won knowledge as well.
Meanwhile I have this (hopefully small) problem.
On my local computer where I am developing a web application, I have
|
by: TB |
last post by:
Hi All:
This news group is proving to be great help on my path towards
mastering ASP.NET thanks to all of you helpful souls out there. I am
looking forward to the day when I can contribute with a few ounces of
hard-won knowledge as well.
Meanwhile I have this (hopefully small) problem.
|
|
by: Jim |
last post by:
Hey all, if anyone can help with this I would appreciate it. I'm
loading an XML file and modifying one of the nodes. Once I modify the
node, I call the .Save method on the XML document object and I keep
getting the message below:
The process cannot access the file "C:\Documents and
Settings\xxxxx\Desktop\Code\Test\Config.xml" because it is being used
by another process.
Any help in how to get around this would be appreciateed. I've...
|
by: Rob Dob |
last post by:
Hi,
How do I go about installing another Web Site Project inside my existing
VS2005 website project. I currently have both a forum WSP and my main WSP
application within the same solution. Both compile and run without error.
However they are separate applications and I would like to have them
together in order to make use of my masterpages, and share controls between.
Do I need to combine the web.config files? I figured I would just...
|
by: Keith |
last post by:
Hello all,
I have a C# Windows Forms app. It is in namespace App.GUI. It builds to Nav.exe. I have entered an application level setting using the designer. Its type is string, name is "FOO" and value is "monkey". I've tried the following ways to retrieve the value and only one works:
//Returns null
Configuration config = ConfigurationManager.OpenExeConfiguration(Assembly.GetEntryAssembly().Location);
string monkey =...
|
by: skneife |
last post by:
I have a Solution that contains a website and its web.config and
another project named testWebSite.
I need to access to the web.*config located in the website project
from testWebSite like this:
string dbCs =
ConfigurationManager.ConnectionStrings.ConnectionString;
This code failed and generates an exception because (it seems) that
the web.config is available only in the folder where it is.
So what is the solution for Access to a...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
|