Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 12th, 2003, 11:08 PM
Authorized User
 
Join Date: Nov 2003
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default a question about authentication!

i try to use <authentication mode="Forms"> to authenticaton my users, i have put "Login.aspx" and "success.aspx" in the folder,and the default page of this folder is "success.aspx",it works very well.

but when i have also put a "register.aspx" in this folder so people could register them. unfortunate,the ones who want to register click the button of register in the "login.aspx", but they would be also redirect to "login.aspx",so they couldn't visit the page of "register.aspx".

how could i resolve it??


 
Old November 13th, 2003, 12:49 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

One thing you can do is to create a subdirectory in your web application for the register file, and any other files that you might want to be public for that matter.

In that sub directory, put all of your public pages. Also put a new web.config file that is blank. Include only these lines in it:

<configuration>
    <system.web>
        <authorization>
            <allow users="*" />
        </authorization>
    </system.web>
</configuration>

This allows all users to view files in this directory only. There is also supposedly a way to specify authorization in a one page. I did some research but I was not able to find the syntax for it. But I have used what I suggested above so I know at least that works. ;)

Peter
------------------------------------------------------
Work smarter, not harder.
 
Old November 14th, 2003, 02:13 AM
Authorized User
 
Join Date: Nov 2003
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thank you peter!
i would try it now






Similar Threads
Thread Thread Starter Forum Replies Last Post
Authentication r_ganesh76 ASP.NET 1.0 and 1.1 Professional 3 January 18th, 2008 11:34 AM
Question about authentication bdines General .NET 4 May 26th, 2005 08:29 PM
Authentication speedyH Beginning PHP 1 September 25th, 2004 11:34 AM
authentication question [email protected] BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 0 June 29th, 2004 02:00 PM
authentication question [email protected] SQL Server 2000 0 June 29th, 2004 01:57 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.