Ask a Question related to ASP.NET General, Design and Development.
-
Paul Ritchie #1
Convert string to HTML
Is there something in .NET that will convert a string so that it can be
displayed correctly as HTML?
eg I would like to convert the string "a < b" to "a C; b".
cheers,
Paul.
Paul Ritchie Guest
-
How to convert ASText to a C string?
I have found the opposite conversion, from char to ASText: ASTextSetEncoded(target, "Convert Me!", (ASHostEncoding)PDGetHostEncoding()); TIA, ... -
convert string to safe string before adding to database
Hi I am updating a site for a client who is running CF5. The update and insert queries break when the user uses inverted commas ". I currently... -
How to convert ByteArray to String?
We are using SQL Server, one of the columns is ByteArray datatype, when I tried to output it with the <cfoutput> tag, I got ' ByteArray objects... -
Convert String to Int then divide
Here is my code: <cfdirectory directory = "f:\testbed\documents\" name = "myDirectory" sort = "name ASC, size DESC"> <!--- Output the contents... -
How to convert forma value to string
Subbu, Try... Format(!!) - Steve Schapel, Microsoft Access MVP On Tue, 22 Jul 2003 14:54:28 -0700, "subbu"... -
Ken Cox [Microsoft MVP] #2
Re: Convert string to HTML
Hi Paul,
Try this?
Server.HtmlEncode("a < b")
Gives:
a < b
Ken
MVP [ASP.NET]
"Paul Ritchie" <REMOVEpritchie@REMOVExtra.REMOVEco.REMOVEnz> wrote in message
news:O5BuPi2TDHA.3192@tk2msftngp13.phx.gbl...
Is there something in .NET that will convert a string so that it can be
displayed correctly as HTML?
eg I would like to convert the string "a < b" to "a C; b".
cheers,
Paul.
Ken Cox [Microsoft MVP] Guest



Reply With Quote

