Response.Write包含%> [英] Response.Write containing %>
本文介绍了Response.Write包含%>的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我编写的代码将使用文件系统对象创建asp页面。我是
尝试这样的东西没有太多运气
<%
..
..
''其他代码在这里
Response.Write"<%sName =" &安培; Var& "%>"
%>
我该怎么做?
谢谢,Dom
解决方案
现在你想要VAR写出来吗?或者是
页面上的实际变量?
<%
Response.Write"<%sName = QUOT; &安培; Var& "%>"
%> ^^是你想要写出来的变量吗?或者你是否希望所有引号都写出来,
从第一个<并以最后一个结尾>
" Dom" < NOSPAM>在消息中写道
新闻:%2 **************** @ TK2MSFTNGP03.phx.gbl ...
我编写的代码将使用文件系统对象创建asp页面。
我正在尝试这样的事情而没有太多运气
<%
Response.Write"<%sName =" &安培; Var& "%>"
%>
我该怎么做?
谢谢,Dom>
这是我实际使用的代码:
<%
Dim oFileSystemObject,oFile ,sFile,sPageContent
设置oFileSystemObject = CreateObject(" Scripting.FileSystemObject")
sFile = Server.MapPath(" / services /test_inc.asp")
设置oFile = oFileSystemObject.OpenTextFile(sFile,1,false,0)
sPageContent ="< ;%iProductID = QUOT; &安培; iID& "%>"
sPageContent = sPageContent& oFile.ReadAll
设置oFile = oFileSystemObject.CreateTextFile(" C:\ Inetpub \ www.roro \\\ test.asp",
true)
oFile.WriteLine(sPageContent)
oFile.Close()
设置oFile = Nothing
设置oFileSystemObject = Nothing
%>
" Dom" < NOSPAM>在消息中写道
新闻:%2 **************** @ TK2MSFTNGP03.phx.gbl ...
我编写的代码将使用文件系统对象创建asp页面。
我正在尝试这样的事情而没有太多运气
<%
Response.Write"<%sName =" &安培; Var& "%>"
%>
我该怎么做?
谢谢,Dom>
>现在你想要VAR写出来吗?或者是页面上的实际变量?
<%
Response.Write"<%sName =" &安培; Var& "%>"
%> ^^是你试图写出的变量吗?或者你是否希望所有引号都写出来,
从第一个<并以最后一个>结束
Var是一个变量。我已经发布了实际的代码。
Hi,
I writing code that will create asp pages using the file system object. I''m
trying something like this without much luck
<%
..
..
''other code here
Response.Write "<%sName=" & Var & "%>"
%>
How can I do this?
Thanks, Dom
解决方案
now do you want VAR written out? or is that an actual variable on your
pages?
<%
Response.Write "<%sName=" & Var & "%>"
%> ^^ is that a variable you
are trying to write out? or do you want all that in quotes written out,
start with the first < and ending with the last >
"Dom" <nospam> wrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...Hi,
I writing code that will create asp pages using the file system object.
I''m trying something like this without much luck
<%
.
.
''other code here
Response.Write "<%sName=" & Var & "%>"
%>
How can I do this?
Thanks, Dom
This is the code I''m actually using:
<%
Dim oFileSystemObject, oFile, sFile, sPageContent
Set oFileSystemObject = CreateObject("Scripting.FileSystemObject")
sFile = Server.MapPath("/services/test_inc.asp")
Set oFile = oFileSystemObject.OpenTextFile(sFile, 1, false, 0)
sPageContent = "<%iProductID=" & iID & "%>"
sPageContent = sPageContent & oFile.ReadAll
Set oFile = oFileSystemObject.CreateTextFile("C:\Inetpub\wwwro o\test.asp",
true)
oFile.WriteLine(sPageContent)
oFile.Close()
Set oFile = Nothing
Set oFileSystemObject = Nothing
%>
"Dom" <nospam> wrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...Hi,
I writing code that will create asp pages using the file system object.
I''m trying something like this without much luck
<%
.
.
''other code here
Response.Write "<%sName=" & Var & "%>"
%>
How can I do this?
Thanks, Dom
> now do you want VAR written out? or is that an actual variable on yourpages?
<%
Response.Write "<%sName=" & Var & "%>"
%> ^^ is that a variable you
are trying to write out? or do you want all that in quotes written out,
start with the first < and ending with the last >
Var is a variable. I''ve posted the actual code.
这篇关于Response.Write包含%>的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文