社区
ASP
帖子详情
用response输出html语句的问题!!!!
shenzhe
2001-04-12 08:49:00
加精
我想输出如下语句
Response.write('<img src="showimg.asp?id=" '& ids & '">')
ids为变量
以实现<img src="showimg.asp?id=XXX">
结果用浏览器只看到一个0
后来我又试了
Response.write("<font size=2 color="& color &">this is a test</font>")
结果也是0不知为什么_-_!
...全文
178
5
打赏
收藏
用response输出html语句的问题!!!!
我想输出如下语句 Response.write('') ids为变量 以实现 结果用浏览器只看到一个0 后来我又试了 Response.write("this is a test") 结果也是0不知为什么_-_!
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
5 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
shenzhe
2001-04-19
打赏
举报
回复
搞定了是用
<img src=showimg.asp?id=<%= ids %> >
呵呵!
shenzhe
2001-04-12
打赏
举报
回复
改成如下才不报错
Response.write ("<img src="&"showimg.asp?id="& ids & ""&">")
但结果还是0-_-~~~~~~~
shenzhe
2001-04-12
打赏
举报
回复
Microsoft JScript 编译错误 错误 '800a03ec'
提示出错
缺少 ';'
/display.asp, 行22
Response.write "<img src=""showimg.asp?id="& ids & """>"
---------------^
shenzhe
2001-04-12
打赏
举报
回复
Microsoft JScript 编译错误 错误 '800a03ec'
提示出错
缺少 ';'
/display.asp, 行22
Response.write "<img src=""showimg.asp?id="& ids & """>";
tripofdream
2001-04-12
打赏
举报
回复
Response.write "<img src=showimg.asp?id='"& ids & "'>"
如果ids是數值型的,這樣就行了:
Response.write "<img src=showimg.asp?id="& ids & ">";
如果要輸出雙引號
Response.write "<img src=""showimg.asp?id="& ids & """>"
response
输出
html
页面,Sanic
response
html
() 函数用法和示例
response
.
html
() 功能:Sanic 返回
html
文本内容给浏览器。一般在服务器端渲染网页的web应用返回的都是
html
文本,Sanic可借助jinja2实现
html
模板的渲染。
response
.
html
() 语法def
html
(body, status=200, headers=...
asp.net
response
.write
输出
html
,asp.net
Response
.Write
输出
JS对话框,页面变形的解决办法...
在动态页面比如ASPX中使用
Response
.Write
输出
JS代码的方法,如果是
输出
对话框,那么,会导致弹出对话框之后,页面会变形。原本内容是居中对齐的,弹出对话框以后,页面内容就整体跑到左边了,像这样的情况,代码如下...
response
.write()方法将指定的字符创
输出
到
html
页面时遇到的
问题
逻辑描述: nodejs中
response
.write(
html
),
html
中script标签引用了外部的文件是的处理: 通过构建一个静态文件服务器来实现,
response
.write()
输出
字符串到
html
页面时,外联文件能顺利访问成功。
响应
输出
HTML
处理,JSP
response
对象:响应客户端的请求并向客户端
输出
信息
response
对象和 request 对象相对应,用于响应客户请求,向客户端
输出
信息。
response
是 HttpServlet
Response
的实例,封装了 JSP 产生的响应客户端请求的有关信息,如回应的 Header,回应本体(
HTML
的内容)以及...
response
输出
乱码
问题
//设置
response
使用的码表,以控制
response
以什么码表向浏览器写出数据
response
.setCharacherEncoding("UTF-8"); //指定浏览器以什么码表打开服务器发送的数据
response
.setHeader("content-type","text/
html
;...
ASP
28,406
社区成员
356,946
社区内容
发帖
与我相关
我的任务
ASP
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
复制链接
扫一扫
分享
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章