打印字符'和'在asp中使用vbscript [英] printing character ' and " in asp using vbscript
本文介绍了打印字符'和'在asp中使用vbscript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何打印撇号字符''和双引号在asp中使用
vbscript。
我的代码使用response.write替换带有倒置问题的字符
mark。
请帮助
how to print apostrophe character '' and double quote " in asp using
vbscript.
my code using response.write replaces " character with inverted question
mark.
please help
推荐答案
如何打印撇号字符''和双引号'在asp中使用
vbscript。我的代码使用response.write替换带问题的角色
mark。
请帮助
how to print apostrophe character '' and double quote " in asp using
vbscript. my code using response.write replaces " character with question
mark.
please help
''********** *********************************** *********** ******
函数DataPrep(strText)
''
''目的:准备数据文本条目
''
''参数:strText - 要修改的文本字符串
''**************** ********************************* *****************
如果不是isNull(strText)那么
DataPrep =替换(strText," ;;","")
DataPrep =替换(DataPrep,"''""&"")
DataPrep =替换(DataPrep,"""","& ;")
DataPrep =替换(DataPrep,"<","& lt;")
DataPrep = Replace(DataPrep, ">","& gt;")
结束如果
结束功能
" S N" < ua ****** @ yahoo.com在消息新闻中写道:OC ************** @ TK2MSFTNGP05.phx.gbl ...
''************************************************* *****************
Function DataPrep(strText)
''
''PURPOSE: prep data text entry
''
''PARAMETERS: strText -- text string to modify
''************************************************* *****************
If NOT isNull(strText) then
DataPrep = Replace(strText, ";", "")
DataPrep = Replace(DataPrep, "''", "'")
DataPrep = Replace(DataPrep, """", """)
DataPrep = Replace(DataPrep, "<", "<")
DataPrep = Replace(DataPrep, ">", ">")
End if
End Function
"S N" <ua******@yahoo.comwrote in message news:OC**************@TK2MSFTNGP05.phx.gbl...
如何打印撇号字符''和双引号在asp中使用vbscript。
我的代码使用response.write替换带有倒置问号的字符。
请帮助
how to print apostrophe character '' and double quote " in asp using vbscript.
my code using response.write replaces " character with inverted question mark.
please help
Jon Paal [MSMD]写道:
Jon Paal [MSMD] wrote:
''******************************** ***************** *****************
函数DataPrep(strText)
''
''目的:准备数据文本条目
''
''参数:strText - 文本字符串修改
''************************************** *********** *****************
如果不是isNull(strText)那么
>
DataPrep = Replace(strText," ;;","")
DataPrep = Replace(DataPrep,"''","& quot;" ;)
DataPrep =替换(DataPrep,""","& quot;")
DataPrep =替换(DataPrep," <","& lt;")
DataPrep =替换(DataPrep,">","& gt;")
结束如果
结束功能
''************************************************* *****************
Function DataPrep(strText)
''
''PURPOSE: prep data text entry
''
''PARAMETERS: strText -- text string to modify
''************************************************* *****************
If NOT isNull(strText) then
DataPrep = Replace(strText, ";", "")
DataPrep = Replace(DataPrep, "''", "'")
DataPrep = Replace(DataPrep, """", """)
DataPrep = Replace(DataPrep, "<", "<")
DataPrep = Replace(DataPrep, ">", ">")
End if
End Function
??
什么''错误的
Response.Write Server.HTMLEncode(strText)
-
Microsoft MVP - ASP /ASP.NET
请回复新闻组。这个电子邮件帐户是我的垃圾邮件陷阱所以我
不经常检查它。如果您必须离线回复,请删除
无垃圾邮件
??
What''s wrong with
Response.Write Server.HTMLEncode(strText)
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don''t check it very often. If you must reply off-line, then remove the
"NO SPAM"
这篇关于打印字符'和'在asp中使用vbscript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文