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 February 1st, 2006, 02:04 PM
Registered User
 
Join Date: Nov 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Adding Web Forms ASP.NET 2.0

Hi Guys, I've converted my project to ASP.NET 2.0. I've not really had any major problems. Now I'm adding new web forms, which support the new code behind model. When I add a new webform the Context.User is no longer recognised as a MyProjectPrincipal. Now I would normally solve this by swapping....

override protected void OnInit(EventArgs e)
{
     base.OnInit(e);
     InitializeComponent();
}

But this code now sits eleswhere. What are the options? Many thanks.
Rob

 
Old February 5th, 2006, 12:54 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

>But this code now sits eleswhere

huh? Where does it sit? Are you saying you aren't using the base class now?
 
Old February 13th, 2006, 12:35 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

It shouldn't be any different; how are you setting your custom principal object? You may want to consider using the membership and roles objects instead of custom authentication as a possibility.

Brian





Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP.net web forms and screen resolution kulkarnimonica ASP.NET 2.0 Professional 4 July 25th, 2007 09:22 PM
Professional ASP.NET Web Forms Techniques qiusuo808 All Other Wrox Books 1 August 28th, 2006 08:26 AM
Professional ASP.NET Web Forms Techniques qiusuo808 BOOK: Access 2003 VBA Programmer's Reference 0 August 26th, 2006 08:43 PM
use asp.net forms in web services. Abhinav_jain_mca .NET Web Services 1 August 12th, 2004 09:43 AM
Cannot find this book . ASP.NET Web Forms redcao All Other Wrox Books 1 October 14th, 2003 02:07 AM





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