Wrox Programmer Forums
|
ASP.NET 3.5 Professionals If you are an experienced ASP.NET programmer, this is the forum for your 3.5 questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Professionals 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 July 8th, 2010, 06:12 AM
Authorized User
 
Join Date: Jul 2008
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to saurabh
Red face Form authentication

i hv 2 folder in my root folder
1st is user
2nd is admin

in there are some files, so in want to use form authentication to acces this file, if user login than tht time redirect to user
when admin loging that time redirect to admin folder so how it do.
but i want to use only one login contorn on home page,
so can any one know how can do this.
so plz help me.
 
Old July 8th, 2010, 06:25 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

You can handle the LoggedIn event of the Login control, look at the user (or roles the user is assigned to) and then redirect to the target page using Response.Redirect.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Form Based Authentication instead of Windows authentication ocn BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio 8 January 8th, 2010 07:28 PM
Form Authentication aadz5 J2EE 1 November 24th, 2006 08:09 AM
Form Authentication petrons BOOK: Professional Apache Tomcat 1 October 31st, 2006 06:41 AM





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