Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_components thread: Special Character Handler


Message #1 by ulateef@a... on Sat, 24 Feb 2001 10:35:31 +0500

Is there any best solution for handling spcail Characters such as ",&'

which create problem when you are passing these in a string or database.



Umair Latif







Message #2 by Robert Chartier <rchartierh@a...> on Mon, 26 Feb 2001 09:18:48 -0500
the only problem you should have is with the single quote.  and all you 

need to do is double them up



function sqlEncode(byval value as string) as string

         sqlEncode = replace(value,"'","''")

end function









At 12:35 AM 2/24/01, you wrote:



>Is there any best solution for handling spcail Characters such as ",&'

>which create problem when you are passing these in a string or database.

>

>Umair Latif

>

>

>



Robert Chartier

Author, AspFree.com

xxx-xxx-xxxx

rchartierh@a...

http://www.aspfree.com/devlinks

http://www.aspfree.com/authors/robert

http://www.aspalliance.com/nothingmn




  Return to Index