User-210971832 posted
Hi
How would i dynamically add a hovermenuextender to a page? I've been trying to do it like so but to no avail:
Dim p As
New Panel
p.cssclass="popupMenu"
'add some controls to the panel
dim hyp as new hyperlink
'set link properties
Dim hme As
New HoverMenuExtender
hme.TargetControlID = hyp.ID
hme.PopupControlID = p.ID
hme.HoverCssClass = "popupHover"
hme.PopupPosition = HoverMenuPopupPosition.Right
tc.Controls.Add(hme) 'tc is a table cell
Nothing happens when i hover over the hyperlink and there is nothing in the html to suggess the hover menu extender is being created at all. When i create a static menu extender there is some javascript in the html that looks like it is setting up the extender.
what am i doing wrong?
many thanks
andrea