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 August 6th, 2006, 05:08 PM
Registered User
 
Join Date: Aug 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Default Webpart Layout

please excuse this simple question, I know I am missing something really basic here...

I want to alter the default configuration/layout for all users of the webparts on the home page (article RssReader in CenterZoneBottom latest threads in CenterZoneLeft etc.), but for the life of me I cannot find where to do this.

Any pointers would be greatly appreciateds
Cheers
Simon

 
Old August 7th, 2006, 10:41 AM
Registered User
 
Join Date: Aug 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It's a great question; I've struggled with this too. I'm wondering also if there is an easy way to make the WelcomeBox text and images editable on the live site, similar to how articles are created and posted. I've done it via the user control, but this seems odd given the ease of creating articles.

Gary

Gary Darling
 
Old August 7th, 2006, 01:26 PM
Authorized User
 
Join Date: May 2006
Posts: 99
Thanks: 0
Thanked 1 Time in 1 Post
Default

The thing that you're missing is that web parts store their data in the database (or whatever provider you've specified in web.config). The tables aspnet_PersonalizationAllUsers and aspnet_PersonalizationPerUser are used for the data storage.

The web control PersonalizationManager provides everything you need to setup the default structure. Just log in with a user permission of editor or administrator and change the mode of the control to "all users".

I'm finding web parts to be a wonderful and fascinating addition to ASP.net.

 
Old August 7th, 2006, 01:46 PM
Registered User
 
Join Date: Aug 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

MythicalMe
Thanks!! So bloody simple when you know how :D

in the PersonalizationManager menu click Switch Scope until it displays "Shared", then set up your layout - jobsagoodun!

 
Old August 7th, 2006, 07:06 PM
Registered User
 
Join Date: Aug 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Glad I woke up today, that was simple! I've been using Firefox as my default browser; drag and drop of web parts does not work in that. I knew I read that in Marco's book somewhere, but it slipped my mind. This is a very intimidating project fo a newbie, lot's of hours banging my head against the wall.

Gary
 
Old August 9th, 2006, 09:40 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Here's some text that helps explain this:

You can add Web Parts directly to WebPartZone controls, so they are created by default in the shared view, without the need for an editor to put them in place at runtime.

Personalization is always at the page level, which means that even if you put all the Web Part Zones and the WebPartManager on a master page, different pages that use that same master page will have a different configuration, since the data is saved in different records according to the specific content page’s Url. Personalization for the shared views and for the per-user views are saved into two separate tables, but in both cases there’s a PageSettings image field which stores all the information in binary format.

If you sign in as admin you can change the context to edit the shared view. Otherwise you only see the "admin user" view by default.






Similar Threads
Thread Thread Starter Forum Replies Last Post
WebPart \ Default display problem rparchment BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 10 February 7th, 2007 12:47 AM
Problem with webPart rrsparihar ASP.NET 2.0 Basics 1 October 5th, 2006 07:21 AM
WebPart rrsparihar ASP.NET 2.0 Professional 0 October 4th, 2006 12:20 AM
Problem with WebPart rrsparihar Visual Studio 2005 0 October 3rd, 2006 09:41 AM
webpart sawjansee BOOK: Professional Web Parts and Custom Controls ASP.NET ISBN: 0-7645-7860-X 0 June 18th, 2006 12:12 AM





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