Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0how to create dynamic ajax toolkit controle (hover menu) ?how to create dynamic ajax toolkit controle (hover menu) ?
Previous
 
Next
New Post
3/31/2009 9:06 PM
 

 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

 

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0how to create dynamic ajax toolkit controle (hover menu) ?how to create dynamic ajax toolkit controle (hover menu) ?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out