Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

app.config ... how to show "<" less than sign

Status
Not open for further replies.

lminmei

Programmer
Feb 1, 2000
111
US
i have a key with a value of a sql statement....
so now i'm trying to figure out a way to use the less than sign

here's my code....

<add key="sqlString" value="SELECT * FROM hats WHERE serial < 8000"/>

i error out at the "less than" sign before the 8000

any ideas of how to get around this???
 
Use the XML entity value for the less-than symbol -- [ignore]&lt;[/ignore]

Others are:
[tt]
[ignore] &amp;[/ignore] -- & -- Ampersand
[ignore] &gt;[/ignore] -- > -- Greater-than symbol
[ignore]&quot;[/ignore] -- " -- double quote
[ignore]&apos;[/ignore] -- ' -- single quote
[/tt]

Chip H.


If you want to get the best response to a question, please check out FAQ222-2244 first
 
Chiph,
thanks for the help...
but how would i use that entity value in my sql string?
 
NEVERMIND!!!! duh...
i got it to work!
thanks chiph!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top