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

📄 filmdetails.aspx

📁 .net的一个很经典很普通的实例
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="FilmDetails.aspx.cs" Inherits="FilmDetail" %>
<%Response.Buffer = true; Response.ExpiresAbsolute = System.DateTime.Now.AddSeconds(-1); Response.Expires = 0; Response.CacheControl = "no-cache";%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<link rel="shortcut icon" href="/MovieShow/Images/Real-doc.ico" type="image/x-icon" />
    <title>MovieShow--电影详细信息</title>
<script language="javascript"  type="text/javascript">
function play(control1,control2)
{
  var logon=control1.value;
  var geturl=control2.value;
  if(logon=="false")
   alert("请到用户中心登陆!");
  else
   { window.open("play.aspx?FilmID="+geturl,"newwin","location=no,toolbar=no,status=no,resizable=no,menubar=no,height=525px,width=700px");
     window.event.returnValue=false;
    }
}
  
function addfilm(control1,control2)
{
  var logon=control1.value;
  
  if(logon=="false")
  alert("请到用户中心登陆!");
  else
  {
   var arg="addfilm|"+control2.value;
   var context=document.getElementById("Label9");
   context.innerHTML= "<IMG SRC='/MovieShow/Images/wait.gif' />Loading......";
   <%= ClientScript.GetCallbackEventReference(this, "arg", "ReceiveServerData1", "context") %>
  }
}
function ReceiveServerData1(result,context)
{
  alert(result);
  context.innerHTML="已经添加!"; 
}

</script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div style=" background-image:url(/MovieShow/Images/movieshow_detail_01.jpg);z-index: 100; left: 0px; width: 1000px; position: absolute; top: 0px;
            height: 114px">
            <div style="z-index: 100; left: 120px; width: 804px; position: absolute; top:-18px;
                height: 114px">
                <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">
    <param name="movie" value="/MovieShow/Navigation/FilmDetail.swf" />
    <param name="quality" value="high" />
    <param name="wmode" value="transparent" />
    <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>
  </object>
            </div>
            <input id="Hidden3" runat="server" style="z-index: 101; left: 4px; width: 20px; position: absolute;
                top: 44px; height: 8px" type="hidden" />
        </div>
        <div style="background-image:url(/MovieShow/Images/movieshow_detail_02.jpg);z-index: 101; left: 0px; width:1000px; position: absolute; top: 112px;
            height: 666px">
            <asp:Image ID="Image1" runat="server" Height="364px"
                Style="z-index: 100; left: 608px; position: absolute; top: 96px" Width="252px" />
            <asp:TextBox ID="TextBox1" runat="server" Font-Size="Small" Height="184px" ReadOnly="True"
                Style="z-index: 101; left: 232px; position: absolute; top: 352px" TextMode="MultiLine"
                Width="336px" BorderStyle="None" ForeColor="DimGray"></asp:TextBox>
            <asp:Label ID="Label1" runat="server" Font-Size="Small" Style="z-index: 102; left: 308px;
                position: absolute; top: 108px" Text="Label" ForeColor="DimGray"></asp:Label>
            <asp:Label ID="Label2" runat="server" Font-Size="Small" Style="z-index: 103; left: 308px;
                position: absolute; top: 136px" Text="Label" ForeColor="DimGray"></asp:Label>
            <asp:Label ID="Label3" runat="server" Font-Size="Small" Style="z-index: 104; left: 308px;
                position: absolute; top: 160px" Text="Label" ForeColor="DimGray"></asp:Label>
            <asp:Label ID="Label4" runat="server" Font-Size="Small" Style="z-index: 105; left: 308px;
                position: absolute; top: 184px" Text="Label" ForeColor="DimGray"></asp:Label>
            <asp:Label ID="Label5" runat="server" Font-Size="Small" Style="z-index: 106; left: 308px;
                position: absolute; top: 208px" Text="Label" ForeColor="DimGray"></asp:Label>
            <asp:Label ID="Label6" runat="server" Font-Size="Small" Style="z-index: 107; left: 308px;
                position: absolute; top: 232px" Text="Label" ForeColor="DimGray"></asp:Label>
            <asp:Label ID="Label7" runat="server" Font-Size="Small" Style="z-index: 108; left: 308px;
                position: absolute; top: 256px" Text="Label" ForeColor="DimGray"></asp:Label>
            <asp:Label ID="Label8" runat="server" Font-Size="Small" Style="z-index: 109; left: 308px;
                position: absolute; top: 280px" Text="Label" ForeColor="DimGray"></asp:Label>
            &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
            <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Images/play.JPG" OnClick="ImageButton1_Click"
                Style="z-index: 110; left: 76px; position: absolute; top: 40px" />
            <asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/Images/favor.JPG" Style="z-index: 111;
                left: 108px; position: absolute; top: 116px" />
            <input id="Hidden1" runat="server" style="z-index: 114; left: 4px; width: 20px; position: absolute;
                top: -106px; height: 8px" type="hidden" />
            <input id="Hidden2" runat="server" style="z-index: 115; left: 4px; width: 20px; position: absolute;
                top: -86px; height: 4px" type="hidden" />
            <asp:HyperLink ID="HyperLink1" runat="server" ImageUrl="~/Images/realplay.jpg" NavigateUrl="/FilmPlay/RealPlay.rar"
                Style="z-index: 112; left: 20px; position: absolute; top: 588px"></asp:HyperLink>
            <asp:Label ID="Label9" runat="server" Font-Size="Smaller" Style="z-index: 116; left: 240px;
                position: absolute; top: 72px" Font-Bold="True" ForeColor="#C00000"></asp:Label>
        </div>
    
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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