Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 1 of 1

Thread: .SiteMap1 does not contain a def for .LoadXml?...

  1. #1
    bdamore is offline Member
    Join Date
    Jun 2011
    Posts
    52

    Question .SiteMap1 does not contain a def for .LoadXml?...

    All of a sudden, this error started happening... I'm on a team of 'developers' (really designers) and I'm the only programmer. I leave things running fine and return to messes like this.
    Anyone know offhand where,what,how,who,when to look to fix this problem? references apper to be ok. Here's the whole page
    (sitemap2.aspx.cs)
    Code:
    // ------------------------------------------------------------------------------------------
    // Copyright AspDotNetStorefront.com, 1995-2011.  All Rights Reserved.
    // http://www.aspdotnetstorefront.com
    // For details on this license please visit  the product homepage at the URL above.
    // THE ABOVE NOTICE MUST REMAIN INTACT. 
    // ------------------------------------------------------------------------------------------
    using System;
    using AspDotNetStorefrontCore;
    using ComponentArt.Web.UI;
    using System.Xml;
    
    namespace AspDotNetStorefront
    {
    	/// <summary>
    	/// Summary description for sitemap2.
    	/// </summary>
    	public partial class sitemap2 : SkinBase
    	{
    
    		protected void Page_Load(object sender, System.EventArgs e)
    		{
    			if(AppLogic.AppConfigBool("GoNonSecureAgain"))
    			{
    				SkinBase.GoNonSecureAgain();
    			}
    			SectionTitle = AppLogic.GetString("sitemap.aspx.1",SkinID,ThisCustomer.LocaleSetting);
    			SiteMap1.LoadXml(new SiteMapComponentArt(base.EntityHelpers,SkinID,ThisCustomer).Contents);
    		}
    	}
    }

    Code:
    <%@ Page Language="c#" Inherits="AspDotNetStorefront.sitemap2" CodeFile="sitemap2.aspx.cs" %>
    <%@ Register TagPrefix="ComponentArt" Namespace="ComponentArt.Web.UI" Assembly="ComponentArt.Web.UI" %>
    <html>
    <head>
    </head>
    <body>
        <form id="Form1" method="post" runat="server">
            <ComponentArt:SiteMap ID="SiteMap1" runat="server" LeafNodeCssClass="SiteMapLeafNode"
                ParentNodeCssClass="SiteMapParentNode" RootNodeCssClass="SiteMapRootNode" CssClass="SiteMap"
                TreeLineImageHeight="20" TreeLineImageWidth="19" TreeLineImagesFolderUrl="images/lines2"
                TreeShowLines="true" SiteMapLayout="Tree" Width="100%">
                <Table>
                    <ComponentArt:SiteMapTableRow>
                        <ComponentArt:SiteMapTableCell RootNodes="1" valign="top" Width="25%"></ComponentArt:SiteMapTableCell>
                        <ComponentArt:SiteMapTableCell RootNodes="1" valign="top" Width="25%"></ComponentArt:SiteMapTableCell>
                        <ComponentArt:SiteMapTableCell RootNodes="1" valign="top" Width="25%"></ComponentArt:SiteMapTableCell>
                        <ComponentArt:SiteMapTableCell valign="top" Width="25%"></ComponentArt:SiteMapTableCell>
                    </ComponentArt:SiteMapTableRow>
                </Table>
            </ComponentArt:SiteMap>
        </form>
    </body>
    </html>
    Thanks
    Last edited by bdamore; 10-20-2011 at 08:04 AM. Reason: forgot text