您目前尚未登陆,请选择【登陆】或【注册
首页->影音视频->Asp.net2.0的电影在线点播系统片段源码>>admin/admin.aspx>>源码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:Asp.net2.0的电影在线点播系统片段源码
当前文件:文件类型 MovieShowSample/admin/admin.aspx打开代码结构图
普通视图
		            
1<%@ Page Language="C#" AutoEventWireup="true" CodeFile="admin.aspx.cs" Inherits="admin_admin" MaintainScrollPositionOnPostback="true" %> 2<%Response.Buffer = true; Response.ExpiresAbsolute = System.DateTime.Now.AddSeconds(-1); Response.Expires = 0; Response.CacheControl = "no-cache";%> 3 4<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 5 6<html xmlns="http://www.w3.org/1999/xhtml" > 7<head runat="server"> 8<link rel="shortcut icon" href="/MovieShow/Images/Real-doc.ico" type="image/x-icon" /> 9 <title>MovieShow--管理</title> 10 <script language="javascript" type="text/javascript"> 11 function pageStart() 12 { 13 document.getElementById("DIV1").style.display="block"; 14 document.getElementById("DIV2").style.display="none"; 15 document.getElementById("DIV3").style.display="none"; 16 document.getElementById("DIV4").style.display="none"; 17 } 18 function select1() 19 { 20 document.getElementById("DIV1").style.display="block"; 21 document.getElementById("DIV2").style.display="none"; 22 document.getElementById("DIV3").style.display="none"; 23 document.getElementById("DIV4").style.display="none"; 24 25 } 26 function select2() 27 { 28 document.getElementById("DIV1").style.display="none"; 29 document.getElementById("DIV2").style.display="block"; 30 document.getElementById("DIV3").style.display="none"; 31 document.getElementById("DIV4").style.display="none"; 32 33 } 34 function select3() 35 { 36 document.getElementById("DIV1").style.display="none"; 37 document.getElementById("DIV2").style.display="none"; 38 document.getElementById("DIV3").style.display="block"; 39 document.getElementById("DIV4").style.display="none"; 40 41 } 42 function select4() 43 { 44 document.getElementById("DIV1").style.display="none"; 45 document.getElementById("DIV2").style.display="none"; 46 document.getElementById("DIV3").style.display="none"; 47 document.getElementById("DIV4").style.display="block"; 48 49 } 50 51 </script> 52</head> 53<body onload="pageStart();"> 54 <form id="form1" runat="server"> 55 <div> 56 <div style=" background-image:url(/MovieShow/Images/admin.jpg);z-index: 100; left: 0px; width: 344px; position: absolute; top: 132px; 57 height: 488px"> 58 <asp:Label ID="Label1" runat="server" Font-Size="Smaller" Style="z-index: 100; left: 152px; 59 position: absolute; top: 44px" Text="Label"></asp:Label> 60 <asp:Label ID="Label2" runat="server" Font-Size="Smaller" Style="z-index: 101; left: 152px; 61 position: absolute; top: 80px" Text="Label"></asp:Label> 62 <asp:HyperLink ID="Link1" runat="server" Font-Size="Smaller" ForeColor="#404040" 63 Style="z-index: 102; left: 172px; position: absolute; top: 168px">电影详细信息</asp:HyperLink> 64 <asp:HyperLink ID="Link2" runat="server" Font-Size="Smaller" ForeColor="#404040" 65 Style="z-index: 103; left: 188px; position: absolute; top: 212px">电影介绍</asp:HyperLink> 66 <asp:HyperLink ID="Link3" runat="server" Font-Size="Smaller" ForeColor="#404040" 67 Style="z-index: 104; left: 192px; position: absolute; top: 256px">用户信息</asp:HyperLink> 68 <asp:HyperLink ID="Link4" runat="server" Font-Size="Smaller" ForeColor="#404040" 69 Style="z-index: 105; left: 180px; position: absolute; top: 300px">用户收藏信息</asp:HyperLink> 70 &nbsp; 71 <asp:LinkButton ID="LinkButton1" runat="server" Font-Size="Smaller" ForeColor="#404040" 72 OnClick="LinkButton1_Click" Style="z-index: 107; left: 200px; position: absolute; 73 top: 344px">登出</asp:LinkButton> 74 </div> 75 <div id="DIV1" runat="server" style="font-size: 15px; z-index: 101; left: 360px; 76 width: 556px; position: absolute; top: 136px; height: 484px"> 77 <asp:DetailsView ID="DetailsView1" runat="server" AllowPaging="True" AutoGenerateDeleteButton="True" 78 AutoGenerateEditButton="True" AutoGenerateInsertButton="True" AutoGenerateRows="False" 79 Caption="电影详细信息" CaptionAlign="Top" DataKeyNames="FilmID" DataSourceID="SqlDataSource1" 80 EnablePagingCallbacks="True" Height="1px" Style="position: static" Width="556px"> 81 <PagerSettings FirstPageText="第一页" LastPageText="最后一页" NextPageText="下一页" PageButtonCount="15" 82 PreviousPageText="上一页" /> 83 <Fields> 84 <asp:BoundField DataField="FilmID" HeaderText="FilmID" InsertVisible="False" ReadOnly="True" 85 SortExpression="FilmID" /> 86 <asp:BoundField DataField="FilmName" HeaderText="FilmName" SortExpression="FilmName" /> 87 <asp:BoundField DataField="FilmOtherName" HeaderText="FilmOtherName" SortExpression="FilmOtherName" /> 88 <asp:BoundField DataField="FilmImageURLB" HeaderText="FilmImageURLB" SortExpression="FilmImageURLB" /> 89 <asp:BoundField DataField="FilmDirector" HeaderText="FilmDirector" SortExpression="FilmDirector" /> 90 <asp:BoundField DataField="FilmActor" HeaderText="FilmActor" SortExpression="FilmActor" /> 91 <asp:BoundField DataField="FilmTime" HeaderText="FilmTime" SortExpression="FilmTime" /> 92 <asp:BoundField DataField="FilmHit" HeaderText="FilmHit" SortExpression="FilmHit" /> 93 <asp:BoundField DataField="FilmCategory" HeaderText="FilmCategory" SortExpression="FilmCategory" /> 94 <asp:BoundField DataField="FilmRegion" HeaderText="FilmRegion" SortExpression="FilmRegion" /> 95 <asp:BoundField DataField="FilmPlayTime" HeaderText="FilmPlayTime" SortExpression="FilmPlayTime" /> 96 <asp:BoundField DataField="FilmImageURLS" HeaderText="FilmImageURLS" SortExpression="FilmImageURLS" /> 97 <asp:BoundField DataField="FilmWeb" HeaderText="FilmWeb" SortExpression="FilmWeb" /> 98 <asp:BoundField DataField="PlayURL" HeaderText="PlayURL" SortExpression="PlayURL" /> 99 </Fields> 100 </asp:DetailsView> 101 </div> 102 <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="Data Source=.;Initial Catalog=SqlFilm;Persist Security Info=True;User ID=sa" 103 InsertCommand="INSERT INTO Films(FilmID, FilmName, FilmOtherName, FilmImageURLB, FilmDirector, FilmActor, FilmTime, FilmHit, FilmCategory, FilmRegion, FilmPlayTime, FilmImageURLS, FilmWeb, PlayURL) VALUES (,,,,,,,,,,,,,)" 104 ProviderName="System.Data.SqlClient" SelectCommand="SELECT [FilmID], [FilmName], [FilmOtherName], [FilmImageURLB], [FilmDirector], [FilmActor], [FilmTime], [FilmHit], [FilmCategory], [FilmRegion], [FilmPlayTime], [FilmImageURLS], [FilmWeb], [PlayURL] FROM [Films]" 105 UpdateCommand="UPDATE Films SET FilmName =, FilmOtherName =, FilmImageURLB =, FilmDirector =, FilmActor =, FilmTime =, FilmHit =, FilmCategory =, FilmRegion =, FilmPlayTime =, FilmImageURLS =, FilmWeb =, PlayURL ="> 106 </asp:SqlDataSource> 107 <asp:SqlDataSource ID="SqlDataSource4" runat="server" ConnectionString="Data Source=.;Initial Catalog=SqlFilm;Persist Security Info=True;User ID=sa" 108 ProviderName="System.Data.SqlClient" SelectCommand="SELECT * FROM [Users]"></asp:SqlDataSource> 109 <div id="DIV3" runat="server" style="font-size: 15px; z-index: 103; left: 364px; 110 width: 100px; position: absolute; top: 140px; height: 100px"> 111 <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True" 112 AutoGenerateColumns="False" AutoGenerateDeleteButton="True" AutoGenerateEditButton="True" 113 AutoGenerateSelectButton="True" DataKeyNames="UserName,FilmID" DataSourceID="SqlDataSource3" 114 EnableViewState="False" Style="position: static" Width="560px"> 115 <Columns> 116 <asp:BoundField DataField="UserName" HeaderText="UserName" ReadOnly="True" SortExpression="UserName" /> 117 <asp:BoundField DataField="FilmID" HeaderText="FilmID" ReadOnly="True" SortExpression="FilmID" /> 118 </Columns> 119 </asp:GridView> 120 </div> 121 <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="Data Source=.;Initial Catalog=SqlFilm;Persist Security Info=True;User ID=sa" 122 ProviderName="System.Data.SqlClient" SelectCommand="SELECT [FilmDetail] FROM [Films]"> 123 </asp:SqlDataSource> 124 <div id="DIV4" runat="server" style="font-size: 15px; z-index: 104; left: 364px; 125 width: 548px; position: absolute; top: 140px; height: 100px"> 126 <asp:DetailsView ID="DetailsView3" runat="server" AllowPaging="True" AutoGenerateDeleteButton="True" 127 AutoGenerateEditButton="True" AutoGenerateInsertButton="True" AutoGenerateRows="False" 128 DataKeyNames="UserID" DataSourceID="SqlDataSource4" EnablePagingCallbacks="True" 129 Height="50px" Style="position: static" Width="420px"> 130 <Fields> 131 <asp:BoundField DataField="UserID" HeaderText="UserID" InsertVisible="False" ReadOnly="True" 132 SortExpression="UserID" /> 133 <asp:BoundField DataField="UserName" HeaderText="UserName" SortExpression="UserName" /> 134 <asp:BoundField DataField="UserPwd" HeaderText="UserPwd" SortExpression="UserPwd" /> 135 <asp:BoundField DataField="Email" HeaderText="Email" SortExpression="Email" /> 136 <asp:BoundField DataField="sex" HeaderText="sex" SortExpression="sex" /> 137 <asp:BoundField DataField="Constellation" HeaderText="Constellation" SortExpression="Constellation" /> 138 <asp:BoundField DataField="CellPhone" HeaderText="CellPhone" SortExpression="CellPhone" /> 139 <asp:BoundField DataField="QQ" HeaderText="QQ" SortExpression="QQ" /> 140 <asp:BoundField DataField="RoleName" HeaderText="RoleName" SortExpression="RoleName" /> 141 </Fields> 142 </asp:DetailsView> 143 </div> 144 </div> 145 <div id="DIV2" runat="server" style="font-size: 12px; z-index: 102; left: 360px; 146 width: 100px; position: absolute; top: 136px; height: 100px"> 147 <asp:DetailsView ID="DetailsView2" runat="server" AllowPaging="True" AutoGenerateDeleteButton="True" 148 AutoGenerateEditButton="True" AutoGenerateInsertButton="True" AutoGenerateRows="False" 149 Caption="电影介绍" DataSourceID="SqlDataSource2" EnablePagingCallbacks="True" Height="32px" 150 Style="position: static" Width="556px"> 151 <EditRowStyle Font-Size="X-Small" /> 152 <Fields> 153 <asp:BoundField DataField="FilmDetail" HeaderText="FilmDetail" SortExpression="FilmDetail" /> 154 </Fields> 155 </asp:DetailsView> 156 </div> 157 <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="Data Source=.;Initial Catalog=SqlFilm;Persist Security Info=True;User ID=sa" 158 ProviderName="System.Data.SqlClient" SelectCommand="SELECT * FROM [Filmfavor]"></asp:SqlDataSource> 159 </form> 160</body> 161</html> 162
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:Asp.net2.0的电影在线点播系统片段源码
51Aspx.com 版权所有 CopyRight © 2000-2008. 京ICP备06046876号