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 February 5th, 2008, 04:59 PM
Registered User
 
Join Date: Feb 2008
Location: , , USA.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JoyVoltenburg
Default Problem with default.aspx after deploying to SQL05

I've deployed (successfully) to a server in our organization. My problem is that everything seems to work properly, except that the default.aspx page shows no content whatsoever in the middle column. It shows the polls in the left column, and the newsletter signup, etc in the right column. But the middle column is totally blank. I looked at the copy of that file I had downloaded into a separate directory, and it is identical to the one I have live. The page worked properly on my machine in VS2005 using localhost. Once it was deployed to a webserver, however, the default page won't show any data. Every other page will pull data and act like it's supposed to. What am I missing here?

The code for default.aspx is:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="MB.TheBeerHouse.UI._Default" Title="Team Hagerman" MasterPageFile="~/Template.master" %>
<%@ MasterType VirtualPath="~/Template.master" %>

The code for default.aspx.cs is:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace MB.TheBeerHouse.UI
{
   public partial class _Default : BasePage
   {
      protected void Page_Load(object sender, EventArgs e)
      {
         this.Master.EnablePersonalization = true;
      }
   }
}

My connection string is here:
      <remove name="LocalSqlServer"/>
      <add name="LocalSqlServer" connectionString="Data Source=localhost;Integrated Security=True;Initial Catalog=ASPNETDB;User ID=admin;Password=admin" providerName="System.Data.SqlClient"/>
  #2 (permalink)  
Old February 5th, 2008, 08:22 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Atlanta, Georgia, USA.
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This is a frequent question. You need to edit the shared view in web parts to select the content you want in the middle (normally the welcome box). This is not the same as it was on your development box because your folder name changed during deployment and your developer box web part configuration is tied to that other folder. The folder determines the application key for the aspnet tables.

Eric

  #3 (permalink)  
Old February 6th, 2008, 11:04 AM
Registered User
 
Join Date: Feb 2008
Location: , , USA.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JoyVoltenburg
Default

I'm not sure what you mean or what I need to edit specifically. I can add web parts on the live site, but no content will appear - just the header. This is not the case with any other page except the default.aspx page.

Here's the public url to our site to see what I mean: http://team.hagerman.com/

  #4 (permalink)  
Old February 6th, 2008, 01:45 PM
Friend of Wrox
 
Join Date: Mar 2007
Location: Creetown, UK
Posts: 488
Thanks: 2
Thanked 11 Times in 10 Posts
Default

joy,

login as admin and click on the 'Switch Scope' link, so that it reads: Switch Scope (current = Shared). then in catalog view, add the web-parts again. you'll need to ensure that the current=shared is always there as it seems to get reset after adding each new webpart.

jimi

http://www.originaltalent.com
  #5 (permalink)  
Old February 6th, 2008, 02:29 PM
Registered User
 
Join Date: Feb 2008
Location: , , USA.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JoyVoltenburg
Default

Thanks! That worked! I banged my head for a couple of days on this one. Should have asked sooner, I guess! You guys are very helpful.

 


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
Default.aspx?AspxAutoDetectCookieSupport=1 krainov BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 May 27th, 2008 03:30 AM
Where is the default.aspx in chapter 1? jkacher BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 1 February 29th, 2008 02:30 PM
Slow default.aspx after changes slas7713 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 8 September 21st, 2006 11:04 AM
default.aspx Louisa ASP.NET 1.0 and 1.1 Basics 4 October 14th, 2005 11:55 AM



All times are GMT -4. The time now is 01:29 AM.


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