iframe 调用asp页面实现动态数据展示
来源:互联网 发布:java语言的特点 编辑:程序博客网 时间:2024/06/09 21:46
1、用户自定义控件:
<% @ Control Language="C#" AutoEventWireup="true" CodeBehind="right.ascx.cs" Inherits="ProjectName.right" %>
<div class="rightcon">
<h3>
今日指标 <% --<span class="more"> 更多>></span>--%> </h3>
<iframe src="cjrlRight.asp" id ="iframeColor" allowTransparency ="true" frameborder ="no" width ="262" style ="background-color: #fff" min-height="300" ></iframe>
</div>
2.ASP页面 cjrlRight.asp
<!--#include file="conn.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content ="text/html; charset=utf-8" />
<title></title >
<link href="css/body.css" rel ="stylesheet" type ="text/css" />
</head>
<body style="background-color :#fff" >
<div class="Froexblcok">
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="tableImportant">
<tr>
<th>
时间
</th>
<th>
国家
</th>
<th>
指标名称
</th>
</tr>
<%
set rs=server.createobject("adodb.recordset" )
sql= "select * from tableInfo"
rs.open sql,conn12,1,1
if rs.eof and rs.bof then response.write "<span style='color: Black; font-size: 12px;'>暂无数据 ...</span> <script type='text/javascript'>document.getElementById('tableImportant').style.display = 'none'; </script>"
do while not rs.eof
%>
<tr>
<td>
<%=rs( "TIME") %>
</td>
<td>
<%=rs( "country") %>
</td>
<td class="tdclass">
<%=rs( "ITEM") %><%=rs( "TableData") %>
</td>
</tr>
<%
rs.movenext
loop
rs.close
set rs=nothing
conn12.close
set conn12=nothing
%>
</table>
</div>
</body>
</html>
3.ASP.Net页面调用
<% @ Register Src="~/right.ascx" TagName="Right" TagPrefix="uc2" %>
<! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
< html xmlns ="http://www.w3.org/1999/xhtml" >
< head runat ="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
< title> </title >
< link href ="css/body.css" rel ="stylesheet" type ="text/css" />
< script type ="text/javascript" src ="js/jquery.min.js"></ script >
</ head>
< body>
< form id ="form1" runat ="server">
< uc2: Right ID ="Right" runat ="server" />
</ form>
</ body>
</ html>
- iframe 调用asp页面实现动态数据展示
- iframe-页面展示PDF
- 页面无刷新调用数据(IFRAME+js)
- HTML iframe 实现功能页面动态切换
- struts2 无刷新调用action 实现页面数据动态加载
- asp.net 中使用iframe动态加载页面
- Asp.net中使用iframe动态加载页面
- 实现 iframe 子页面调用父页面中的js方法
- Iframe 父页面与子页面相互js调用实现
- <asp.net>[iframe中js调用父页面控件][子页面调用父页面控件]
- 子页面调用父页面方法,动态刷新父页面iframe的src值
- js实现iframe跨页面调用函数的方法
- html中用js调用ASP文件,实现静态页面动态显示
- html中用js调用ASP文件 实现静态页面动态显示
- Asp.Net MVC5 视图页面编译调用流转过程,以及页面Web展示
- Excel实现上传 导入 解析Excel 页面展示Excel数据
- html嵌套iframe如何实现等iframe页面加载完进行下一步调用
- ASP.NET实现动态页面标题
- spring 读取properties的两种方法
- 查找iframe里面的元素
- 韦东山视频实验之Input子系统分析之一
- RedHat下安装MYSQL 5.5
- JS设计模式
- iframe 调用asp页面实现动态数据展示
- cloudstack中的user,account,domain和project解释--之二
- VC++中轻松实现滑动(Slider)控件
- linux平台下进行thrift和protobuf的IDL文件的编译缺少类库的解决办法
- android页面跳转
- C++实现CD抓轨转WAV
- struts2 <s:iterator/>怎样取得循环的索引
- LINUX 命令行编辑
- 百度近期算法调整排名规则有哪些变化