Wrox Programmer Forums
|
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0
This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 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 11th, 2007, 10:04 AM
MM MM is offline
Registered User
 
Join Date: Nov 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default a really simple question about editProfile.aspx

it has on it UserProfile.ascx which has a UserName Property and I can see in manageUsers.aspx how this property is set using a querystring and that opens EditUser.aspx and fills it with the right stuff


but if you log in say as admin/admin and you go to EditProfile.aspx (by using the Edit Profile link in the master's login area, how does the EditProfile.aspx ever inform the UserProfile.ascx which profile to fill itself up with

maybe I'm being stupid, or I'm a bit crazy but right now I can see how the user control manages the locate the correct (i.e current profile)

or is this (in the page_load) of the user control


 // if the UserName property contains an emtpy string, retrieve the profile
            // for the current user, otherwise for the specified user
            ProfileCommon profile = this.Profile;
            if (this.UserName.Length > 0)
               profile = this.Profile.GetProfile(this.UserName);


is that code saying...load up this.Profile, i.e the current profile unless you are called from ManageUsers.aspx?

is that it, if so that is really ingenious

nices sites you guys have done btw based on TheBeerHouse, it's quite humbling


Regards and thx in advance
CharlesA






Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple question VBAprutser VB How-To 2 August 20th, 2007 06:00 AM
Very Simple Question YoungLuke C# 2 May 4th, 2007 02:23 AM
Simple Question ironchef Java GUI 0 September 14th, 2006 04:56 PM
Simple Question dpkbahuguna Java Basics 2 May 19th, 2006 12:05 AM
Simple question happyheart_man Pro VB.NET 2002/2003 0 January 14th, 2004 11:38 AM





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