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

📄 queryphoto.aspx

📁 这个是网上相册系统的一个架构设计说明
💻 ASPX
字号:
<%@ Page language="c#" Codebehind="QueryPhoto.aspx.cs" AutoEventWireup="false" Inherits="AlbumOL.QueryPhoto" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>QueryPhoto</title>
		<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
	</HEAD>
	<body>
		<FORM id="Form1" method="post" runat="server">
			<asp:Panel id="p1" runat="server" HorizontalAlign="Center" Font-Size="XX-Large">网上相册系统</asp:Panel>
			<asp:Panel id="pWelcome" runat="server" HorizontalAlign="Center" ForeColor="Red">欢迎您, 
<asp:Label id="lbAlias" runat="server"></asp:Label>!</asp:Panel>
			<asp:Panel id="panCondition" runat="server" HorizontalAlign="Left">
				<TABLE id="Table2" width="100%" border="0">
					<COLGROUP>
						<COL width="*">
						<COL width="150">
					</COLGROUP>
					<TR>
						<TD>相&nbsp;&nbsp;&nbsp;&nbsp;夹:
							<asp:DropDownList id="ddlCat" runat="server" DataTextField="CategoryName" DataValueField="CategoryID"></asp:DropDownList></TD>
					</TR>
					<TR>
						<TD>名&nbsp;&nbsp;&nbsp;&nbsp;称:
							<asp:TextBox id="tbPhotoName" runat="server"></asp:TextBox></TD>
					</TR>
					<TR>
						<TD>关键字:
							<asp:TextBox id="tbKw" Runat="server"></asp:TextBox></TD>
					</TR>
					<TR>
						<TD>
							<asp:Button id="btnQuery" runat="server" Text=" 查 询 "></asp:Button>&nbsp;&nbsp;&nbsp;&nbsp;
							<INPUT id="btnReset" type="reset" value=" 重 置 " name="btnReset"></TD>
					</TR>
				</TABLE>
			</asp:Panel>
			<asp:Panel id="panResult" runat="server" Width="100%" Visible="false">
				<HR align="center" width="90%" SIZE="1">
				<asp:Label id="lbNoResult" Runat="server" Visible="False">未找到符合条件的相片。</asp:Label>
				<asp:datalist id="dlPhoto" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
					<ItemTemplate>
						<DIV style="WIDTH: 180px; HEIGHT: 160px; TEXT-ALIGN: center">
							<asp:Image id="Image1" runat="server" Width="180px" Height="140px" ImageUrl='<%# "/AlbumOL/PhotoFiles/Photo" + DataBinder.Eval(Container, "DataItem.PhotoID") + ".jpg" %>' AlternateText='<%# DataBinder.Eval(Container, "DataItem.PhotoName") %>'>
							</asp:Image>
							<asp:HyperLink id="HyperLink1" runat="server" NavigateUrl='<%# "ViewPhoto.aspx?cat="+ DataBinder.Eval(Container, "DataItem.CategoryID") + "&photo=" + DataBinder.Eval(Container, "DataItem.PhotoID") %>'>
								<%# DataBinder.Eval(Container, "DataItem.PhotoName") %>
							</asp:HyperLink></DIV>
					</ItemTemplate>
				</asp:datalist>
			</asp:Panel></FORM>
	</body>
</HTML>

⌨️ 快捷键说明

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