Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 6th, 2006, 05:08 PM
Registered User
 
Join Date: Aug 2006
Location: , , .
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

  #2 (permalink)  
Old August 7th, 2006, 10:41 AM
Registered User
 
Join Date: Aug 2006
Location: Seattle, WA, USA.
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
  #3 (permalink)  
Old August 7th, 2006, 01:26 PM
Authorized User
 
Join Date: May 2006
Location: , , .
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.

  #4 (permalink)  
Old August 7th, 2006, 01:46 PM
Registered User
 
Join Date: Aug 2006
Location: , , .
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!

  #5 (permalink)  
Old August 7th, 2006, 07:06 PM
Registered User
 
Join Date: Aug 2006
Location: Seattle, WA, USA.
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
  #6 (permalink)  
Old August 9th, 2006, 09:40 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Atlanta, Georgia, USA.
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.

 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 03:49 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.