J
jason
Hello.
Newbie question I'm sure.
I've got this page I am securing with a password using a simple
LOGIN.ASPX page:
<%@ Page Language="VB" %>
<script language="VB" runat="server">
Sub btnLogin_OnClick(Src As Object, E As EventArgs)
If txtUsername.Text = "passwordhere"
FormsAuthentication.RedirectFromLoginPage(txtUsername.Text, True)
Else
lblInvalid.Text = "Sorry... try again..."
End If
End Sub
</script>
.... more html here
and the WEB.CONFIG PAGE:
<configuration>
<system.web>
<customErrors mode="Off"/>
<authentication mode="Forms">
<forms name="FNAME" loginUrl="login.aspx" />
</authentication>
</system.web>
<location path="protectedpage.aspx">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
</configuration>
==
Nothing too fancy ... I'd like a few more users and then pass the
protected page a session variable (maybe) with the valid username.
How would/could I do this?
Many thanks for any info or help.
Newbie question I'm sure.
I've got this page I am securing with a password using a simple
LOGIN.ASPX page:
<%@ Page Language="VB" %>
<script language="VB" runat="server">
Sub btnLogin_OnClick(Src As Object, E As EventArgs)
If txtUsername.Text = "passwordhere"
FormsAuthentication.RedirectFromLoginPage(txtUsername.Text, True)
Else
lblInvalid.Text = "Sorry... try again..."
End If
End Sub
</script>
.... more html here
and the WEB.CONFIG PAGE:
<configuration>
<system.web>
<customErrors mode="Off"/>
<authentication mode="Forms">
<forms name="FNAME" loginUrl="login.aspx" />
</authentication>
</system.web>
<location path="protectedpage.aspx">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
</configuration>
==
Nothing too fancy ... I'd like a few more users and then pass the
protected page a session variable (maybe) with the valid username.
How would/could I do this?
Many thanks for any info or help.