Hi Amanda,
You can the remove method of the treeview to remove the node that you donot want to display, adn the will not change the sitemap file.
Below is a sample:
protected void TreeView1_TreeNodeDataBound(object sender, TreeNodeEventArgs e)
{
System.Web.UI.WebControls.TreeView tree = (System.Web.UI.WebControls.TreeView)sender;
SiteMapNode mapNode = (SiteMapNode)e.Node.DataItem;
if (mapNode.Title == "Default2")
{
System.Web.UI.WebControls.TreeNode parent = e.Node.Parent;
if (parent != null)
{
parent.ChildNodes.Remove(e.Node);
}
}
}
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