English 中文(简体)
CollapsiblePanelExtender collapses on link hover
原标题:

I am trying to use an CollapsiblePanelExtender to make some dropdown menus and am having some problems when hovering over links - can anyone help me out... By the way I do want to keep the AutoCollapse="True" effect.

I have the below:

<div  id="drop_menu2"> 

   <asp:PlaceHolder ID="PlaceHolder3" runat="server">

  <asp:Panel class="closePanel2" ID="Panel3" runat="server" HorizontalAlign="Left" >

  <asp:Hyperlink ID="Hyperlink1"  CssClass="test" runat="server" NavigateUrl="~/Default.aspx" title="Home" >Home</asp:Hyperlink>

   <asp:Hyperlink ID="Hyperlink2" CssClass="test" runat="server" NavigateUrl="~/Speach.aspx" title="Speach" >Speach</asp:Hyperlink>

      </asp:Panel>

        <!-- trigger -->
       <asp:Panel ID="trigger" runat="server">

   <asp:Image ID="Image2" runat="server" 
   ImageUrl="~/ExpandingPanel/expand.jpg" 
   style="position: relative; top: -1px; left: 0px" 
   ToolTip="Dropdown Menu..." />
        </asp:Panel>

   </asp:PlaceHolder>

<cc1:CollapsiblePanelExtender ID="CollapsiblePanelExtender2" runat="server" 
    TargetControlID="Panel3"
    Collapsed="True" 
   AutoCollapse="True" 
   AutoExpand="false"

    ExpandControlID="trigger" 
    CollapsedSize="0"
    ExpandedSize="148"
    SuppressPostBack="True">

</cc1:CollapsiblePanelExtender>  


</div>

I have tried the following fix at: http://forums.asp.net/t/1304389.aspx - but I think it is a bit too jerky... Any other methodes out there?

if it helps also - in source my doctype is showing as:

Thanks in advance as I can t logon to accept an answer...

问题回答

Wish I had a better suggestion for you with the CollapsiblePanel than the example you linked to, but I don t.

Since the announcement that MS is including jQuery in all future VS releases, I ve mostly stopped using the Microsoft Ajax stuff for all new code and life has been significantly easier. If you re not married to the idea of using the CollapsiblePanel, this is something that jQuery easily handles via the hover() call.





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签