读书人

sitemappath显示一片空白是什么有关

发布时间: 2012-02-20 21:18:23 作者: rapoo

sitemappath显示一片空白,是什么问题?
如题,asp.net 2.0 上的sitemappath 控件 我使用后是一片空白,但是我有web.sitmap 文件
内容如下:
<?xml version= "1.0 " encoding= "utf-8 " ?>
<siteMap xmlns= "http://schemas.microsoft.com/AspNet/SiteMap-File-1.0 " >
<siteMapNode url= "Default.aspx " title= "首页 " description= "itgao.com首页 ">
<siteMapNode url= "info.aspx " title= "网站制作 " description= "网站制作教程 ">
<siteMapNode url= "desk.aspx " title= "Dreamweaver " description= "Dreamweaver教程 " />
<siteMapNode url= "Default2.aspx " title= "flash " description= "flash教程 " />
<siteMapNode url= "Default3.aspx " title= "web标准 " description= "web标准 " />
</siteMapNode>
</siteMapNode>
</siteMap>

sitemappath 控件内容如下:

<asp:sitemappath id= "SiteMapPath1 " runat= "server " font-names= "Verdana " font-size= "0.8em "
pathseparator= " : ">
<PathSeparatorStyle ForeColor= "#507CD1 " Font-Bold= "True "> </PathSeparatorStyle>

<CurrentNodeStyle ForeColor= "#333333 "> </CurrentNodeStyle>

<NodeStyle ForeColor= "#284E98 " Font-Bold= "True "> </NodeStyle>

<RootNodeStyle ForeColor= "#507CD1 " Font-Bold= "True "> </RootNodeStyle>
</asp:sitemappath>


请指教

[解决办法]
没发现哪里问题, 要不你新建一个网站试试看.

读书人网 >asp.net

热点推荐