Seven price
asked on
sitemapnode
Can you add a onclick function in vb to a sitemapnode for each url
ASKER
I seen that but i need vb version? I will try to convert it again but did not work out correctly.
ASKER
protected void SiteMapPath1_ItemCreated(o bject sender, SiteMapNodeItemEventArgs e)
{
if ((this.MasterJS != string.Empty) && (e.Item.ItemType !=
SiteMapNodeItemType.PathSe parator) &&
(e.Item.ItemType != SiteMapNodeItemType.Curren t)
{
e.Item.Attributes.Add("onc lick", this.MasterJS);
}
else if (e.Item.ItemType == SiteMapNodeItemType.Curren t)
{
e.Item.Attributes.Add("onC lick", "JavaScript: return false;");
}
}
can you convert this to vb, i need a class definitions and I do not know it for the above code.
{
if ((this.MasterJS != string.Empty) && (e.Item.ItemType !=
SiteMapNodeItemType.PathSe
(e.Item.ItemType != SiteMapNodeItemType.Curren
{
e.Item.Attributes.Add("onc
}
else if (e.Item.ItemType == SiteMapNodeItemType.Curren
{
e.Item.Attributes.Add("onC
}
}
can you convert this to vb, i need a class definitions and I do not know it for the above code.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I know the tool did not work for me, kept getting errors usually . Thanks
ASKER
tks
Not sure if onclick function can be added to SiteMapNode....
But see if you can use SiteMapResolve event in code-behind for your requirement...