Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem of inserting ' (single quote)
Message
 
To
18/02/2002 02:40:30
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00621446
Message ID:
00621487
Views:
13
Inserting into a database? Double it. For example from VB, we use this syntax (but I don't think that Replace exists in VBScript):

strX = "O'Neil"
SQL = "SELECT * FROM Table1 WHERE LastName = '" & replace(strx,"'","''") & "'"


>I am using VB script as server script and facing problem of insertion a text containing single quote.
>
>I would appriciate if some could help me
>
>Shahid
>Web developer
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform