如何用response在一页中同时输出图文

lesterjames 2003-11-29 01:45:07
response.write(rs.("文本字段"))
response.write(ss.("ole字段"))

需要读一张图,写一个文本字段的值
...全文
34 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
Tal 2003-11-29
  • 打赏
  • 举报
回复
同意stefli(爱毅)
kuflash8 2003-11-29
  • 打赏
  • 举报
回复
up
13617650029 2003-11-29
  • 打赏
  • 举报
回复
同意楼上
stefli 2003-11-29
  • 打赏
  • 举报
回复
<%
response.write rs("文本字段")
%>
下面是图片哦:
<img src="showimage.asp?id=<%=rs("id")%>">

showimage.asp:
<%
id=request.qureystring("id")
sql="select myphoto from news where id="&id
set rs=cn.execute(sql) 'cn自己建立
response.contenttype="image/*"
response.binarywrite rs("ole字段")
%>

28,407

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧