473,385 Members | 1,461 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,385 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 7268
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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...

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.