.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Post New Web Links

a:hover, a:visited

Posted By:      Posted Date: September 11, 2010    Points: 0   Category :ASP.Net
For some reason, I cant get a:hover or a:visited to show up, (apply) in VS2010.  I get the other ones to apply, is there something I'm missing? Thanks!#MainBodyUL ul li.Contribute a{       color : blue;    text-decoration: underline;    }#MainBodyUL ul li.Contribute a:link{}#MainBodyUL ul li.Contribute A:Hover{}#MainBodyUL ul li.Contribute a:visited{}

View Complete Post

More Related Resource Links

How to keep the hover for Parent menu and set the selected menu item css for child menu item?



I'm using cssfriendly control adapter for menu. My asp.net menu control's datasource is a sitemap file I'm using which contains all the urls.

I have the following questions:

  1. Is there a way to keep the parent menu item hovered while hovering over the respective child menu items?
  2. Is there a way to keep the child menu item selected? I am able to set the css for the parent menu, however I was wondering if the same is possible with the child items.

Please help! Smile


Moneka Smile

Highlight gridview row on mouse hover in asp.net

The article Highlight gridview row on mouse hover in asp.net was added by uniquesaiful on Sunday, June 06, 2010.

Gridview control is a customizable and flexible control used to display data in tabular format. It has some nice features. But lacks of some client side features that makes web users happy. We can easily add these features with few lines of code. For

how can I know how many users visited the portal?


hi there,

is there any application like webTrend or some other log analysis to report how many users visited the SharePoint portal and what sites are mostly visited? Thanks in advance.



How to disable the Drop down that comes during the mouse hover over to the folder/report in SSRS 200

Hi All, Is there a way to disable the Drop down that comes (with options to Manage/Delete/Move etc.) during the mouse hover over to the folder/report in SSRS R2? Our users are getting confused and some of the smart users have tried to take certain actions that are offered in the drop down. Thanks.GBM

asp:Menu submenu hover/expansion + HTTPS = Security Information Popup

Hello,I have a an asp:Menu with a datasource and the page is being accessed by https. If I hover over one of the menu items that has a subitem I get this popup.Here is my code,//asp <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Test.aspx.cs" Inherits="UI_Common_Test" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <div> <asp:Menu ID="Menu1" runat="server" DataSourceID="dsSiteMap" Orientation="Vertical" StaticDisplayLevels="2"> <DataBindings> <asp:MenuItemBinding DataMember="SiteMapNode" TextField="Title" /> </DataBindings> </asp:Menu> <asp:SiteMapDataSource ID="dsSiteMap" runat="server" SiteMapProvider="Public" /> </div> </form> </body> </html> //cs using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI;

Want a menu with two levels, but I don't want the dropdowns that appear on hover

I am using the CSSFriendly adapters with the menu.  I have a menu control in my master page, and a site map that includes all the pages in the web site.  For the second level on the menu, I have a separate menu control, and I add the items programmatically.When I select an item on the second line, the parent on the top line is also highlighted in the same way.  This is the intent, and uses the .AspNet-Menu-ChildSelected style from the adapter.My problem is that when I hover over the top line, the leaf items cover up the lower line, and I don't like how it looks.  I would prefer to have no fly-outs, if that is what they are called.  So I changed MaximumDynamicDisplayLevels to 0, and these go away.  But then .AspNet-Menu-ChildSelected no longer works, and the parent item is no longer styled.  Everything works except that the parent item is not highlighted.I'm hoping to find a simple solution.

Change image button image on hover

Hoep this si simple I would like to change the image in an image button when the user hovers over it ..can anyone helpThanks  

Hover State styling problem...

Here is a link to a screenshot of the off state... http://www.spasticgoat.com/shareshot.jpg when I hover over one of them, it activates a blue gradient background image in the tabs, which I can't get rid of! I've been trying to just use: background-image: none; and then assign a background color to the hover state, but it's not happening.   Any ideas?

Hover extender not working after postback

Hi I bind a hover extender to a cell in a gridview, using following code: Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView1.RowDataBound If e.Row.RowType = DataControlRowType.DataRow Then  Dim hoverMenu As HoverMenuExtender = CType(e.Row.FindControl("hoverMenu"), HoverMenuExtender)  e.Row.Cells(1).Controls.Item(0).ID = e.Row.RowIndex.ToString()     hoverMenu.TargetControlID = e.Row.Cells(1).Controls.Item(0).ID End If End Sub Now This works perfectly and the panel appear when hovering over the second cell.However after a postback it is no longer working and no panel will show when hovering over the cell. Can anybody help plaese?   Jonas   

changing color on hover

Hiii Coders, I have this kind of div and inside that i have taken a link as shown below. Now i want that whenever user hovers his mouse over the div, the colour of complete division should change  <div class="mycollapsiblelinks"> <a href="javascript:animatedcollapse.toggle('div1')"> <div border="0"> <h1>ELCOMPONICS SALES PVT LTD</h1> </div> </a> </div>   How can i achieve this? plz rep asap

Hover effect implementation

Hi I am trying to get the hover effect in a gridview via jQuery since IE does not support it in CSS directly. However I can't figure out how to get it back to the way grid looked before the gray hover over effect. I am just using the alternate row style = "#FFE4B5" in my C# code behind so when the grid first loads it has a white background with the alternate rows being shown in Moccasin color. After I hover over it via this JQuery:if (event =='mouseover') {$(this).Css("background", "#D3D3D3")}Once mouse moves out all the rows hovered over remain gray colored. Does some one know how to make it go back to the original colors (white background with the alternate rows being Moccasin color) as they were prior to the hover effect, may be I need an else condition above but not sure. Thanks

Hover and Selected Styles for Menu

I am using the following code to create a static menu, but using images instead of text..   <asp:Menu ID="Menu1" runat="server"> <Items> <asp:menuitem navigateurl="default.aspx" text="" imageurl="Images\nav_Home.gif" popoutimageurl="Images\nav_Home_selected.gif" tooltip="Home"> </asp:menuitem> Can anyone tell me if it's possible and how to perform an image swap on hover and also an image swap on click so that it is clear which menu item has been selected? Many thanks. 

Mouse hover gridview row



i have a gridview when i mouse over  i want to

1) higlight the row 

2)and  i want to display command buttons like Edit,Delete 

hover-ad creator Problem + Close button is not showing in IE



close button is not showing in IE. working fine in FF and others.

Please help SmileSmile

paging hover cotrol



I inserted a data grid view control with paging.

What I don't like is when the user hovers the numbers for the paging, the autoformat is classic, when the user hovers, there is a white box and the number dissapears because the box and the number have the same color, how can I change that please???


Is there a trick to having nested hover-menus hidden correctly when entering a form.


I have nested hover-menus controls that I used to create an interactive menu.  After I use each control once, it works fine. but when I first enter the form, when I hover over the parent hovermenu, the others pop-up as well until I click on them once.  After that, each of them work fine.

What can I do to stop that from hapening 

Highlighting Menu during sub-menu hover


I can highlight a menu-itm when the mouse is hovering over it.  How do I highlight a menu item when a sub-menu item is hovered?  I have a 4 level menu, 2 static accross the top, one drop-down, and one pop-out from the drop-downs.

While selecting level-4 items, it is a little confusing as to which level-3 item is being popped-out because I have alot of level 3 and level 4 items.  I want the appropriate level 3 item highlighted while hovering over its level 4 popout.

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend