有没有办法使用 asp 经典代码将 html 页面完全复制到数据库中?

is there a way to copy fully html page into database using asp classic code?

我问的原因是因为我正在尝试创建一个自我感知的 iframe 以确保它的位置保持不变。第一步是将 html 和 css 代码完全下载到数据库,以便了解现在的位置并适应未来的页面变化。 p.s #id 方法并不总是有效...

无法 return 响应对象的内容,如果需要,

  • 您要么将整个输出创建为字符串,然后执行 Response.Write

    html = "<html><title>..." ' full iframe/html here
    Response.Write html
    ...
    do something and save html in database when needed
    
  • 或使用对相同 url (sample code)

  • 的新请求获取 iframe/html 的内容

但是,我怀疑这是否有意义。如果位置不总是保持不变,那么您可能想要更改页面布局、创建 javascript 等,但不要将页面保存在数据库中。也许您应该尝试制作一个简单的示例代码来阐明您的问题。