Page Language AutoEventWireup true CodeBehind Login aspx cs Inherits N

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="NewsApp.Login" meta:resourcekey="PageResource1" %>
<!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 id="Head1" runat="server">
<title>News - Login</title>
<telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />
<style type="text/css" media="screen">
body {
font-family: ariel;
font-size: 12px;
font-color: #376EB1;
background-image: url('images/bggradient.jpg');
background-repeat: repeat-x;
background-color: Black;
margin: auto;
text-align: center;
color: gray;
vertical-align: middle;
}
#Login1 {
position: relative;
top: 308px;
margin: auto;
text-align: center;
left: 4px;
width: 311px;
}
#login_position {
background-image: url('images/background.jpg');
background-repeat: no-repeat;
height: 500px;
width: 375px;
position: relative;
top: 40px;
margin: auto;
text-align: center;
left: 0px;
}
#login_form {
height: 200px;
width: 250px;
position: relative;
top: 40px;
margin: auto;
text-align: center;
left: 0px;
}
#langselector
{
position: relative;
top: 300px;
left: 300px;
}
.login-text-color { color: green; }
</style>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<telerik:RadFormDecorator ID="RadFormDecorator1" runat="server"
meta:resourcekey="RadFormDecorator1Resource1" />
<div id="login_position">
<div id="lanselector">
<asp:DropDownList ID="DropDownList1" runat="server">
<asp:ListItem>English (USA)</asp:ListItem>
<asp:ListItem>Russian</asp:ListItem>
</asp:DropDownList>
</div>
<asp:Login id="Login1" runat="server" onloggedin="Login1_LoggedIn"
meta:resourcekey="Login1Resource1">
<LayoutTemplate>
<div id="login_form">
<table border="0" cellpadding="1" cellspacing="0"
style="border-collapse:collapse;">
<tr>
<td>
<table border="0" cellpadding="0">
<tr>
<td align="center" colspan="2">
Login for testing purposes: <span class="login-text-color">Admin, password#</span></td>
</tr>
<tr>
<td align="right">
<asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName"
meta:resourcekey="UserNameLabelResource1">User
Name:</asp:Label>
</td>
<td>
<telerik:RadTextBox id="UserName" runat="server" Text="Admin" LabelCssClass=""
meta:resourcekey="UserNameResource1">
</telerik:RadTextBox>
<asp:RequiredFieldValidator ID="UserNameRequired" runat="server"
ControlToValidate="UserName" ErrorMessage="User Name is required."
ToolTip="User Name is required." ValidationGroup="Login1"
meta:resourcekey="UserNameRequiredResource1">*</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="right">
<asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password"
meta:resourcekey="PasswordLabelResource1">Password:</asp:Label>
</td>
<td>
<telerik:RadTextBox ID="Password" Runat="server" TextMode="Password"
LabelCssClass="" meta:resourcekey="PasswordResource1">
</telerik:RadTextBox>
<asp:RequiredFieldValidator ID="PasswordRequired" runat="server"
ControlToValidate="Password" ErrorMessage="Password is required."
ToolTip="Password is required." ValidationGroup="Login1"
meta:resourcekey="PasswordRequiredResource1">*</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="center" colspan="2">
<asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Log In"
ValidationGroup="Login1" meta:resourcekey="LoginButtonResource1" />
</td>
</tr>
<tr>
<td align="center" colspan="2" style="color:Red;">
<asp:Literal ID="FailureText" runat="server" EnableViewState="False"
meta:resourcekey="FailureTextResource1"></asp:Literal>
</td>
</tr>
<tr>
<td align="right" colspan="2">
&nbsp;</td>
</tr>
<tr>
<!-- for real auth -->
</tr>
<tr>
<td align="right" colspan="2">
&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</LayoutTemplate>
</asp:Login>
</div>
<telerik:RadSkinManager ID="RadSkinManager1" Runat="server" Skin="Black">
</telerik:RadSkinManager>
</form>
</body>
</html>