please help me i try to create a simple dynamic hover menu AJAX toolkit but I failure (the result is not viewed)
______this is the ascx page_______
<%@ Control Language="VB" AutoEventWireup="false" CodeFile="Test.ascx.vb" Inherits="DesktopModules_test_Test" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<style type="text/css">
.popupMenu {
position:absolute;
visibility:hidden;
background-color:#AAFFFF;
opacity:.9;
filter: alpha(opacity=90);
}
.popupHover {
background-image:url(images/header-opened.png);
background-repeat:repeat-x;
background-position:left top;
background-color:#F5F7F8;
}
</style>
<asp:Panel ID="Panel3" runat="server" Height="50px" Width="125px">
</asp:Panel>
<asp:Panel ID="Panel1" runat="server" Height="22px" Width="300px" CssClass="popupMenu">
</asp:Panel>
<asp:Panel ID="Panel2" runat="server" Height="36px" Width="648px" BackColor="PaleGreen">
</asp:Panel>
_________this is the cede behind accosiated_________
Imports DotNetNuke
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Collections.Generic
Imports System.Reflection
Imports System.Text
Imports DotNetNuke.Security.PortalSecurity
Partial Class DesktopModules_test_Test
Inherits Entities.Modules.PortalModuleBase
Dim menu As New AjaxControlToolkit.HoverMenuExtender()
Dim panel As New Panel()
Dim linkBtnChild As New LinkButton()
Dim linkBtn As New LinkButton()
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Try
If DotNetNuke.Framework.AJAX.IsInstalled Then
DotNetNuke.Framework.AJAX.RegisterScriptManager()
End If
Catch exc As Exception 'Module failed to load
ProcessModuleLoadException(Me, exc)
End Try
'menu hover
menu.ID = "HoverMenuExtender1"
menu.TargetControlID = "btnProduct"
menu.PopupControlID = "PanelPopUpProduct"
menu.PopupPosition = AjaxControlToolkit.HoverMenuPopupPosition.Bottom
menu.OffsetX = "6"
menu.PopDelay = "25"
menu.HoverCssClass = "popupHover"
'linkBtnChild
linkBtnChild.ID = "BtnUpdate"
linkBtnChild.CausesValidation = "true"
linkBtnChild.CommandName = "Update"
linkBtnChild.Text = "Updated"
'linkBtn
linkBtn.ID = "btnProduct"
Panel3.Controls.Add(menu)
Panel1.Controls.Add(linkBtnChild)
Panel2.Controls.Add(linkBtn)
End Sub
End Class