Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.1
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 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 October 12th, 2004, 12:27 AM
Registered User
 
Join Date: Sep 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to use forms authentication in different pages

hi friends,

    Can you please help me about form login, I created a form authentication login page.(login.aspx).It works well. how can put login form in diffenertn pages. so user can use form to entry ID & password to login into password pretect pages. pls help me and give me some ideas how to do that.

 
Old October 12th, 2004, 01:07 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hey,

Create a custom control that contains the login control, which can be replicated easily. Or use Server.Execute to load the login page in the other pages.

Brian
 
Old October 16th, 2004, 03:40 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

A problem you might encounter is that when you are using forms authentication, ASP.NET will redirect you back to the login page when you hit a page when you are not logged in. If you want to use forms authentication you won't benefit from a login control that would be reused on multiple pages because you'll never see those pages until you are logged in.
 
Old October 17th, 2004, 10:39 PM
Registered User
 
Join Date: Sep 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Planoie & Bmains,
thanks.






Similar Threads
Thread Thread Starter Forum Replies Last Post
forms authentication with two login pages janetb ASP.NET 2.0 Basics 2 March 25th, 2008 08:09 AM
Forms Authentication thetway Classic ASP Basics 1 August 18th, 2005 05:55 PM
How windows NET authentication done in ASP pages lakshmy_raj Classic ASP Basics 1 October 20th, 2004 02:28 AM





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