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 November 3rd, 2015, 04:24 PM
Authorized User
 
Join Date: Oct 2015
Posts: 58
Thanks: 3
Thanked 0 Times in 0 Posts
Default Ch 16, p597 - Login

Hi Imar,

In step 14, you say:
"You are taken to the Login page again where the LoginStatus
control below the Login control now indicates that you are logged
in..."

Following the TIO, my login.aspx shows the same login form, not the "logged in". Until...

I read your source code and the book. I couldn't see from step 1 in the TIO to add and <AnonymousTemplate> or
<LoggedInTemplate> which I copied to my login.aspx. Then, it work!

Greetings.

PS: In the step 2, I had troubles to Install-Package Microsoft.AspNet.Providers, but I solved installing it with VS2015, not VS2013 Update 4. Some people said was the Nuget Version.
 
Old November 3rd, 2015, 05:35 PM
Authorized User
 
Join Date: Oct 2015
Posts: 58
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Well, actually the steps for making this tags are in the next TIO's on p.602, 607.
I think for the step 14 on p597, I was logged "in memory".

Last edited by StvnSpnz; November 3rd, 2015 at 06:07 PM..
 
Old November 3rd, 2015, 06:39 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

I think you're mixing up controls. Step 14 talks about the LoginStatus control, not the LoginView.

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!
 
Old November 3rd, 2015, 07:11 PM
Authorized User
 
Join Date: Oct 2015
Posts: 58
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Well,

At the step 14 what I see is that I log in, it redirects to Default.aspx, but when I go back to the login page, the form is still there, not the "You are already logged in Logout"

What could it be?

Thanks.
 
Old November 3rd, 2015, 07:16 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

It won't say "You are already logged in Logout" as that's only added later. It should just say Login or Logout depending on your status (see Figure 16-6).

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!
 
Old November 3rd, 2015, 07:24 PM
Authorized User
 
Join Date: Oct 2015
Posts: 58
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Well, Now I see, but it really is small for seeing at first sight, maybe an arrow or circle for the next edition. My mistake, my sight!

Thanks.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Ch 16 Login Controls AlanWheeler BOOK: Beginning ASP.NET 4.5 : in C# and VB 3 February 24th, 2014 04:58 PM
Ch 16 Putting the cursor in the Login control AlanWheeler BOOK: Beginning ASP.NET 4.5 : in C# and VB 4 February 24th, 2014 04:46 PM
Ch 16: Login control not logging in jMarvin BOOK: Beginning ASP.NET 4 : in C# and VB 2 November 19th, 2011 02:00 PM
Search ch 13, ch 16 sporik BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143 0 October 27th, 2009 04:44 PM
Try it out:Ch 16 Dataset Example flhartley VB.NET 2002/2003 Basics 1 August 28th, 2009 07:00 AM





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