SI
SI
discoversearch

We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.
SI - Site Forums : Silicon Investor - Welcome New SI Members!

 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext  
To: (Bob) Zumbrunnen who wrote (21541)10/9/2004 1:04:56 AM
From: SI Dave  Read Replies (1) of 32873
 
Already tried that. Still truncates.

Switching the ASP delimiter to (double) double-quotes works, but that isn't very elegant since it just shifts the problem from records with single quotes to those with double quotes.

Response.Write("<td><input type='text' name='alias' value=""" & rs("subject_title") & """>")

renders

<input type='text' name='alias' value="O'Henry">

I suppose we could inspect the field contents and vary the ASP delimiter:

if inStr(rs("alias",') > 0 Then
Do ASP code using """
else
Do normal ASP.

But, what to do when the field has both ' and " characters?
Report TOU ViolationShare This Post
 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext