943,188 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Marked Solved
  • Views: 1573
  • ASP.NET RSS
Dec 5th, 2009
0

Hover Menu in asp.net

Expand Post »
Hello,
How to create hover menu. I want to create exactly as attached in the picture. When i mouse over the attendance, the menu should be displayed as such in the picture.
Anyone help in this?
Thankyou.
Click image for larger version

Name:	hover menu.JPG
Views:	352
Size:	11.2 KB
ID:	12847
Last edited by bharanidharanit; Dec 5th, 2009 at 4:14 pm.
Reputation Points: 8
Solved Threads: 3
Junior Poster
bharanidharanit is offline Offline
140 posts
since Nov 2008
Dec 6th, 2009
0
Re: Hover Menu in asp.net
Hi
It's as simple as that. take a look at the eg:
ASP.NET Syntax (Toggle Plain Text)
  1. <asp:Menu ID="Menu1" runat="server" BackColor="#E3EAEB" DynamicHorizontalOffset="2" Font-Names="Verdana" Font-Size="0.8em" ForeColor="#666666" StaticSubMenuIndent="10px">
  2. <StaticSelectedStyle BackColor="#1C5E55" />
  3. <StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
  4. <DynamicHoverStyle BackColor="#666666" ForeColor="White" />
  5. <DynamicMenuStyle BackColor="#E3EAEB" />
  6. <DynamicItemTemplate>
  7. <%# Eval("Text") %>
  8. </DynamicItemTemplate>
  9. <DynamicSelectedStyle BackColor="#1C5E55" />
  10. <DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
  11. <StaticHoverStyle BackColor="#666666" ForeColor="White" />
  12. <Items>
  13. <asp:MenuItem Selectable="False" Text="Select" Value="Select"></asp:MenuItem>
  14. <asp:MenuItem Text="Product" Value="Items">
  15. <asp:MenuItem NavigateUrl="~/Product/Product.aspx" Text="Item Card" Value="Item Card">
  16. </asp:MenuItem>
  17. <asp:MenuItem NavigateUrl="~/GridViewTest.aspx" Text="GridViewTest" Value="GridViewTest">
  18. </asp:MenuItem>
  19.  
  20. <asp:MenuItem NavigateUrl="~/Product/frmRptProduct.aspx" >
  21. </asp:MenuItem>
  22.  
  23. </asp:MenuItem>
  24. <asp:MenuItem Text="Sales" Value="Sales"></asp:MenuItem>
  25. <asp:MenuItem Text="Purchase" Value="Purchase"></asp:MenuItem>
  26. <asp:MenuItem Text="Test" Value="Purchase" NavigateUrl="~/ConfimButtonExtenderEg.aspx"></asp:MenuItem>
  27. <asp:MenuItem Text="Reports" Value="Reports" NavigateUrl="~/Product/frmRptContainer.aspx" ></asp:MenuItem>
  28. <asp:MenuItem Text="DAAB3.1Test" Value="DAAB3.1Test" NavigateUrl="~/Test_DAAB3.aspx" ></asp:MenuItem>
  29. <asp:MenuItem Text="Create User" Value="DAAB3.1Test" NavigateUrl="~/createUser.aspx" ></asp:MenuItem>
  30.  
  31. </Items>
  32. </asp:Menu>

Mark as solved if it helps you!!!
Last edited by reach_yousuf; Dec 6th, 2009 at 9:19 am.
Reputation Points: 12
Solved Threads: 38
Junior Poster
reach_yousuf is offline Offline
194 posts
since Sep 2007
Dec 13th, 2009
0
Re: Hover Menu in asp.net
Hi
It's as simple as that. take a look at the eg:
ASP.NET Syntax (Toggle Plain Text)
  1. <asp:Menu ID="Menu1" runat="server" BackColor="#E3EAEB" DynamicHorizontalOffset="2" Font-Names="Verdana" Font-Size="0.8em" ForeColor="#666666" StaticSubMenuIndent="10px">
  2. <StaticSelectedStyle BackColor="#1C5E55" />
  3. <StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
  4. <DynamicHoverStyle BackColor="#666666" ForeColor="White" />
  5. <DynamicMenuStyle BackColor="#E3EAEB" />
  6. <DynamicItemTemplate>
  7. <%# Eval("Text") %>
  8. </DynamicItemTemplate>
  9. <DynamicSelectedStyle BackColor="#1C5E55" />
  10. <DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
  11. <StaticHoverStyle BackColor="#666666" ForeColor="White" />
  12. <Items>
  13. <asp:MenuItem Selectable="False" Text="Select" Value="Select"></asp:MenuItem>
  14. <asp:MenuItem Text="Product" Value="Items">
  15. <asp:MenuItem NavigateUrl="~/Product/Product.aspx" Text="Item Card" Value="Item Card">
  16. </asp:MenuItem>
  17. <asp:MenuItem NavigateUrl="~/GridViewTest.aspx" Text="GridViewTest" Value="GridViewTest">
  18. </asp:MenuItem>
  19.  
  20. <asp:MenuItem NavigateUrl="~/Product/frmRptProduct.aspx" >
  21. </asp:MenuItem>
  22.  
  23. </asp:MenuItem>
  24. <asp:MenuItem Text="Sales" Value="Sales"></asp:MenuItem>
  25. <asp:MenuItem Text="Purchase" Value="Purchase"></asp:MenuItem>
  26. <asp:MenuItem Text="Test" Value="Purchase" NavigateUrl="~/ConfimButtonExtenderEg.aspx"></asp:MenuItem>
  27. <asp:MenuItem Text="Reports" Value="Reports" NavigateUrl="~/Product/frmRptContainer.aspx" ></asp:MenuItem>
  28. <asp:MenuItem Text="DAAB3.1Test" Value="DAAB3.1Test" NavigateUrl="~/Test_DAAB3.aspx" ></asp:MenuItem>
  29. <asp:MenuItem Text="Create User" Value="DAAB3.1Test" NavigateUrl="~/createUser.aspx" ></asp:MenuItem>
  30.  
  31. </Items>
  32. </asp:Menu>

Mark as solved if it helps you!!!
Thankyou, the code is working.
Reputation Points: 8
Solved Threads: 3
Junior Poster
bharanidharanit is offline Offline
140 posts
since Nov 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: Chaging c# to vb.net coding
Next Thread in ASP.NET Forum Timeline: Javascript value in vb.net code





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC