what I learn is what u c

ASP : VbScript – Escape Single and Double Quotes

with 2 comments

FUNCTION PreSubmit(p_sTargetString)
PreSubmit = REPLACE(p_sTargetString,”textarea”,””)
PreSubmit = REPLACE(PreSubmit,”%”,”%”)
PreSubmit = REPLACE(PreSubmit,”‘”,”’”)
PreSubmit = REPLACE(PreSubmit,””””,”””)
PreSubmit = Trim(PreSubmit)


Written by gchandra

June 16, 2004 at 5:16 pm

Posted in Web Coding

2 Responses

Subscribe to comments with RSS.

  1. Thanks. It is working for me.

    Yoga Meditation Guru

    January 30, 2009 at 11:55 pm

  2. hi
    I have the same problem with my ASP script
    smSQL = “SELECT * FROM caravans where sizename = ‘”&caravansize&”‘ ”

    it gives error
    please help


    December 19, 2009 at 1:17 am

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: