Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Login Page not running even when the coding is right.

0 views
Skip to first unread message

Joyce

unread,
Nov 13, 2009, 1:07:01 AM11/13/09
to
Hi.
I have been trying to create a login page for my project. However, i couldnt
run the asp page even though my coding is correct. Simply, the page is empty.
Did i miss out anything in the debugging section? This is the coding for my
login inside my MasterPage.master. When i debug, no error. Another thing i
am not too sure about, is when i hit debug, an error page pop up saying that
my debugging is not enabled, and i have to either modify in my web.config
page or run program without debugging. Please advise.

<%@ Master Language="VB" CodeFile="MasterPage.master.vb"
Inherits="MasterPage" %>

<!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">
<title>LOGIN PAGE</title>
<asp:ContentPlaceHolder id="head" runat="server">
</asp:ContentPlaceHolder>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">

<asp:Login ID="Login1" runat="server" Height="241px"
Width="548px">
<LayoutTemplate>
<table border="0" cellpadding="1">
<tr>
<td>
<table border="0" cellpadding="1">
<tr>
<td>
<table border="0" cellpadding="0">
<tr>
<td align="center"
colspan="2"> Log In</td>

<tr>
<td align="right">
<asp:Label ID="UserNameLabel" runat="server"
AssociatedControlID="UserName">User Name:</asp:Label>
</td>

<td>
<asp:TextBox ID="UserName" runat="server"
ontextchanged="UserName_TextChanged"></asp:TextBox>

<asp:RequiredFieldValidator ID="UserNameRequired" runat="server"
ControlToValidate="UserName" ErrorMessage="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>
<asp:TextBox ID="Password" runat="server"
TextMode="Password"></asp:TextBox>

<asp:RequiredFieldValidator ID="PasswordRequired" runat="server"
ControlToValidate="Password" ErrorMessage="Password is required."
ToolTip="Password is required."
ValidationGroup="Login1">*</asp:RequiredFieldValidator>

</td>
</tr>

<tr>
<td colspan="2">
<asp:CheckBox ID="RememberMe" runat="server" Text="Remember Me." />
</td>
</tr>

<tr>
<td align="right" colspan="2">
<asp:Button ID="LoginButton" runat="server" CommandName="Login"
Text="Please Log In" ValidationGroup="Login1" />
</td>
</tr>

</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>

</LayoutTemplate>

</asp:Login>
<br />
<br />

<asp:LoginName ID="LoginName1" runat="server" />

<asp:LoginStatus ID="LoginStatus1" runat="server" />

<br />
<br />

</asp:ContentPlaceHolder>
</div>
</form>
</body>
</html>

--
Thanks.
Regards, Joyce

0 new messages