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 December 29th, 2006, 01:44 PM
Authorized User
 
Join Date: Oct 2006
Location: , Georgia, USA.
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default WebPart \ Default display problem

I have everything working except 1 MAJOR thing. When I got to Chapter 10, I removed the sample info from Default.aspx to match TheBeerHouse's Default.aspx page. When I do this, the page is CenterCol content is blank. I've copied & pasted the template.master, default.aspx, themes, web.config, configSection.cs, BasePage.cs and BaseWebPart.cs BUT still no display....

Please give me your thoughts and let me know what I may be missing. This seems to be my last hurdle and is frustrating. I wanna drink for New Years and this is a downer...

  #2 (permalink)  
Old December 30th, 2006, 12:24 PM
Authorized User
 
Join Date: Oct 2006
Location: , Georgia, USA.
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

No one else having or had this problem? No ideas on what it could be?

  #3 (permalink)  
Old January 22nd, 2007, 06:40 PM
plb plb is offline
Authorized User
 
Join Date: Jan 2007
Location: Oakland, CA, USA.
Posts: 94
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have exactly this problem. I think.

I have made a new opera community website based on The Beer House Starter Kit. I installed the Beer House in my Visual Studio 2005 Websites folder as directed using the ASPNETDB.MDF. It works fine - no problems at all. Next I made a number of simplifications and added a bunch of new features to my opera site and it too works fine.

I created a SQLServer 2005 database attached to my opera site and that too works fine. However when I transferred it to my local IIS I got a blank center zone instead of the welcome box. Everything else seems to work fine except the blank center section on the default page. I next transferred the unmodified Beer House site to my Inetpub/webroot/ directory and registered it with IIS. It also worked perfectly except for the black default page center section.

This is odd.
  #4 (permalink)  
Old January 23rd, 2007, 11:59 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Atlanta, Georgia, USA.
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It's either an issue with template.master, or else your web parts configuration. You probably aren't paying attention to copying the aspnet tables, which hold web parts config. Log in as admin and try to edit your web parts to put the Welcome box back.

You should also test your news and forums. If you don't copy the tables right you can lose all that stuff.

  #5 (permalink)  
Old January 24th, 2007, 02:03 PM
plb plb is offline
Authorized User
 
Join Date: Jan 2007
Location: Oakland, CA, USA.
Posts: 94
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have solved my problem, thanks.

  #6 (permalink)  
Old January 26th, 2007, 01:21 AM
Authorized User
 
Join Date: Sep 2006
Location: , , .
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This is what gets me mad. How do we fix this issue? I double checked and compared the download code and have same problem with blank center container too.

Then some other poster says it fix his issue but won't share with us what was his issue that he fixed.

  #7 (permalink)  
Old January 26th, 2007, 11:57 AM
Authorized User
 
Join Date: May 2006
Location: , , .
Posts: 99
Thanks: 0
Thanked 1 Time in 1 Post
Default

If you check some of the older postings you'd already have your answer. When you deploy your website the very first thing you must do is to log in as an admin and set up the web-parts. This is because deployment doesn't copy the system data of which web-parts is a member.

I monitor this forum and from time to time answer, but my time (and I imagine Eric's) is limited so I now post answers when they haven't been previously answered. So, if you have a question, by all means ask it but you might get a quicker answer if you check some of the older threads.

  #8 (permalink)  
Old January 26th, 2007, 05:24 PM
Authorized User
 
Join Date: Sep 2006
Location: , , .
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I know you can get the webparts to show when logged in as the ADMIN. My issue is when you first access the site, you are not logged in so the damn default.aspx page has nothing on the content section of the page.



  #9 (permalink)  
Old January 26th, 2007, 08:07 PM
plb plb is offline
Authorized User
 
Join Date: Jan 2007
Location: Oakland, CA, USA.
Posts: 94
Thanks: 0
Thanked 0 Times in 0 Posts
Default

 
Quote:
quote:Then some other poster says it fix his issue but won't share with us what was his issue that he fixed.


It occured to be that my answer might seem a bit impolite but I solved the display problem in a way that is a little embaressing.

From the previous posts it seemed clear that it was a Web Parts personalization issue. I have a vanilla Beer House project that works as advertised in the VS 2005 folder but exhibited the blank default page when it was migrated to IIS. As per another posting I used the Web Parts Catalog menu that appears when you logon to add the Welcome box. It then worked fine. However my real project which had the same problem exhibited a bunch of other difficulties that made this solution fail.

So I simply removed all the Web Parts code.

I decided I didn't want personalization of the overall site. I want personalization only in a sub-site area where members will have a lot of choices for layout, themes, features etc... However I want the main areas to look the same for everyone.

I also pulled all the newsletter code out because I can't support a newsletter at this time. At such time as I get a volunteer newsletter author and editor, I will put that code back.

There, now I've shared.



  #10 (permalink)  
Old January 26th, 2007, 11:13 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Atlanta, Georgia, USA.
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Users who aren't logged-in will see the shared view of the web parts. If you sign in as admin you can change the context to edit the shared view. Then you can select which parts anonymous users will see.
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
Problem with webPart rrsparihar ASP.NET 2.0 Basics 1 October 5th, 2006 07:21 AM
Problem with WebPart rrsparihar Visual Studio 2005 0 October 3rd, 2006 09:41 AM
Default Webpart Layout sowen69 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 5 August 9th, 2006 09:40 PM
WebPart Permission Problem Basti BOOK: Professional C#, 2nd and 3rd Editions 0 November 25th, 2005 10:53 AM
How to display description of default values Braja Nayak VS.NET 2002/2003 0 September 8th, 2003 04:43 AM



All times are GMT -4. The time now is 08:41 PM.


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