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

📄 docviewshow.aspx

📁 一个完整的办公自动化源码,免费提供给大家下载
💻 ASPX
字号:
<%@ Page Language="VB" ContentType="text/html" debug="true" %>
<%@ Import Namespace="system.data" %>
<%@ Import Namespace="system.data.oledb" %>
<html>
<head>
<title>邮件接受</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="CSS.CSS" rel="stylesheet" type="text/css">
</head>

<body bgcolor="#CCCCCC">
<form runat="server">
<!--<asp:datalist runat="server" ID="mylist">
<itemtemplate>-->
  <table width="549" border="1" cellpadding="0" cellspacing="0" bgcolor="#FF0000" height="400" bordercolorlight="#008080" bordercolordark="#FFFFFF">
    <tr bgcolor="#FFFFFF"> 
      <td width="69" height="21"> <div align="center"><font color="#000000"><img src="pic/m_olds.gif" width="21" height="14"><font color="#FF0000">主题:</font></font></div></td>
      <td height="21" colspan="5">&nbsp;<strong> 
        <%# container.dataitem("otitle") %>
        </strong><font color="#FF0000"><strong> </strong> </font> </td>
      <td width="299" height="21">
	  <font color="#FF0000">附件
	  <script language="JavaScript" type="text/javascript">
	    	lssize="<%# container.dataitem("sizeZ") %>";
	  		if (lssize =="N/S"){
			  	document.write("无")
			  } else {
			  	document.write("<a href='<%# session("docdownpatht") & container.dataitem("ofilename") %>' target='_blank'>")
			 	document.write("<img src='pic/images/DOWNLOAD.gif' width='16' height='16' border='0'>")
				document.write("</a>")
			 	document.write(lssize)
			  }
	  </script>
	  </font>
	  </td>
    </tr>
    <tr valign="top" bgcolor="#FFFFFF"> 
      <td height="299" colspan="7"> <div align="center"></div>
        <table width="506" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr> 
            <td width="504" height="1" valign="top"> <table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr> 
                  <td width="500" height="299"> <table width=499 height="300" border=0 cellpadding=0 cellspacing=0>
                      <tbody>
                        <tr valign=top> 
                          <td valign="top"> <table cellspacing=0 cellpadding=0 width=225 align=left border=0>
                              <tbody>
                                <tr> 
                                  <td width="225"><img src="pic/in.gif" width="207" height="146"></td>
                                </tr>
                                <tr> 
                                  <td height=30><font 
      color=#605d5d>&nbsp;</font></td>
                                </tr>
                              </tbody>
                            </table>
                            <%# container.dataitem("ocontent") %></td>
                        </tr>
                        <tr> 
                          <td height=2 valign="top"></td>
                        </tr>
                      </tbody>
                    </table></td>
                </tr>
              </table></td>
          </tr>
        </table></td>
    </tr>
  </table>
  </itemtemplate>
</asp:datalist>
</form>
</body>
</html>
<script language="VB" runat="server">
	sub page_load(s as object,e as eventargs)
		if not ispostback then bindlist()
	end sub
	sub bindlist()
		dim oinfo()=session("lguinfo")
		dim conn as new oledbconnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & server.mappath("office.mdb"))
		conn.open()
		dim objada as new oledbdataadapter("select * from userdata where id=" & request.QueryString("id"),conn)
		dim ds as new dataset()
		objada.fill(ds,"userdata")
		dim dt as datatable=ds.tables("userdata")
		mylist.datasource=dt
		mylist.databind()
		conn.close()
	end sub
</script>

⌨️ 快捷键说明

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