I am not sure what this is "<OnMenuItemClick=window.status='custom text'>
that is not an HTML element, or javascript or anything, and that has nothing to do with VS 2005 or .NET 2.0 it has to do with HTML, Javascript.
I have not tried to implement exactlyu what you are trying to do, somthing more like onMouseOver="window.status='custom text!'; return true" or
onclick="window.status='custom text!'; return true"
but these are attributes for your link, not HTML elements. so in your
MenuItemDataBound(object sender, MenuEventArgs e)
you should have something allong the lines of finding the link
foreach(Control ctrl in e.Item.Controls)
{
if(e.Item.Controls[0].GetType().ToString() == "System.Web.UI.WebControls.HyperLink")
{
e.Item.Controls[0].Attributes.Add("onClick", "window.status='custom text!'; return true");
break;
}
}
You may have to play around and debug a bit, or move things around, there also might be a better way to do this, but more or less i think that is what you need to do.
Have a look at this blog post by dannychen about custom attributes in navigation contrls:
http://weblogs.asp.net/dannychen/archive/2005/03/28/396099.aspx
Jonathan Minond
http://www.Jonavi.com
http://www.jonavi.com/Default.aspx?pageID=21
http://RainbowBeta.com
http://community.rainbowportal.net/blogs/jonathans_rainbow_blog/default.aspx
http://dotnetslackers.com/community/blogs/jminond/default.aspx