<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="NewsApp.Login" %>
<!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;
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: 300px;
margin: auto;
text-align: center;
left: 0px;
}
.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" />
<div id="login_position">
<%-- <asp:Login id="Login1" runat="server" onloggedin="Login1_LoggedIn">
<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">User
Name:</asp:Label>
</td>
<td>
<telerik:RadTextBox id="UserName" runat="server" Text="Admin">
</telerik:RadTextBox>
<asp:RequiredFieldValidator ID="UserNameRequired" runat="server"
ControlToValidate="UserName" ErrorMessage="User Name is required."
ToolTip="User Name is required." ValidationGroup="Login1">*</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="right">
<asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label>
</td>
<td>
<telerik:RadTextBox ID="Password" Runat="server" TextMode="Password">
</telerik:RadTextBox>
<asp:RequiredFieldValidator ID="PasswordRequired" runat="server"
ControlToValidate="Password" ErrorMessage="Password is required."
ToolTip="Password is required." ValidationGroup="Login1">*</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="center" colspan="2">
<asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Log In" OnClick="Redirect"
ValidationGroup="Login1" />
</td>
</tr>
<tr>
<td align="center" colspan="2" style="color:Red;">
<asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
</td>
</tr>
<tr>
<td align="right" colspan="2">
</td>
</tr>
<tr>
<!-- for real auth -->
<%-- <td align="right" colspan="2">
Don't have an account?
<asp:Button ID="RegisterButton" runat="server" onclick="RegisterButton_Click"
Text="Sign Up" />
</td>--%>
</tr>
<tr>
<td align="right" colspan="2">
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<%-- </LayoutTemplate>
</asp:Login>--%>
</div>
<telerik:RadSkinManager ID="RadSkinManager1" Runat="server" Skin="Black">
</telerik:RadSkinManager>
</form>
</body>
</html>