当我将鼠标悬停在它上面时,HoverMenuExtender没有显示弹出式面板 [英] HoverMenuExtender is not showing popup panel when i hover on it

查看:50
本文介绍了当我将鼠标悬停在它上面时,HoverMenuExtender没有显示弹出式面板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。



我是ajax的新手,并尝试使用ajax hovermenuextender控件。我从codeproject.com以及其他网站下载了hovermenuextender的演示项目,它们都运行正常。



即使我尝试创建自己的aspx页面在那些下载的项目中,并实现hovermenuextender,它工作正常。但是当我创建一个新的简单asp.net项目,并试图实现这个功能时,它不起作用。



我添加了ajaxtoolkit 3.5和弹出式面板也使用display:none来隐藏它。但我将鼠标悬停在链接按钮上,它不显示弹出式面板。



我的aspx代码如下:



Hi All.

I am a newbie in ajax and trying to use ajax hovermenuextender control. I have downloaded the demo projects of hovermenuextender from codeproject.com as well as from other websites and they all work fine.

Even when I try to create my own aspx page in those downloaded projects, and implement hovermenuextender, it works fine. But when i create a new simple asp.net project, and try to implement this functionality, it doesn''t work.

I have added reference of ajaxtoolkit 3.5 and also used the "display:none" for popup panel to hide it at beginning. But I hover the linkbutton, it doesnt show the popup panel.

My aspx code is as follows:

<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<!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 id="Head1" runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
      <asp:LinkButton ID="LinkButton1" runat="server">LinkButton</asp:LinkButton>
    <asp:Panel ID="Panel1" runat="server" CssClass="pop">
        <table><tr><td>hellow avinash</td></tr></table>
    </asp:Panel>
    <asp:HoverMenuExtender ID="HoverMenuExtender1" runat="server" PopupControlID="Panel1" TargetControlID="LinkButton1" PopupPosition="right" OffsetX="-100"

            OffsetY="-6"

            PopDelay="500">
    </asp:HoverMenuExtender>
     </form>
</body>
</html>





请让我知道问题出在哪里以及如何解决。



Please let me know where the problem is and how to solve it.

推荐答案

你好朋友,



我也发现了问题和解决方案。

问题是我使用的是重用的dll文件AjaxControlToolkit.dll。这意味着我是

点击菜单网站 - >添加参考



然后我选择了 AjaxControlToolkit.dll 下载项目的Bin文件夹中的文件。因此,它不能在我的网站上工作。



解决方案:

我下载了新的AjaxControlToolkit.dll(仅按照提供者)来自这里的框架3.5,并像我们一样正常使用它并且它起作用。
Hello friends,

I have found the problem and solution too.
The problem was that I was using re-used dll file "AjaxControlToolkit.dll". It means I was
clicking in the menu Website->Add a reference

Then I was selecting the AjaxControlToolkit.dll file from the Bin folder of downloaded projects. And thus, it was not working in my website.

Solution:
I downloaded new AjaxControlToolkit.dll(only controls as recommended by the providers) for framework 3.5 from here and used it as normally we do and it worked.


这篇关于当我将鼠标悬停在它上面时,HoverMenuExtender没有显示弹出式面板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆