您目前尚未登陆,请选择【登陆】或【注册
首页->影音视频->Asp.net2.0的电影在线点播系统片段源码>>List.aspx>>源码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:Asp.net2.0的电影在线点播系统片段源码
当前文件:文件类型 MovieShowSample/List.aspx打开代码结构图
普通视图
		            
1<%@ Page Language="C#" AutoEventWireup="true" CodeFile="List.aspx.cs" Inherits="List" %> 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 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 66</script> 67 68 69 <style type="text/css"> 70<!-- 71#Layer1 { 72 position:static; 73 width:1000px; 74 height:223px; 75 background-image: url(/MovieShow/Images/MovieShow_main_head.jpg); 76} 77#Layer2 { 78 position:absolute; 79 width:820px; 80 height:150px; 81 82} 83 84--> 85 86</style> 87</head> 88<body> 89 <form id="form1" runat="server"> 90 <div style="z-index: 100; left: 0px; width: 1000px; position: absolute; top: 0px; 91 height: 1px"><div id="Layer1" style="left: 0px; top: 0px"> 92 93 <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; 94 height: 200px" visible="false"><asp:LinkButton ID="Linkout" runat="server" Font-Bold="True" Font-Names="Algerian" 95 Font-Size="Small" Style="z-index: 100; left: 45px; position: absolute; top: 159px" OnClick="Linkout_Click">[Logout]</asp:LinkButton> 96 <asp:HyperLink ID="Link" runat="server" Font-Bold="True" Font-Size="Medium" Style="z-index: 101; left: 60px; position: absolute; 97 top: 75px" Height="16px">[Link]</asp:HyperLink> 98 <asp:HyperLink ID="LinkRole" Font-Bold="true" Font-Size="Medium" runat="server" Style="z-index: 102; left: 60px; position: absolute; 99 top: 100px">[Link]</asp:HyperLink> 100 <img src="Images/king.jpg" style="position: absolute; z-index: 103; left: 44px; top: 56px;" /></div> 101 </div> 102 103 104 105<div style=" left: 56px; width: 112px; position: relative; top: -109px; height: 48px; z-index: 101;"> 106<span id="span1"> 107 <asp:TextBox ID="txtpwd" runat="server" Style="left: 0px; position: relative; 108 top: 24px" Height="13px" Width="88px" TextMode="Password" ></asp:TextBox><br /> 109 <asp:TextBox ID="txtid" runat="server" Style="left: 0px; position: relative; 110 top: -18px" Height="13px" Width="88px"></asp:TextBox> 111</span> 112</div> 113 114<div id="Layer2" style="left: 176px; top: 53px; z-index: 102;"> 115 <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"> 116 <param name="movie" value="/MovieShow/Navigation/navigation.swf" /> 117 <param name="quality" value="high" /> 118 <param name="wmode" value="transparent" /> 119 <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> 120 </object> 121</div> 122<div style="width: 88px; position: absolute; height: 48px; left: 8px; top: 64px; z-index: 103;" id="DIV1" > 123 <asp:ImageButton runat="server" ID="login" Style="position: absolute" ImageUrl="~/Images/btn_login.jpg" OnClick="login_Click" OnClientClick="login_onclick();" /> 124 <asp:ImageButton ID="register" runat="server" Style="left: 0px; position: absolute; 125 top: 24px" ImageUrl="~/Images/regist.jpg" OnClick="register_Click" /></div> 126 127 </div> 128 <div style="z-index: 101; left: 0px; width: 100px; position: absolute; top: 222px; 129 height: 100px"> 130 <uc1:Control_left ID="Control_left1" runat="server" /> 131 </div> 132 <div style=" background-image :url(/MovieShow/Images/MovieShow_main_body_list.jpg); z-index: 103; left: 170px; width: 830px; position: absolute; top: 222px; 133 height:808px"> 134 <div id="listDIV" style="z-index: 102; left: 4px; width: 764px; position: relative; top: 28px; height: 668px"> 135 <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="312px" EnableViewState="False" OnItemDataBound="DataList1_ItemDataBound"> 136 <ItemTemplate> 137 <table border="0" cellpadding="0" cellspacing="0" style=" width: 101%;position: static; height: 105%; font-size: 11px;"> 138 139 <tr> 140 <td style="width : 101px; height: 5px;"> 141 <br /> 142 <br /> 143 <asp:HyperLink ID="HyperLink1" runat="server" Height="152px" 144 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> 145 <td style="width: 231px; height: 5px; color: #ff9900;"> 146 <br /> 147 <br /> 148 <br /> 149 名称:<asp:Label ID="Label1" runat="server" Style="position: static" Text='<%# DataBinder.Eval(Container.DataItem,"FilmName") %>' ForeColor="DimGray"></asp:Label><br /> 150 导演:<asp:Label ID="Label2" runat="server" Style="position: static" Text='<%# DataBinder.Eval(Container.DataItem,"FilmDirector") %>' ForeColor="DimGray"></asp:Label><br /> 151 主演:<asp:Label ID="Label3" runat="server" Style="position: static" Text='<%# DataBinder.Eval(Container.DataItem,"FilmActor") %>' ForeColor="DimGray"></asp:Label><br /> 152 地区:<asp:Label ID="Label4" runat="server" Style="position: static" Text='<%# DataBinder.Eval(Container.DataItem,"FilmRegion") %>' ForeColor="DimGray"></asp:Label><br /> 153 类型:<asp:Label ID="Label6" runat="server" Style="position: static" Text='<%# DataBinder.Eval(Container.DataItem,"FilmCategory") %>' ForeColor="DimGray"></asp:Label><br /> 154 官方网站:<asp:HyperLink ID="HyperLink2" runat="server" Height="1px" ImageUrl="~/Images/url.gif" 155 NavigateUrl='<%# DataBinder.Eval(Container.DataItem,"FilmWeb") %>' Style="position: static" 156 ToolTip='<%# DataBinder.Eval(Container.DataItem,"FilmName") %>' Width="12px">HyperLink</asp:HyperLink><br /> 157 上映时间:<br /> 158 <asp:Label ID="Label5" runat="server" Style="position: static" Text='<%# DataBinder.Eval(Container.DataItem,"FilmTime") %>' ForeColor="DimGray"></asp:Label></td> 159 </tr> 160 </table> 161 </ItemTemplate> 162 <FooterTemplate> 163 <table border="0" cellpadding="0" cellspacing="0" style="width: 584px; position: static; 164 height: 24px; font-size: 12px; color: #ff9900; vertical-align: middle;"> 165 <tr> 166 167 <td style="width: 132px; height: 22px"> 168 <asp:ImageButton ID="linkpre" runat="server" ImageUrl="~/Images/prev.gif" 169 Style="position: static" CommandArgument="pre" />&nbsp;&nbsp; &nbsp; &nbsp; 170 <asp:ImageButton ID="linknext" runat="server" ImageUrl="~/Images/next.gif" Style="position: static" CommandArgument="next" /></td> 171 <td style="height: 22px"> &nbsp; &nbsp; &nbsp; &nbsp; 当前页: 172 <asp:Label ID="now" runat="server" Font-Size="Small" ForeColor="Black" Style="position: static"></asp:Label> 173 / 总页数: 174 <asp:Label 175 ID="all" runat="server" Font-Size="Small" ForeColor="Black" Style="position: static"></asp:Label> 176 &nbsp; &nbsp; &nbsp;&nbsp; 跳到: 177 <asp:DropDownList ID="DropDownList1" runat="server" Style="position: static"> 178 </asp:DropDownList> 179&nbsp; 180 </td> 181 </tr> 182 183 </table> 184 </FooterTemplate> 185 <FooterStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" 186 Font-Underline="False" Wrap="False" VerticalAlign="Middle" /> 187 </asp:DataList> 188 189 190 191 192 </div> 193 194 </div> 195 196 <div style="z-index: 104; left: -10px; width: 1000px; position: absolute; top: 1036px; 197 height: 51px"> 198 <uc2:Control_foot ID="Control_foot1" runat="server" /> 199 </div> 200 <div style=" background-image:url(/MovieShow/Images/MovieShow_main_left1.jpg);z-index: 105; left: 0px; width: 170px; position: absolute; top: 920px; 201 height: 112px"> 202 </div> 203 204 205 206 </form> 207</body> 208</html> 209
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:Asp.net2.0的电影在线点播系统片段源码
51Aspx.com 版权所有 CopyRight © 2000-2008. 京ICP备06046876号