Wrox Programmer Forums
|
ASP.NET 3.5 Basics If you are new to ASP or ASP.NET programming with version 3.5, this is the forum to begin asking 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 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 June 14th, 2009, 02:43 PM
Authorized User
 
Join Date: Mar 2009
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
Default Redirect from login

Hello,
I'm using a login control with the DestinationPageUrl set as follows:

<asp:Login ID="Login1" runat="server" DisplayRememberMe="False" TitleText="" DestinationPageUrl="UserDetails.aspx"></asp:Login>

But it always redirects whatever page I was on before the login page. I've tried all sorts of relative and absolute path names to no avail.

Where am I going wrong?

Thanks,

David.
 
Old June 14th, 2009, 02:59 PM
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,

Take a look at the User Contribution section of the documentation of the Login control and its DestinationPageUrl property:

http://msdn.microsoft.com/en-us/libr...onpageurl.aspx

Cheers,

Imar
---------------------------------------------------------------------------------------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.

Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
While typing this post, I was listening to: For What It's Worth by Placebo (From the album: Battle for the Sun) What's This?
 
Old June 15th, 2009, 02:19 PM
Authorized User
 
Join Date: Mar 2009
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Thanks Imar. Thats just what I need.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot implicitly convert type 'Login' to 'System.Web.UI.WebControls.Login' fh84 BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 1 January 23rd, 2009 11:17 AM
How to redirect an non-registered admin to login nrlahoti ASP.NET 2.0 Professional 4 November 26th, 2007 08:47 AM
Help login redirect and file viewing danjapro Classic ASP Components 0 December 6th, 2004 06:33 PM
login failed for user nt authority\anonymous login rj1406 Classic ASP Databases 1 October 24th, 2004 09:15 AM





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