Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - less than and greater than signs/response.write

Reply
 
Old 11-11-2008   #1 (permalink)
RICK


 
 

less than and greater than signs/response.write

Pulling data from a database with response.write. The fields have "<" and
">" signs. How can I get the full field to display. Currently, the fields
are being truncated at the signs.

Rick

My System SpecsSystem Spec
Old 11-11-2008   #2 (permalink)
Tim Williams


 
 

Re: less than and greater than signs/response.write

response.write Server.HTMLEncode(yourtext)

http://msdn.microsoft.com/en-us/library/ms525347.aspx

Assuming you mean ASP...

Tim

"RICK" <RICK@xxxxxx> wrote in message
news:8CDC5E06-7A67-415D-BAA0-2B1503598AE3@xxxxxx
Quote:

> Pulling data from a database with response.write. The fields have "<" and
> ">" signs. How can I get the full field to display. Currently, the
> fields
> are being truncated at the signs.
>
> Rick

My System SpecsSystem Spec
Old 11-11-2008   #3 (permalink)
Richard Mueller [MVP]


 
 

Re: less than and greater than signs/response.write


"RICK" <RICK@xxxxxx> wrote in message
news:8CDC5E06-7A67-415D-BAA0-2B1503598AE3@xxxxxx
Quote:

> Pulling data from a database with response.write. The fields have "<" and
> ">" signs. How can I get the full field to display. Currently, the
> fields
> are being truncated at the signs.
>
> Rick
In SQL Server if field or table names have special characters I enclose in
square brackets, "[]". Or, you may need to "escape" the characters. The
escape character depends on your DBMS.

--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Windows backup greater flexibility Vista performance & maintenance
application installer wants XP sp1 or greater... Vista General
build 5800 or greater Vista General
Greater Than on doubles PowerShell
New HDD - greater performance? Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46