CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 2/9/2008 12:49:39 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 29 Favorited: 0 Favorite
2 Items, 1 Pages 1 |< << Go >> >|
afrika
Asp.Net User
sitemap path does not work2/9/2008 12:49:39 AM

0/0

Hello,

I created a sitemap which i inserted into my aspx page.

 however, i added below the page a sitemap path. but at runtime nothing shows up

What is wrong here

thanks

 

here is my code

 

 

<%@ Page Language="C#" MasterPageFile="~/User_Login.master" AutoEventWireup="true" CodeFile="delete.aspx.cs" Inherits="delete" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    <p>
        tesing</p>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
</asp:Content>

 

 

and master page

 

 

<%@ Master Language="C#" AutoEventWireup="true" CodeFile="User_Login.master.cs" Inherits="User_Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
    <asp:ContentPlaceHolder id="head" runat="server">
    </asp:ContentPlaceHolder>
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
            width: 214px;
        }
        .style6
        {
            font-family: Verdana;
            font-size: small;
        }
        a:link {
	color: #3366CC;
	text-decoration: none;
}
        .style4
        {
            width: 263px;
            height: 100px;
        }
        .style3
        {
            width: 753px;
            text-align: center;
            height: 100px;
        }
        .style21
        {
            font-family: Verdana;
        }
        .style5
        {
            height: 100px;
        }
        .style7
        {
            width: 753px;
            text-align: center;
            height: 13px;
            font-family: Verdana;
            font-size: small;
        }
        .style22
        {
        }
        .style23
        {
            width: 275px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div style="text-align: center">
        <table cellpadding="2" class="style1">
            <tr>
                <td>
    
        <table class="style1" bgcolor="#FF6600">
            <tr>
                <td style="text-align: center; background-image: url('images/content_r2_c8.jpg');">
                    <table class="style1" border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td class="style2" 
                                style="background-image: url('images/content_r1_c4.jpg'); text-align: left;">
                                <asp:Image ID="Image2" runat="server" ImageUrl="~/images/content_r1_c1.jpg" />
                            </td>
                            <td style="background-image: url('images/content_r1_c4.jpg')" colspan="2">
                                <div align="right" class="style6" style="COLOR: #999999">
                                    <asp:HyperLink ID="Home" runat="server" NavigateUrl="/">Home</asp:HyperLink>
                                     |
                                    <asp:HyperLink ID="PrivacyPolicy" runat="server" NavigateUrl="/?id=2">Privacy 
                                    Policy</asp:HyperLink>
                                    |
                                    <asp:HyperLink ID="TOS" runat="server" NavigateUrl="/?id=3">Terms & Conditions</asp:HyperLink>
                                     |
                                    <asp:HyperLink ID="Contact" runat="server" NavigateUrl="/?id=4">Contact 
                                    trial Bulk SMS Manager</asp:HyperLink>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="style4" 
                                style="text-align: left; background-image: url('images/content_r2_c8.jpg');" 
                                valign="top" rowspan="2">
                                <asp:Image ID="logo" runat="server" ImageUrl="~/images/banner-tl.jpg" />
                            </td>
                            <td align="left" class="style3" 
                                
                                
                                style="background-image: url('images/content_r2_c8.jpg'); text-align: right; font-size: small;">
                                <span class="style21">trial </span><br class="style21" />
                                <span class="style21">
                                <%#DateTime.Now.ToString() %></span></td>
                            <td class="style5" 
                                style="text-align: right; background-image: url('images/content_r2_c8.jpg');" 
                                valign="top" rowspan="2">
                                <asp:Image ID="Image1" runat="server" ImageUrl="~/images/banner-tr.jpg" />
                            </td>
                        </tr>
                        <tr>
                            <td align="left" class="style7" 
                                
                                style="background-image: url('images/content_r22_c8.jpg'); text-align: left;">
                                 </td>
                        </tr>
                        <tr>
                            <td class="style6" colspan="3">
    <asp:Menu ID="Menu1" runat="server" DataSourceID="SiteMapDataSource1" 
        Orientation="Horizontal" StaticDisplayLevels="2" PathSeparator="|" 
                                    ScrollDownImageUrl="~/images/folder.gif" 
                                    
                                    style="font-size: small; font-weight: 700; color: #FFFFFF; background-color: #FFFFFF" 
                                    BorderColor="#FFFF99" BorderStyle="Solid" BorderWidth="1px" 
                                    DynamicHorizontalOffset="5" DynamicVerticalOffset="5" Height="5px">
    </asp:Menu>
    <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    
                </td>
            </tr>
            <tr>
                <td class="style22">
                    <asp:ContentPlaceHolder ID="ContentPlaceHolder2" runat="server">
                        <table cellpadding="2" class="style1">
                            <tr>
                                <td class="style23">
                                    <a href="login.aspx">login.aspx</a></td>
                                <td>
                                     </td>
                            </tr>
                            <tr>
                                <td class="style23">
                                    <asp:ContentPlaceHolder ID="ContentPlaceHolder3" runat="server">
                                    </asp:ContentPlaceHolder>
                                </td>
                                <td>
                                     </td>
                            </tr>
                            <tr>
                                <td class="style23">
                                     </td>
                                <td>
                                     </td>
                            </tr>
                        </table>
                    </asp:ContentPlaceHolder>
                    <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
                    </asp:ContentPlaceHolder>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:SiteMapPath ID="SiteMapPath1" runat="server" 
                        style="font-family: Verdana; font-size: small">
                    </asp:SiteMapPath>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
 
Amanda Wang - M
Asp.Net User
Re: sitemap path does not work2/11/2008 8:43:33 AM

0/0

Hi,

The SiteMapPath control obtains navigation data from a site map. But only pages that are listed in the site map can display navigation data in the SiteMapPath control. If you place a SiteMapPath control on a page that is not listed in the site map, the control will display nothing to the client.

The more you can refer this msdn article: http://msdn2.microsoft.com/en-us/library/x20z8c51.aspx

 

Hope it helps.


Please remember to mark the replies as answers if they help and unmark them if they provide no help.


Yours sincerely,
Amanda Wang
Microsoft Online Community Support
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Beginning ASP.NET 3.5 in VB 9.0: From Novice to Professional Authors: Matthew MacDonald, Pages: 1149, Published: 2007
Beginning ASP.NET 3.5 in C# 2008: From Novice to Professional Authors: Matthew MacDonald, Pages: 954, Published: 2007
ASP.NET 2.0 Black Book: black book Authors: Dreamtech Software, Dreamtech Software, Charul Shukla, Anil Kumar Barnwal, Dreamtech Software India, Pages: 1167, Published: 2006
Mastering Web Development with Microsoft Visual Studio 2005 Authors: John Paul Mueller, Pages: 822, Published: 2005
Build Your Own ASP.NET 2.0 Web Site Using C# & VB: The Ultimate ASP.NET Begginner's Guide Authors: Cristian Darie, Zak Ruvalcaba, Pages: 689, Published: 2006
ASP.NET 2.0 Website Programming: Problem-design-solution Authors: Marco Bellinaso, Pages: 576, Published: 2006
ASP.NET 2.0 Cookbook Authors: Michael A. Kittel, Geoffrey T. Leblond, Pages: 989, Published: 2005
Professional ASP.NET 2.0 Databases Authors: Thiru Thangarathinam, Pages: 504, Published: 2007
ASP.NET 2.0: A Developer's Notebook Authors: Wei Meng Lee, Pages: 326, Published: 2005
Programming ASP.NET: Building Web Applications and Services with ASP.NET 2.0 Authors: Jesse Liberty, Dan Hurwitz, Pages: 930, Published: 2006

Web:
sitemap path does not work - ASP.NET Forums sitemap path does not work. Last post 02-11-2008 3:43 AM by Amanda Wang - MSFT. 1 replies. Sort Posts:. Oldest to newest, Newest to oldest ...
SiteMapPath Class (System.Web.UI.WebControls) The SiteMapPath control works directly with your Web site's site map data. ..... OnItemCreated(eventArgs) ' The pathSeparator does not bind to any ...
SiteMapPath,4 - ng.asp-net-forum ... When i use that code, its not work? <. asp:SiteMapPath ... Unmark as Answer? if a marked post does not actually answer your question. ...
SiteMapPath Unlike the Menu or Treeview control the SiteMapPath control does NOT use a SiteMapDataSource control and can not be bound to other hierarchal datasource ...
SiteMapPath Class (System.Web.UI.WebControls) public ref class SiteMapPath : public CompositeControl ..... OnItemCreated( eventArgs) ' The pathSeparator does not bind to any SiteMapNode, so ' do not call ...
Ease Web site navigation by implementing ASP.NET's SiteMapPath ... It is designed to work with ASP.NET 2.0's Menu, SiteMapPath, and TreeView ... An interesting aspect of the SiteMapPath control is that it does not use the ...
Sitemappath with Sql provider not work - ASP.NET Forums but the sitemappath control does not work as it should be or it just disapears. Here is the sitemappath code: ...
Customise the SiteMapPath Control or use wild card URLs with a ... At this point the SiteMapPath control does not display anything. .... ViewState properties and mapped properties don't work well togethe ...
Set a separator image for a SiteMapPath (skin) - .NET ASP This results in not showing the arrow image at all. ... None of them seem to work. Does somebody has a solution to this ...
Tomblog » SiteMapPath Oct 25, 2007 ... NET is called a SiteMapPath. This is a control which uses an XML ... Unfortunately, the WSS SiteMapProvider does not know pages and the MOSS ...




Search This Site:










problem with stylesheet in theme folder

<center> and style position absolute - changing window sizes??

problem with vertical filler

trouble with getting a themeless page

how can i use a link with the master page....

how to enable menu item using javascript

trying to style a treeview

design problems-master pages,css

trying to convert a basepage class from 1.1 to asp.net 2.0 and master pages -- please help

skin for custom web control

how retrieve the textbox id in master pages using javascript

menu control error caused by parent panel resize

easiest/recommended navigation menu control/solution that works with safari

cant apply style to page

master page reuse

treeview in frame won't expand

alternative to frameset

masterpage conflicts problem!

how to activate my javascript in a content page

menu horizantal

how to save data that checked checkbox into database

apprelativevirtualpath = "~/default.aspx" not recognised

skins for gridview control

treeview and javascript

themes and stylesheets and overriding thereof

treeview?

problems with updating a treeview.

problem with pages associated to a masterpage

pass in value to master pages from aspx pages?

defaultbutton with masterpages

  Privacy | Contact Us
All Times Are GMT