Home > ASP Development > Searching for Double-Quotes

Searching for Double-Quotes



Is there a way to test a string to see if it has a double-quote?



I just need to do something like:


ASP Code:
















Original
- ASP Code


  1. If Left(Request.Form("searchKeyword"), 1) = " Then






I know the above won't work, but I've tried several ideas, and can't seem to get it right.



joe

    
Guest


hi Joe

try this


Code:



if inStr(request.form("searchKeyword"), """") > 0 then




hope this helps

Was this answer helpful ? Yes No   
Guest


You can also use


asp Code:
















Original
- asp Code


  1.  
  2. InStr(Str,Chr(34))



Was this answer helpful ? Yes No   
Guest
 
 
Home - About Infoqu - Contact - Privacy Statement - Link to Infoqu - Bookmark Infoqu

Copyright 2007-2008 by Infoqu. All rights reserved