⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readseal.asp

📁 本示例综合展示了NTKO OFFICE文档控件所具有的发布为HTML
💻 ASP
字号:
<%@ Language=VBScript %>
<!--#include file="conn.asp"-->
<%
	'从数据库中读取在线编辑的文件数据
	id	= Request.querystring("id")
	
	Dim	RS
	Set	RS = Server.CreateObject("ADODB.Recordset")
		RS.Open	"seals", conn, adOpenStatic, adLockReadOnly	
	If id <>"" Then
		RS.Find	"sid=" & id
		If Not RS.EOF THEN
			response.ContentType = "application/octet-stream"
			'Response.AddHeader "Content-Disposition","attachment; filename=" & RS("sname")
			Response.BinaryWrite(RS("Imagefile"))
			
		end if
  	Else
  		id = Request.Querystring("sid")	
		RS.Find	"sid=" & id
		If Not RS.EOF THEN
			response.ContentType = "application/octet-stream"
			'Response.AddHeader "Content-Disposition","attachment; filename=" & RS("sname")
			Response.BinaryWrite(RS("espfile"))
			
		end if
	End If
	rs.close
	set rs = nothing
%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -