Ask a Question related to ASP.NET Security, Design and Development.
-
jason@cyberpine.com #1
passing user name info to protected page
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(txtUsern ame.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.
jason@cyberpine.com Guest
-
Getting Login-Protected Info With CFHTTP
I wrote a CF script about a year ago that logs onto an informational site at which I am member, retrieves some information from the site, and then... -
Passing URL info to pop-up window? ASP...
Hi, I'm working on an ecommerce site and want to add the ability for people to click the product image to see an enlarged pic in a pop-up window.... -
HELP! Passing from database to asp page allowing user input then passing to another database.
My big problem is I'm a newbie working with someone else's code.(See code below) What I want to do is for the records that have a purchase order... -
Passing database info to page allow user input then pass into another database
Hi I really am going crazy! I'm using VBScript, ASP, and SQL My page reminds me of a shopping cart but looking at shopping cart examples has not... -
passing variable info
This is similar to George Mizzel's problem, maybe? I am trying to pass some info from one page to another. The first page is a booking form, the...



Reply With Quote

