您目前尚未登陆,请选择【登陆】或【注册
首页->影音视频->Asp.net2.0的电影在线点播系统片段源码>>search.aspx>>源码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:Asp.net2.0的电影在线点播系统片段源码
当前文件:文件类型 MovieShowSample/search.aspx打开代码结构图
普通视图
		            
1<%@ Page Language="C#" AutoEventWireup="true" CodeFile="search.aspx.cs" Inherits="search" %> 2 3<%@ Register Src="UserControl/Control_foot.ascx" TagName="Control_foot" TagPrefix="uc2" %> 4 5<%@ Register Src="UserControl/Control_left.ascx" TagName="Control_left" TagPrefix="uc1" %> 6 7<%Response.Buffer = true; Response.ExpiresAbsolute = System.DateTime.Now.AddSeconds(-1); Response.Expires = 0; Response.CacheControl = "no-cache";%> 8 9<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 10 11<html xmlns="http://www.w3.org/1999/xhtml" > 12<head id="Head1" runat="server"> 13<link rel="shortcut icon" href="/MovieShow/Images/Real-doc.ico" type="image/x-icon" /> 14 <title>MovieShow--电影查询</title> 15 <script type="text/javascript"> 16function login_onclick() 17{ 18 19 if(document.getElementById("<%=txtid.ClientID %>").value=="") 20 { 21 alert("请输入您的用户名...!"); 22 event.returnValue=false; 23 return false; 24 } 25 else if(document.getElementById("<%=txtpwd.ClientID %>").value=="") 26 { 27 alert("请输入您的密码...!"); 28 event.returnValue=false; 29 return false; 30 } 31 32} 33function setpageto(pageIndex) 34{ 35 36 var context=listDIV; 37 38 // context.innerHTML="<IMG SRC='/MovieShow/Images/loading.gif'/>Loading...."; 39 var arg="pageChange|"+pageIndex; 40 <%= ClientScript.GetCallbackEventReference(this, "arg", "CallServerComplete", "context")%>; 41 42} 43function CallServerComplete(result,context) 44{ 45 context.innerHTML=result; 46 47} 48 49function setpageto1(control) 50{ 51 52 var context=listDIV; 53 54 // context.innerHTML="<IMG SRC='/MovieShow/Images/loading.gif'/>Loading...."; 55 var num=parseInt(control.value)-1; 56 var arg="pageChange|"+num.toString(); 57 <%= ClientScript.GetCallbackEventReference(this, "arg", "CallServerComplete1", "context")%>; 58 59} 60function CallServerComplete1(result,context) 61{ 62 context.innerHTML=result; 63 64} 65 66function getResult() 67{ 68 var txt1=document.getElementById("TextBox1").value; 69 var txt2=document.getElementById("TextBox2").value; 70 var txt3=document.getElementById("TextBox3").value; 71 var txt4=document.getElementById("TextBox4").value; 72 73 var context=listDIV; 74 context.innerHTML="<IMG SRC='/MovieShow/Images/loading.gif'/>Loading...."; 75 var arg="filmResult|0"+"|"+txt1+"|"+txt2+"|"+txt3+"|"+txt4; 76 <%= ClientScript.GetCallbackEventReference(this, "arg", "CallServerComplete2", "context")%>; 77 78 79 80} 81function CallServerComplete2(result,context) 82{ 83 context.innerHTML=result; 84 85} 86 87</script> 88 89 90 <style type="text/css"> 91<!-- 92#Layer1 { 93 position:static; 94 width:1000px; 95 height:223px; 96 background-image: url(/MovieShow/Images/MovieShow_main_head.jpg); 97} 98#Layer2 { 99 position:absolute; 100 width:820px; 101 height:150px; 102 103} 104 105--> 106 107</style> 108</head> 109<body> 110 <form id="form1" runat="server"> 111 <div style="z-index: 100; left: 0px; width: 1000px; position: absolute; top: 0px; 112 height: 1px"><div id="Layer1" style="left: 0px; top: 0px"> 113 114 <div id="div2" runat="server" style="z-index: 104; background-image:url(/MovieShow/Images/MovieShow_main_Head1.jpg); left: 0px; width: 176px; position: absolute; top: 0px; 115 height: 200px" visible="false"><asp:LinkButton ID="Linkout" runat="server" Font-Bold="True" Font-Names="Algerian" 116 Font-Size="Small" Style="z-index: 100; left: 45px; position: absolute; top: 159px" OnClick="Linkout_Click">[Logout]</asp:LinkButton> 117 <asp:HyperLink ID="Link" runat="server" Font-Bold="True" Font-Size="Medium" Style="z-index: 101; left: 60px; position: absolute; 118 top: 75px" Height="16px">[Link]</asp:HyperLink> 119 <asp:HyperLink ID="LinkRole" Font-Bold="true" Font-Size="Medium" runat="server" Style="z-index: 102; left: 60px; position: absolute; 120 top: 100px">[Link]</asp:HyperLink> 121 <img src="Images/king.jpg" style="position: absolute; z-index: 103; left: 44px; top: 56px;" /></div> 122 </div> 123 124 125 126<div style=" left: 56px; width: 112px; position: relative; top: -109px; height: 48px; z-index: 101;"> 127<span id="span1"> 128 <asp:TextBox ID="txtpwd" runat="server" Style="left: 0px; position: relative; 129 top: 24px" Height="13px" Width="88px" TextMode="Password" ></asp:TextBox><br /> 130 <asp:TextBox ID="txtid" runat="server" Style="left: 0px; position: relative; 131 top: -18px" Height="13px" Width="88px"></asp:TextBox> 132</span> 133</div> 134 135<div id="Layer2" style="left: 176px; top: 53px; z-index: 102;"> 136 <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="820" height="150"> 137 <param name="movie" value="/MovieShow/Navigation/navigation.swf" /> 138 <param name="quality" value="high" /> 139 <param name="wmode" value="transparent" /> 140 <embed src="/MovieShow/Navigation/navigation.swf" width="820" height="150" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed> 141 </object> 142</div> 143<div style="width: 88px; position: absolute; height: 48px; left: 8px; top: 64px; z-index: 103;" id="DIV1" > 144 <asp:ImageButton runat="server" ID="login" Style="position: absolute" ImageUrl="~/Images/btn_login.jpg" OnClick="login_Click" OnClientClick="login_onclick();" /> 145 <asp:ImageButton ID="register" runat="server" Style="left: 0px; position: absolute; 146 top: 24px" ImageUrl="~/Images/regist.jpg" OnClick="register_Click" /></div> 147 148 </div> 149 <div style="z-index: 101; left: 0px; width: 100px; position: absolute; top: 222px; 150 height: 100px"> 151 <uc1:Control_left ID="Control_left1" runat="server" /> 152 </div> 153 <div style=" background-image :url(/MovieShow/Images/MovieShow_main_body_list.jpg); z-index: 103; left: 170px; width: 830px; position: absolute; top: 222px; 154 height:808px"> 155 <div style="z-index: 103; left: 4px; width: 800px; position: absolute; top: 56px; 156 height: 180px"> 157 <asp:Label ID="Label7" runat="server" Font-Bold="True" Font-Size="Small" Style="z-index: 100; 158 left: 8px; position: absolute; top: 88px" Text="导演名称:"></asp:Label> 159 <asp:Label ID="Label8" runat="server" Font-Bold="True" Font-Size="Small" Style="z-index: 101; 160 left: 8px; position: absolute; top: 52px" Text="主演名称:"></asp:Label> 161 <asp:Label ID="Label9" runat="server" Font-Bold="True" Font-Size="Small" Style="z-index: 102; 162 left: 8px; position: absolute; top: 12px" Text="电影名称:"></asp:Label> 163 <asp:Label ID="Label10" runat="server" Font-Bold="True" Font-Size="Small" Style="z-index: 103; 164 left: 8px; position: absolute; top: 124px" Text="出品时间:"></asp:Label> 165 <asp:Label ID="Label11" runat="server" Font-Bold="True" Font-Size="Small" Style="z-index: 104; 166 left: 8px; position: absolute; top: 160px" Text="组合查找(任选一或四项):"></asp:Label> 167 <asp:TextBox ID="TextBox1" runat="server" Height="15px" Style="z-index: 105; left: 84px; 168 position: absolute; top: 8px" Width="180px"></asp:TextBox> 169 <asp:TextBox ID="TextBox2" runat="server" Height="15px" Style="z-index: 106; left: 84px; 170 position: absolute; top: 48px" Width="180px"></asp:TextBox> 171 <asp:TextBox ID="TextBox3" runat="server" Height="15px" Style="z-index: 107; left: 84px; 172 position: absolute; top: 84px" Width="180px"></asp:TextBox> 173 <asp:TextBox ID="TextBox4" runat="server" Height="15px" Style="z-index: 108; left: 84px; 174 position: absolute; top: 120px" Width="180px"></asp:TextBox> 175 <asp:ImageButton ID="ImageButton1" runat="server" Height="20px" ImageUrl="~/Images/SrchBtn_Over.gif" 176 Style="z-index: 109; left: 204px; position: absolute; top: 156px" Width="24px" CommandArgument="1" /> 177 &nbsp; &nbsp; &nbsp; 178 </div> 179 <div id="listDIV" style="z-index: 102; left: 4px; width: 764px; position: relative; top: 224px; height: 72px"> 180 <asp:DataList ID="DataList1" runat="server" Style="position: static" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Size="12pt" Font-Strikeout="False" Font-Underline="False" RepeatColumns="3" RepeatDirection="Horizontal" ShowHeader="False" Width="812px" CellPadding="0" Height="184px" EnableViewState="False" OnItemDataBound="DataList1_ItemDataBound"> 181 <ItemTemplate> 182 <table border="0" cellpadding="0" cellspacing="0" style=" width: 101%;position: static; height: 105%; font-size: 11px;"> 183 184 <tr> 185 <td style="width : 101px; height: 5px;"> 186 <br /> 187 <br /> 188 <asp:HyperLink ID="HyperLink1" runat="server" Height="152px" 189 Style="position: static" Width="112px" ImageUrl='<%# "/"+ DataBinder.Eval(Container.DataItem,"FilmImageURLS") %>' NavigateUrl='<%# "FilmDetails.aspx?FilmID="+DataBinder.Eval(Container.DataItem,"FilmID") %>' ToolTip='<%# DataBinder.Eval(Container.DataItem,"FilmName") %>'>HyperLink</asp:HyperLink></td> 190 <td style="width: 231px; height: 5px; color: #ff9900;"> 191 <br /> 192 <br /> 193 <br /> 194 名称:<asp:Label ID="Label1" runat="server" Style="position: static" Text='<%# DataBinder.Eval(Container.DataItem,"FilmName") %>' ForeColor="DimGray"></asp:Label><br /> 195 导演:<asp:Label ID="Label2" runat="server" Style="position: static" Text='<%# DataBinder.Eval(Container.DataItem,"FilmDirector") %>' ForeColor="DimGray"></asp:Label><br /> 196 主演:<asp:Label ID="Label3" runat="server" Style="position: static" Text='<%# DataBinder.Eval(Container.DataItem,"FilmActor") %>' ForeColor="DimGray"></asp:Label><br /> 197 地区:<asp:Label ID="Label4" runat="server" Style="position: static" Text='<%# DataBinder.Eval(Container.DataItem,"FilmRegion") %>' ForeColor="DimGray"></asp:Label><br /> 198 类型:<asp:Label ID="Label6" runat="server" Style="position: static" Text='<%# DataBinder.Eval(Container.DataItem,"FilmCategory") %>' ForeColor="DimGray"></asp:Label><br /> 199 官方网站:<asp:HyperLink ID="HyperLink2" runat="server" Height="1px" ImageUrl="~/Images/url.gif" 200 NavigateUrl='<%# DataBinder.Eval(Container.DataItem,"FilmWeb") %>' Style="position: static" 201 ToolTip='<%# DataBinder.Eval(Container.DataItem,"FilmName") %>' Width="12px">HyperLink</asp:HyperLink><br /> 202 上映时间:<br /> 203 <asp:Label ID="Label5" runat="server" Style="position: static" Text='<%# DataBinder.Eval(Container.DataItem,"FilmTime") %>' ForeColor="DimGray"></asp:Label></td> 204 </tr> 205 </table> 206 </ItemTemplate> 207 <FooterTemplate> 208 <table border="0" cellpadding="0" cellspacing="0" style="width: 584px; position: static; 209 height: 24px; font-size: 12px; color: #ff9900; vertical-align: middle;"> 210 <tr> 211 212 <td style="width: 132px; height: 22px"> 213 <asp:ImageButton ID="linkpre" runat="server" ImageUrl="~/Images/prev.gif" 214 Style="position: static" CommandArgument="pre" />&nbsp;&nbsp; &nbsp; &nbsp; 215 <asp:ImageButton ID="linknext" runat="server"