Wrox Programmer Forums
|
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution 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 April 29th, 2005, 09:40 AM
Authorized User
 
Join Date: Oct 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default the err of SignOut

I have rebuilded the project by own

it has successully when i register a new member or with a member login,.

we can view the account at the header.ascx

but i can't signout because it has no id at the header.ascx


if (Context.User.Identity.IsAuthenticated)---------the err line
{
   Greeting.Text += "<b>" + Context.User.Identity.Name + "</b>";
   UserLink.Text = "My Account";
   UserLink.NavigateUrl = "../webpages/Users/MyAccount.aspx";
   SignOut.Visible = true;
}
------------------------------------------------------------------

the IsAuthenticationed is true when i debug the project

at the myaccount.cs
currentUser = new User((PhilePrincipal)Context.User);------can't be transformed

I had got the cookie, why i can't signout?
somebody help me!

 
Old April 29th, 2005, 03:14 PM
Registered User
 
Join Date: Apr 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Does your OnInit function for the siteheader page have

base.OnInit(e);

before

InitializeComponent();

?

 
Old April 29th, 2005, 08:36 PM
Authorized User
 
Join Date: Oct 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thank you!

I don't see the function beacuse it hide in the region.

but i can't catch the idea about the function

somebody would explain to me, thanks!!

 
Old May 3rd, 2005, 09:13 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You need to call the OnInit function in your base page so it can create the security context. Please read about this in the book.

Eric





Similar Threads
Thread Thread Starter Forum Replies Last Post
Fail to signout completely SpringSummer ASP.NET 1.0 and 1.1 Basics 2 April 11th, 2007 11:01 AM
Signout Not Working ~Bean~ ASP.NET 1.0 and 1.1 Basics 5 July 12th, 2006 08:35 AM
Signout Prolem hunzian78@yahoo.com ASP.NET 1.0 and 1.1 Basics 4 April 5th, 2006 01:59 AM
Problem with ASP.NET "signout" sharj ASP.NET 1.0 and 1.1 Professional 3 January 23rd, 2006 03:10 AM
SignOut is broken? cohansh1 BOOK: ASP.NET Website Programming Problem-Design-Solution 1 June 21st, 2005 01:09 AM





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