温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:Asp.net2.0的电影在线点播系统片段源码
当前文件:
MovieShowSample/Logon.aspx,打开代码结构图
MovieShowSample/Logon.aspx,打开代码结构图1<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Logon.aspx.cs" Inherits="Logon" %> 2
3
<%@ Register Src="UserControl/Control_foot.ascx" TagName="Control_foot" TagPrefix="uc1" %> 4
5
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 6
7
<html xmlns="http://www.w3.org/1999/xhtml" > 8
<head runat="server"> 9
<link rel="shortcut icon" href="/MovieShow/Images/Real-doc.ico" type="image/x-icon" /> 10
<title>MovieShow--用户登录</title> 11
</head> 12
<script language="javascript" type="text/javascript"> 13
function logon() 14
{ 15
if(document.getElementById("TextBox1").value=="") 16
alert("请输入用户名...!"); 17
else if(document.getElementById("TextBox2").value=="") 18
alert("请输入用户密码...!"); 19
else 20
{ 21
var txt1=document.getElementById("TextBox1").value; 22
var txt2=document.getElementById("TextBox2").value; 23
var context=document.getElementById("Label2"); 24
var arg="confirm|"+txt1+"|"+txt2; 25
context.innerHTML= "<IMG SRC='/MovieShow/Images/wait.gif' />Loading..."; 26
<%= ClientScript.GetCallbackEventReference(this, "arg", "ReceiveServerData", "context") %> 27
} 28
} 29
function ReceiveServerData(result,context) 30
{ 31
context.innerHTML=result; 32
if(result=="登录成功!") 33
{ 34
35
window.location.reload("Default.aspx"); 36
} 37
38
} 39
function login() 40
{ 41
if(document.getElementById("TextBox1").value=="") 42
alert("请输入用户名...!"); 43
else if(document.getElementById("TextBox2").value=="") 44
alert("请输入用户密码...!"); 45
else 46
{ 47
var txt1=document.getElementById("TextBox1").value; 48
var txt2=document.getElementById("TextBox2").value; 49
var context=document.getElementById("Label2"); 50
var arg="confirm|"+txt1+"|"+txt2; 51
context.innerHTML= "<IMG SRC='/MovieShow/Images/wait.gif' />Loading......"; 52
<%= ClientScript.GetCallbackEventReference(this, "arg", "ReceiveServerData1", "context") %> 53
} 54
} 55
function ReceiveServerData1(result,context) 56
{ 57
context.innerHTML=result; 58
if(result=="登录成功!") 59
{ 60
61
window.location.reload("admin/admin.aspx"); 62
} 63
64
} 65
</script> 66
<body> 67
<form id="form1" runat="server"> 68
69
<div style=" width:820px; height:150px;left: 104px; top: 4px; z-index: 102; position: absolute;" > 70
<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"> 71
<param name="movie" value="/MovieShow/Navigation/Head.swf" /> 72
<param name="quality" value="high" /> 73
<param name="wmode" value="transparent" /> 74
<embed src="/MovieShow/Navigation/Head.swf" width="820" height="150" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed> 75
</object> 76
</div> 77
<div> 78
<div style=" background-image:url(/MovieShow/Images/logon.JPG); z-index: 103; left: 164px; width: 708px; position: absolute; top: 160px; 79
height: 452px"> 80
<asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Images/login_go.jpg" 81
Style="z-index: 100; left: 444px; position: absolute; top: 134px" /> 82
<asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/Images/rgt.gif" Style="z-index: 101; 83
left: 256px; position: absolute; top: 288px" OnClick="ImageButton2_Click" /> 84
<asp:ImageButton ID="ImageButton3" runat="server" ImageUrl="~/Images/admin.gif" Style="z-index: 102; 85
left: 392px; position: absolute; top: 288px" /> 86
<asp:TextBox ID="TextBox1" runat="server" Style="z-index: 103; left: 268px; position: absolute; 87
top: 142px" Width="166px"></asp:TextBox> 88
<asp:TextBox ID="TextBox2" runat="server" Style="z-index: 104; left: 268px; position: absolute; 89
top: 182px" Width="166px" TextMode="Password"></asp:TextBox> 90
<asp:Label ID="Label1" runat="server" Font-Bold="False" Font-Size="Smaller" Style="z-index: 105; 91
left: 212px; position: absolute; top: 236px" Text="保存cookie时间:"></asp:Label> 92
<asp:RadioButton ID="RadioButton1" runat="server" Font-Size="Smaller" ForeColor="White" 93
GroupName="1" OnCheckedChanged="RadioButton1_CheckedChanged" Style="z-index: 106; 94
left: 416px; position: absolute; top: 232px" Text="一个月" Font-Bold="True" /> 95
<asp:RadioButton ID="RadioButton2" runat="server" Font-Size="Smaller" ForeColor="White" 96
GroupName="1" Style="z-index: 107; left: 368px; position: absolute; top: 232px" 97
Text="一天" Font-Bold="True" /> 98
<asp:RadioButton ID="RadioButton3" runat="server" Font-Size="Smaller" ForeColor="White" 99
GroupName="1" Style="z-index: 108; left: 476px; position: absolute; top: 232px" 100
Text="一年" Font-Bold="True" /> 101
<asp:RadioButton ID="RadioButton4" runat="server" Font-Size="Smaller" ForeColor="White" 102
GroupName="1" Style="z-index: 109; left: 308px; position: absolute; top: 232px" 103
Text="2小时" Font-Bold="True" /> 104
<asp:Label ID="Label2" runat="server" Font-Size="Smaller" ForeColor="Red" Style="z-index: 111; 105
left: 308px; position: absolute; top: 428px" Width="236px"></asp:Label> 106
</div> 107
<div style=" background-image:url(/MovieShow/Images/foot.jpg);z-index : 104; left: 0px; width: 156px; position: absolute; top: 452px; 108
height: 168px"> 109
</div> 110
111
</div> 112
<div style="z-index: 105; left: 168px; width: 72px; position: absolute; top: 164px; 113
height: 72px"> 114
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" style="position: static; width: 692px; height: 440px;"> 115
<param name="movie" value="/MovieShow/Navigation/water.swf" /> 116
<param name="quality" value="high" /> 117
<param name="wmode" value="transparent" /> 118
<embed src="/MovieShow/Navigation/water.swf" width="820" height="150" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed> 119
</object> 120
</div> 121
122
123
</form> 124
</body> 125
</html> 126






}
}