Showing posts with label onresolveid. Show all posts
Showing posts with label onresolveid. Show all posts

Saturday, March 24, 2012

Work at you the OnResolveId event of the HoverMenu control?

Hi

Work at you the OnResolveId event of the HoverMenu control?

With this code it doesn't work

<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true" /
<asp:LinkButton ID="LinkButton1" runat="server">LinkButton</asp:LinkButton>

<div id="Div1" runat="server" style="display:none; background-color:ButtonFace; border:solid 1px #ccc;">
<span id="Span2" runat="server">div_hover</span
</div>
<cc1:HoverMenuExtender ID="HoverMenuExtender1"OnResolveControlID="HoverMenuExtender1_ResolveControlID" PopDelay="2"runat="server" PopupControlID="Div1" TargetControlID="LinkButton1"PopupPosition="Right" /
<br /><br /><br /><br /
<asp:Label ID="Label1" runat="server" ></asp:Label


aspx.vb

Protected Sub HoverMenuExtender1_ResolveControlID(ByVal sender AsObject, ByVal e As AjaxControlToolkit.ResolveControlEventArgs) HandlesHoverMenuExtender1.ResolveControlID
Label1.Text = "Hi"
End Sub


What i am wrong?

up


Hi,

What are you trying to achieve?

The ResolveControlID event is defined in the ExtenderControlBase class, and it's called when the ExtenderControlBase fails to locate a control referenced by a TargetControlID. In this event, user code is given an opportunity to find the control.

Hope this helps.


Yes, it was just this, that i wanted to know

that is when start the resolveControlID and what it 's useful

thanks