sqlfilter.asp
来自「asp做的论坛」· ASP 代码 · 共 22 行
ASP
22 行
<%
Function SafeRequest(ParaName,ParaType)
'--- 传入参数 ---
'ParaName:参数名称-字符型
'ParaType:参数类型-数字型(1表示以上参数是数字,0表示以上参数为字符)
Dim ParaValue
ParaValue=Trim(Request(ParaName))
If ParaValue<>"" Then
If ParaType=1 then
If not isNumeric(ParaValue) then
Response.write "参数" & ParaName & "必须为数字型!"
Response.End
End if
Else
ParaValue=replace(ParaValue,"'","''")
End if
End If
SafeRequest=ParaValue
End function
%>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?