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

📄 showpic.aspx

📁 ASP_NET程序设计教程 源代码 冶金工业出版社 肖金秀 冯沃辉 陈少涌
💻 ASPX
字号:
<% @ Import Namespace="Packaging" %>
<% @ Import Namespace="System" %>
<% @ Import Namespace="System.Data" %>
<html>

<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>上传作品展示</title>
<script language="JavaScript">
<!--
function openwin(url,w,h) {
	window.open(url,"","top=50,left=150,height="+h+",width="+w+",toolbar=0,location=0,directories=0,menubar=0,scrollbars=0,resizable=yes,status=0");
}//-->
</script>
<style>
td {
	font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
	font-size : 10pt;
}
.td1 {
	color:white;
}
</style>
</head>

<body topmargin="6" leftmargin="1" bgcolor=#eaeaea>

<asp:Repeater id="mypicshow" runat="server">
<ItemTemplate>
<table border="0" cellpadding="0" cellspacing="1" bgColor="#006699" width="100%">
  <tr>
    <td width="60%" valign="middle" align="center" rowspan="5"><img border="0" src="<%#DataBinder.Eval(Container.DataItem,"PicUrl")%>"></td>
    <td width="13%" bgcolor="#99CC00" align="center">作品标题</td>
    <td width="27%" bgcolor="#CCFF99">&nbsp; 
      <%#DataBinder.Eval(Container.DataItem,"PicTitle")%>
    </td>
  </tr>
  <tr>
    <td width="13%" bgcolor="#99CC00" align="center">上传人</td>
    <td width="27%" bgcolor="#CCFF99">&nbsp; <a href="javascript:openwin('info.aspx?name=<%#DataBinder.Eval(Container.DataItem,"PicOwner")%>',332,320)">
      <%#DataBinder.Eval(Container.DataItem,"PicOwner")%>
      </a> </td>
  </tr>
  <tr>
    <td width="13%" bgcolor="#99CC00" align="center">作品说明</td>
    <td width="27%" bgcolor="#CCFF99">&nbsp;<br>
<%#DataBinder.Eval(Container.DataItem,"PicDesc")%>
<br>
    </td>
  </tr>
  <tr>
    <td width="13%" bgcolor="#99CC00" align="center">上传日期</td>
    <td width="27%" bgcolor="#CCFF99">&nbsp; 
      <%#DataBinder.Eval(Container.DataItem,"PicTime")%>
    </td>
  </tr>
  <tr>
    <td width="13%" bgcolor="#99CC00" align="center">点击数</td>
    <td width="27%" bgcolor="#CCFF99">&nbsp; 
      <%#DataBinder.Eval(Container.DataItem,"PicClicks")%>
    </td>
  </tr>
</table>
</ItemTemplate>
</asp:Repeater>

</body>

</html>

<script language="VB" runat="server">

	Sub Page_Load(Sender As Object, e As EventArgs)
		Dim id As Integer
		Try
			id=CInt(Request("id"))
			Dim MyPic As PicDB=New PicDB()
			Dim DV As DataView=MyPic.GetPicInfo(id)
			Mypicshow.DataSource=DV
			mypicshow.DataBind()
		Catch
		End Try
	End Sub
</script>
<style>
td {
	font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
	font-size : 10pt;
}
.whiteB {
	color: white;
	font-weight : bold;
}
input {
	font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
	font-size : 10pt;
}
td.bar {
	color: green; font-weight: bold;
}
a.whiteLink:link {
	font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
	font-weight : bold;
	color : white;
	text-decoration : none;
}
a.whiteLink:visited {
	font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
	font-weight : bold;
	color : white;
	text-decoration : none;
}
a.whiteLink:hover {
	font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
	font-weight : bold;
	color : white;
	text-decoration : none;
}
a.barLink:link {
	font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
	color : #CCFF99;
	text-decoration : none;
}
a.barLink:visited {
	font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
	color : #CCFF99;
	text-decoration : none;
}
a.barLink:hover {
	font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
	color : #CCFF99;
	text-decoration : underline;
}
a.author:link {
	font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
	color : black;
	text-decoration : none;
}
a.author:visited {
	font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
	color : black;
	text-decoration : none;
}
a.author:hover {
	font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
	color : black;
	text-decoration : underline;
}
</style>

⌨️ 快捷键说明

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