Hi,
I am trying to use the following code to make a form
<form name="Frm_login" method="post" runat="server">
<P align="center">Login Page</P>
<P align="center">
<TABLE id="Table1" cellSpacing="1" cols="2" cellPadding="1" width="300" align="center"
border="0">
<TR>
<TD>Username</TD>
<TD><asp:textbox id="Txt_userName" runat="server"></asp:textbox></TD>
</TR>
<TR>
<TD>Password
</TD>
<TD>
<asp:TextBox id="Txt_passWord" runat="server" TextMode="Password"></asp:TextBox></TD>
</TR>
</TABLE>
</P>
<P align="center"><asp:button id="Submit" runat="server" Text="Submit"></asp:button></P>
<P align="center"> </P>
<P align="center">
<asp:Label id="Lbl_info" runat="server" Width="218px"></asp:Label></P>
</form>
then use the web.config file to make validation and redirect work work using the following code
<authentication mode="Forms">
<forms name="Frm_login" loginUrl="admin.aspx"
protection="All" timeout="60" />
</authentication>
but it does not work can anyone see my error...
Thanks
I am trying to use the following code to make a form
<form name="Frm_login" method="post" runat="server">
<P align="center">Login Page</P>
<P align="center">
<TABLE id="Table1" cellSpacing="1" cols="2" cellPadding="1" width="300" align="center"
border="0">
<TR>
<TD>Username</TD>
<TD><asp:textbox id="Txt_userName" runat="server"></asp:textbox></TD>
</TR>
<TR>
<TD>Password
</TD>
<TD>
<asp:TextBox id="Txt_passWord" runat="server" TextMode="Password"></asp:TextBox></TD>
</TR>
</TABLE>
</P>
<P align="center"><asp:button id="Submit" runat="server" Text="Submit"></asp:button></P>
<P align="center"> </P>
<P align="center">
<asp:Label id="Lbl_info" runat="server" Width="218px"></asp:Label></P>
</form>
then use the web.config file to make validation and redirect work work using the following code
<authentication mode="Forms">
<forms name="Frm_login" loginUrl="admin.aspx"
protection="All" timeout="60" />
</authentication>
but it does not work can anyone see my error...
Thanks