Showing posts with label ltaspscriptmanager. Show all posts
Showing posts with label ltaspscriptmanager. Show all posts

Wednesday, March 28, 2012

Why it always return to the original place?

<asp:ScriptManager ID="ScriptManager1" runat="server" />
<cc1:DragPanelExtender ID="DragPanelExtender1" runat="server" TargetControlID="Panel1"
DragHandleID="Panel2">
</cc1:DragPanelExtender>
<asp:Panel ID="Panel1" runat="server" Height="300" Width="200">
<asp:Panel ID="Panel2" runat="server" Height="25" Width="200" BackColor="Black">
</asp:Panel>
Test</asp:Panel>

I would like the Panel1 can be dragged and stay the place where I drop it.

How to do that?

I believe the body of the page has to have been assigned some sort of physical dimension:

http://forums.asp.net/p/1150327/1874846.aspx

See point #23 and Listing 6 of this article:

http://aspalliance.com/1450_Working_with_DragPanel_AJAX_Control.4


Many thanks for replying.

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