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

📄 packshow.aspx

📁 ASP_NET程序设计教程 源代码 冶金工业出版社 肖金秀 冯沃辉 陈少涌
💻 ASPX
字号:
<% @ Import Namespace="Packaging" %>
<% @ Import Namespace="System.Data" %>
<% @ Register TagPrefix="pb" TagName="Header" Src="header.ascx" %>
<% @ Register TagPrefix="pb" TagName="Footer" Src="footer.ascx" %>
<% @ Register TagPrefix="pb" TagName="Login" Src="login.ascx" %>
<% @ Register TagPrefix="pb" TagName="Major" Src="major.ascx" %>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="Content-Language" content="zh-cn">
<title>Dot.Net论坛欢迎您!</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");
}
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->
</script>
<link rel="stylesheet" type="text/css" href="pack.css">
</head>

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

<form runat="server">

<pb:Header id="Header" runat="server" />

<div align="center">
<table border="0" cellpadding="0" cellspacing="1" bgColor="#006699" width="750" height="125">
	<tr><td width="25%" valign="top" background="images/bd.gif" rowspan="2" height="125">
	<pb:Login id="login" runat="server" />
	<pb:Major id="major" runat="server" /></td>
	<td width="75%" valign="top" bgcolor="#FFFFFF" height="228" background="images/ldb.gif">
		<br><font color="#FF0000">Dot.Net风采展示</font><br>
		<br>
		<table border="0" cellpadding="0" cellspacing="0" width="95%" height="41">
			<tr><td width="100%" background="images/bar3.gif" height="23">&nbsp;<b><font color="#FFFFFF">Dot.Net员录</font></b></td></tr>
			<tr><td width="100%" height="18" align="center"><br>
<asp:DataList id="MyList" runat="server"
	RepeatDirection="Vertical" RepeatColumns="8" width="95%"
	ItemStyle-Height="25">
	<ItemTemplate>
<a href="s_info.aspx?id=<%# DataBinder.Eval(Container.DataItem, "Id") %>"><font color=green><%# DataBinder.Eval(Container.DataItem, "Name") %></font></a>
	</ItemTemplate>
</asp:DataList>
			</td></tr>
		</table>
		<br>
		<table border="0" cellpadding="0" cellspacing="0" width="95%" height="41">
			<tr><td width="100%" background="images/bar3.gif" height="23">&nbsp;<b><font color="#FFFFFF">我们的同事</font></b></td></tr>
			<tr><td width="100%" height="18" align="center"><br>
<asp:DataList id="TeacherList" runat="server"
	RepeatDirection="Horizontal" RepeatColumns="8" width="95%"
	ItemStyle-Height="25">
	<ItemTemplate>
<a href="t_info.aspx?id=<%# DataBinder.Eval(Container.DataItem, "Id") %>"><font color=green><%# DataBinder.Eval(Container.DataItem, "Name") %></font></a>
	</ItemTemplate>
</asp:DataList>
			</td></tr>
		</table>
		<br>
		<table border="0" cellpadding="0" cellspacing="0" width="95%" height="41">
			<tr><td width="100%" background="images/bar3.gif" height="23">&nbsp;<b><font color="#FFFFFF">其它朋友</font></b></td></tr>
			<tr><td width="100%" height="18" align="center"><br>
<asp:DataList id="OtherList" runat="server"
	RepeatDirection="Horizontal" RepeatColumns="8" width="95%"
	ItemStyle-Height="25">
	<ItemTemplate>
<a href="s_info.aspx?id=<%# DataBinder.Eval(Container.DataItem, "Id") %>"><font color=green><%# DataBinder.Eval(Container.DataItem, "Name") %></font></a>
	</ItemTemplate>
</asp:DataList>
			</td></tr>
		</table>
	</td>
	<tr><td width="75%" valign="bottom" bgcolor="#FFFFFF" height="80" align="right" background="images/ldb.gif">
	<img border="0" src="images/pen.gif" width="400" height="80"><br>&nbsp;</td></tr>
</table>
</div>

<pb:Footer id="footer" runat="server" />

</form>

</body>

</html>

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

	Sub Page_Load(Sender As Object, e As EventArgs)
		Dim MyInfo As InfoDB=New InfoDB()
		Dim DV As DataView=MyInfo.GetList(1)
		MyList.DataSource=DV
		Mylist.Databind()
		Dim DV2 As DataView=MyInfo.GetList(2)
		TeacherList.DataSource=DV2
		TeacherList.DataBind()
		Dim DV3 As DataView=MyInfo.GetList(3)
		OtherList.DataSource=DV3
		OtherList.DataBind()
	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 + -