|
|
 |
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 computer programmers 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 programmers’ questions, win occasional prizes given to our best members, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
|
 |
|
|
 |

February 5th, 2008, 03:59 PM
|
|
Registered User
|
|
Join Date: Feb 2008
Location: , , USA.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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"/>
|

February 5th, 2008, 07:22 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Location: Atlanta, Georgia, USA.
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

February 6th, 2008, 10:04 AM
|
|
Registered User
|
|
Join Date: Feb 2008
Location: , , USA.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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/
|

February 6th, 2008, 12:45 PM
|
|
Friend of Wrox
|
|
Join Date: Mar 2007
Location: Creetown, UK
Posts: 488
Thanks: 2
Thanked 10 Times in 9 Posts
|
|
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
|

February 6th, 2008, 01:29 PM
|
|
Registered User
|
|
Join Date: Feb 2008
Location: , , USA.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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 |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |