473,413 Members | 1,789 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,413 software developers and data experts.

double qoutes in App.Config

hi,

I'm having troubles putting a string with double qoutes (") in it in an
application configuration file (App.Config).
The string i need to put in it is: '/profile "MS Exchange Settings" '

I tried it like this:

<add key="Argument" value="/profile "MS Exchange Settings""/>
<add key="Argument" value='/profile "MS Exchange Settings"'/>
<add key="Argument" value="/profile ""MS Exchange Settings"""/>
<add key="Argument" value="/profile """MS Exchange Settings""""/>
<add key="Argument" value="/profile """"MS Exchange Settings"""""/>

But none of them worked: they all gave an error.
Des anybody know how to do this,

thanks a lot,

Pieter
Nov 22 '05 #1
4 7279
DraguVaso wrote:
hi,

I'm having troubles putting a string with double qoutes (") in it in
an application configuration file (App.Config).
The string i need to put in it is: '/profile "MS Exchange Settings" '


As it's an XML file, have you tried this:

<add key="Argument" value="/profile &quot;MS Exchange Settings&quot;"/>

--

(O)enone
Nov 22 '05 #2
The escapes for reserved characters in Xml are different from VB, for the quote it's: &quot;

Marcie

On Wed, 27 Apr 2005 16:29:44 +0200, "DraguVaso" <pi**********@hotmail.com> wrote:
hi,

I'm having troubles putting a string with double qoutes (") in it in an
application configuration file (App.Config).
The string i need to put in it is: '/profile "MS Exchange Settings" '

I tried it like this:

<add key="Argument" value="/profile "MS Exchange Settings""/>
<add key="Argument" value='/profile "MS Exchange Settings"'/>
<add key="Argument" value="/profile ""MS Exchange Settings"""/>
<add key="Argument" value="/profile """MS Exchange Settings""""/>
<add key="Argument" value="/profile """"MS Exchange Settings"""""/>

But none of them worked: they all gave an error.
Des anybody know how to do this,

thanks a lot,

Pieter


Nov 22 '05 #3
"DraguVaso" <pi**********@hotmail.com> schrieb:
I'm having troubles putting a string with double qoutes (") in it in an
application configuration file (App.Config).
The string i need to put in it is: '/profile "MS Exchange Settings" '


XML Standards Reference -- Attributes
<URL:http://msdn.microsoft.com/library/en-us/xmlsdk/html/xmconattributes.asp>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 22 '05 #4
Thanks a lot everybody!

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:eq**************@TK2MSFTNGP14.phx.gbl...
"DraguVaso" <pi**********@hotmail.com> schrieb:
I'm having troubles putting a string with double qoutes (") in it in an
application configuration file (App.Config).
The string i need to put in it is: '/profile "MS Exchange Settings" '
XML Standards Reference -- Attributes

<URL:http://msdn.microsoft.com/library/en...attributes.asp

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 22 '05 #5

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

Similar topics

4
by: Fuzzyman | last post by:
There have been a couple of config file 'systems' announced recently, that focus on building more powerful and complex configuration files. ConfigObj is a module to enable you to much more *simply*...
4
by: DraguVaso | last post by:
hi, I'm having troubles putting a string with double qoutes (") in it in an application configuration file (App.Config). The string i need to put in it is: '/profile "MS Exchange Settings" ' ...
2
by: MasterChief | last post by:
I have the following statement in ASP. I was wondering how to get qoutes around the variables like DocLink and DocName. Is it only possible to get single tick marks instead of regular qoutes? ...
24
by: deko | last post by:
I'm trying to log error messages and sometimes (no telling when or where) the message contains a string with double quotes. Is there a way get the query to insert the string with the double...
2
by: RodBillett | last post by:
I have an ASP.NET web page that accepts querystring parameters. MyPage.aspx?DB=__??????????&ID=1 When I get into the page and look at Request.Querystring it shows as ...
16
by: Charles Law | last post by:
I have a string similar to the following: " MyString 40 "Hello world" all " It contains white space that may be spaces or tabs, or a combination, and I want to produce an array...
6
by: Benjamin Janecke | last post by:
Hi, I have to call a java-written soap webservice from a .NET client application. Unfortunately, the URL contains of a double slash "//", as u can see in this example: ...
1
by: Andrew Marlow | last post by:
Hello, I am new to java and need to write a program that uses an XML file for its configuration. I have an equivalent C++ program that uses libxml2 from gnome for this task. I wrapped this up in...
3
by: daniel.serrano | last post by:
when writing to config file, should i use c:\\temp\\myapp.log or c: \temp\myapp.log in the config file. It seems that all dotnetter say to use the first, but the whole world doesn't create config...
6
by: Joseph Stateson | last post by:
I just started calling a php module from html. I added "php rocket" from microsoft to FP2003 but dont think that is the cause. The problem is that I am getting a backslash before a double or...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...

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.