<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Master Pages, Themes and Navigation Controls</title><link>http://forums.asp.net/139.aspx</link><description>Discussions of MasterPages, Themes, and other page-related features. &lt;A href="http://aspadvice.com/SignUp/list.aspx?l=164&amp;amp;c=30" target=_blank&gt;Email List&lt;/A&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Expanding MenuItem with OnMouseOver</title><link>http://forums.asp.net/thread/1288128.aspx</link><pubDate>Wed, 17 May 2006 09:51:54 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1288128</guid><dc:creator>MrEd</dc:creator><author>MrEd</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1288128.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=1288128</wfw:commentRss><description>&lt;p&gt;Ok,&lt;/p&gt;
&lt;p&gt;no i solved the problem with the use of a template definen in the aspx-page. At the event OnRowDataBound i check if the user is logged in. If not,&amp;nbsp; the Menu-Item is set to enabled = false.&lt;/p&gt;
&lt;p&gt;On the clientside i extended the onmouseover method and check if the event.srcItem is enabled or disabled. So i only display the info-div if the item is disabled.&lt;/p&gt;
&lt;p&gt;There might be better and cleaner ways to do this, but this one is ok for me.&lt;/p&gt;
&lt;p&gt;Thank You&lt;/p&gt;</description></item><item><title>Re: Expanding MenuItem with OnMouseOver</title><link>http://forums.asp.net/thread/1287079.aspx</link><pubDate>Tue, 16 May 2006 13:30:36 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1287079</guid><dc:creator>MrEd</dc:creator><author>MrEd</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1287079.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=1287079</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;i think this is the right way. But i am stuck again.&lt;/p&gt;
&lt;p&gt;what i want to do is the following:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;pre class=coloredcode&gt;&lt;span class=kwd&gt;if&lt;/span&gt;(user &lt;span class=kwd&gt;is&lt;/span&gt; logged &lt;span class=kwd&gt;in&lt;/span&gt;)
{
  staticItemTemplate myItemtemplate = &lt;span class=kwd&gt;new&lt;/span&gt; staticItemTemplate();
  &lt;span class=cmt&gt;// fill the Template with &amp;lt;a href... onmouseover=...&amp;gt;
  
  // bind the Template to the Menu&lt;/span&gt;
  myMenu.staticItemTemplate =  myItemTemplate;
}
&lt;span class=kwd&gt;else&lt;/span&gt;
{
  &lt;span class=cmt&gt;// use no special staticItemTemplate&lt;/span&gt;
}&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can anyone tell me how to create staticItemTemplates programatically?&lt;/p&gt;
&lt;p&gt;Thanx&lt;/p&gt;</description></item><item><title>Re: Expanding MenuItem with OnMouseOver</title><link>http://forums.asp.net/thread/1284026.aspx</link><pubDate>Fri, 12 May 2006 10:33:36 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1284026</guid><dc:creator>ReyN</dc:creator><author>ReyN</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1284026.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=1284026</wfw:commentRss><description>&lt;p&gt;&lt;font face=Verdana size=2&gt;not sure, cause I haven't tried, but maybe you can add Attributes to a menuitem, if you declare the menuitems either statically or dynamically, as long as you have a reference to the menuitem ID.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Expanding MenuItem with OnMouseOver</title><link>http://forums.asp.net/thread/1284021.aspx</link><pubDate>Fri, 12 May 2006 10:29:19 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1284021</guid><dc:creator>ReyN</dc:creator><author>ReyN</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1284021.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=1284021</wfw:commentRss><description>&lt;p&gt;&lt;font face=Verdana size=2&gt;you cannot add Attributes to a MenuItem class, but you can with the parent Menu Class.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=Verdana size=2&gt;you can try this out in your handler&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=Verdana size=2&gt;menuName.Attributes [ "onmouseover" ] = "javascript:alert('Hello World!')";&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=Verdana size=2&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Expanding MenuItem with OnMouseOver</title><link>http://forums.asp.net/thread/1283991.aspx</link><pubDate>Fri, 12 May 2006 09:35:47 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1283991</guid><dc:creator>MrEd</dc:creator><author>MrEd</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1283991.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=1283991</wfw:commentRss><description>Thank you for the quick reply,&lt;br /&gt;&lt;br /&gt;but i have to check if the user is logged in or not. And so i have to set the onmouseover and onmouseout from code-behind if the user is not logged in. If the user is logged in, i don't need the onmouseover...&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: Expanding MenuItem with OnMouseOver</title><link>http://forums.asp.net/thread/1283977.aspx</link><pubDate>Fri, 12 May 2006 09:17:54 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1283977</guid><dc:creator>ReyN</dc:creator><author>ReyN</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1283977.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=1283977</wfw:commentRss><description>&lt;p&gt;&lt;font face=Verdana size=2&gt;one way is to use templates&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=Verdana size=2&gt;an example for a &lt;strong&gt;&amp;lt;dynamicitemtemplate&amp;gt;&lt;/strong&gt; would be&amp;nbsp;something like&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=Verdana size=2&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp; &lt;/strong&gt;&lt;font color=#000080&gt;&amp;lt;asp:menu id="menu1" runat="server" datasourceid="siteMapDataSource1"&amp;gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;dynamicitemtemplate&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;img src="/aspxtreme/shared/wink.gif" &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; width="15" height="15" border="0" alt=""&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:label id="menuItemLabel" runat="server"&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; text='&amp;lt;%# eval( "Text" ) %&amp;gt;' &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;strong&gt;onmouseover&lt;/strong&gt;="whatever ( )" &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;strong&gt;onmouseout&lt;/strong&gt;="whichever ( )" /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/dynamicitemtemplate&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/asp:menu&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=Verdana color=#000080 size=2&gt;&amp;nbsp;&amp;nbsp; &amp;lt;asp:sitemapdatasource id="siteMapDataSource1" runat="server" /&amp;gt;&lt;br /&gt;&lt;/font&gt;&lt;font face=Verdana color=#000080 size=2&gt;&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Expanding MenuItem with OnMouseOver</title><link>http://forums.asp.net/thread/1283910.aspx</link><pubDate>Fri, 12 May 2006 07:31:55 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1283910</guid><dc:creator>MrEd</dc:creator><author>MrEd</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1283910.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=1283910</wfw:commentRss><description>Hi,&lt;br /&gt;i have the following problem:&lt;br /&gt;&lt;br /&gt;I am using a asp:menu Control for Navigation. At the MenuItemDataBound-Event I check if the user is logged in. If the user is logged in, i do nothing (menu-item is enabled and contains a selectable submenu). If the user is not logged in I disable the menu-item and would like to add a clientside onmouseover and onmouseout to show a div containing explanation-text.&lt;br /&gt;But i don't know how to add these clientside event-handlers to the menu-item. I tried to cast the e.Item to an htmlAnchor, doesn't work. Someting like this:&lt;br /&gt;&amp;nbsp;&lt;pre class="coloredcode"&gt;( (HtmlAnchor)e.Item ).Attributes.Add( &lt;span class="st"&gt;"onMouseOver"&lt;/span&gt;, &lt;span class="st"&gt;"showHint();"&lt;/span&gt; );
( (HtmlAnchor)e.Item ).Attributes.Add( &lt;span class="st"&gt;"onMouseOut"&lt;/span&gt;,  &lt;span class="st"&gt;"hideHint();"&lt;/span&gt; );&lt;/pre&gt;&amp;nbsp;&lt;br /&gt;Anybody any Idea?&lt;br /&gt;</description></item></channel></rss>