Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4.5.1 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4.5.1: in C# and VB by Imar Spaanjaars; ISBN: 978-1-118-84677-3
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4.5.1 : in C# and VB 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 August 5th, 2015, 02:18 PM
Registered User
 
Join Date: Aug 2014
Posts: 3
Thanks: 2
Thanked 0 Times in 0 Posts
Default Directing user to another page then login.aspx

Hi,

if user does not have permission to access management section of the web, he is taken to login.aspx. How can i change this behaviour ? I have a login control in a master page so i would rather redirect him to a home page.

Thank you.
 
Old August 6th, 2015, 11:41 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 set the loginUrl attribute in web.config as mentioned in the book. More details here: https://msdn.microsoft.com/en-us/lib...v=vs.110).aspx

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!
The Following User Says Thank You to Imar For This Useful Post:
rikishiyayo (August 6th, 2015)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to assign current logged in USER name to the people picker control in ASPX page jagsusa ASP.NET 2.0 Professional 6 December 10th, 2009 12:50 PM
User name is blank in Login Page subhsam ASP.NET 1.0 and 1.1 Professional 0 March 14th, 2007 06:17 PM
Newbie Help. Login to unique login page per user Kainan Classic ASP Professional 10 May 3rd, 2005 07:47 AM
page directing sentme_mail HTML Code Clinic 7 November 22nd, 2004 03:21 PM
New.aspx works but login.aspx fails Validation nigelhamilton BOOK: ASP.NET Website Programming Problem-Design-Solution 8 September 13th, 2004 02:29 AM





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