温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:Asp.net2.0的电影在线点播系统片段源码
当前文件:
MovieShowSample/FilmDetails.aspx,打开代码结构图
MovieShowSample/FilmDetails.aspx,打开代码结构图1<%@ Page Language="C#" AutoEventWireup="true" CodeFile="FilmDetails.aspx.cs" Inherits="FilmDetail" %> 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 play(control1,control2) 12
{ 13
var logon=control1.value; 14
var geturl=control2.value; 15
if(logon=="false") 16
alert("请到用户中心登陆!"); 17
else 18
{ window.open("play.aspx?FilmID="+geturl,"newwin","location=no,toolbar=no,status=no,resizable=no,menubar=no,height=525px,width=700px"); 19
window.event.returnValue=false; 20
} 21
} 22
23
function addfilm(control1,control2) 24
{ 25
var logon=control1.value; 26
27
if(logon=="false") 28
alert("请到用户中心登陆!"); 29
else 30
{ 31
var arg="addfilm|"+control2.value; 32
var context=document.getElementById("Label9"); 33
context.innerHTML= "<IMG SRC='/MovieShow/Images/wait.gif' />Loading......"; 34
<%= ClientScript.GetCallbackEventReference(this, "arg", "ReceiveServerData1", "context") %> 35
} 36
} 37
function ReceiveServerData1(result,context) 38
{ 39
alert(result); 40
context.innerHTML="已经添加!"; 41
} 42
43
</script> 44
</head> 45
<body> 46
<form id="form1" runat="server"> 47
<div> 48
<div style=" background-image:url(/MovieShow/Images/movieshow_detail_01.jpg);z-index: 100; left: 0px; width: 1000px; position: absolute; top: 0px; 49
height: 114px"> 50
<div style="z-index: 100; left: 120px; width: 804px; position: absolute; top:-18px; 51
height: 114px"> 52
<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"> 53
<param name="movie" value="/MovieShow/Navigation/FilmDetail.swf" /> 54
<param name="quality" value="high" /> 55
<param name="wmode" value="transparent" /> 56
<embed src="/MovieShow/Navigation/FilmDetail.swf" width="804" height="114" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed> 57
</object> 58
</div> 59
<input id="Hidden3" runat="server" style="z-index: 101; left: 4px; width: 20px; position: absolute; 60
top: 44px; height: 8px" type="hidden" /> 61
</div> 62
<div style="background-image:url(/MovieShow/Images/movieshow_detail_02.jpg);z-index: 101; left: 0px; width:1000px; position: absolute; top: 112px; 63
height: 666px"> 64
<asp:Image ID="Image1" runat="server" Height="364px" 65
Style="z-index: 100; left: 608px; position: absolute; top: 96px" Width="252px" /> 66
<asp:TextBox ID="TextBox1" runat="server" Font-Size="Small" Height="184px" ReadOnly="True" 67
Style="z-index: 101; left: 232px; position: absolute; top: 352px" TextMode="MultiLine" 68
Width="336px" BorderStyle="None" ForeColor="DimGray"></asp:TextBox> 69
<asp:Label ID="Label1" runat="server" Font-Size="Small" Style="z-index: 102; left: 308px; 70
position: absolute; top: 108px" Text="Label" ForeColor="DimGray"></asp:Label> 71
<asp:Label ID="Label2" runat="server" Font-Size="Small" Style="z-index: 103; left: 308px; 72
position: absolute; top: 136px" Text="Label" ForeColor="DimGray"></asp:Label> 73
<asp:Label ID="Label3" runat="server" Font-Size="Small" Style="z-index: 104; left: 308px; 74
position: absolute; top: 160px" Text="Label" ForeColor="DimGray"></asp:Label> 75
<asp:Label ID="Label4" runat="server" Font-Size="Small" Style="z-index: 105; left: 308px; 76
position: absolute; top: 184px" Text="Label" ForeColor="DimGray"></asp:Label> 77
<asp:Label ID="Label5" runat="server" Font-Size="Small" Style="z-index: 106; left: 308px; 78
position: absolute; top: 208px" Text="Label" ForeColor="DimGray"></asp:Label> 79
<asp:Label ID="Label6" runat="server" Font-Size="Small" Style="z-index: 107; left: 308px; 80
position: absolute; top: 232px" Text="Label" ForeColor="DimGray"></asp:Label> 81
<asp:Label ID="Label7" runat="server" Font-Size="Small" Style="z-index: 108; left: 308px; 82
position: absolute; top: 256px" Text="Label" ForeColor="DimGray"></asp:Label> 83
<asp:Label ID="Label8" runat="server" Font-Size="Small" Style="z-index: 109; left: 308px; 84
position: absolute; top: 280px" Text="Label" ForeColor="DimGray"></asp:Label> 85
86
<asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Images/play.JPG" OnClick="ImageButton1_Click" 87
Style="z-index: 110; left: 76px; position: absolute; top: 40px" /> 88
<asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/Images/favor.JPG" Style="z-index: 111; 89
left: 108px; position: absolute; top: 116px" /> 90
<input id="Hidden1" runat="server" style="z-index: 114; left: 4px; width: 20px; position: absolute; 91
top: -106px; height: 8px" type="hidden" /> 92
<input id="Hidden2" runat="server" style="z-index: 115; left: 4px; width: 20px; position: absolute; 93
top: -86px; height: 4px" type="hidden" /> 94
<asp:HyperLink ID="HyperLink1" runat="server" ImageUrl="~/Images/realplay.jpg" NavigateUrl="/FilmPlay/RealPlay.rar" 95
Style="z-index: 112; left: 20px; position: absolute; top: 588px"></asp:HyperLink> 96
<asp:Label ID="Label9" runat="server" Font-Size="Smaller" Style="z-index: 116; left: 240px; 97
position: absolute; top: 72px" Font-Bold="True" ForeColor="#C00000"></asp:Label> 98
</div> 99
100
</div> 101
</form> 102
</body> 103
</html> 104






}
