在asp.net中设置Ajax HoverMenuExtender中的位置 [英] set position in Ajax HoverMenuExtender in asp.net
本文介绍了在asp.net中设置Ajax HoverMenuExtender中的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的所有人,
我无法设置Ajax toolKit Control HoverMenuExtender的愿望位置,我尝试了许多方式,但它不能。
以下是代码:请检查。
感谢高级。
Dear All,
I am not able to set the desire position for Ajax toolKit Control HoverMenuExtender, I tried many of the way but it could't.
Below are the code: Please check.
Thank in Advanced.
<asp:Panel ID="Panel1" runat="server" Style="display: none;"><br />
<div><br />
<table border="1" width="150px" cellpadding="0" cellspacing="0" style="background-color: Green;<br />
border-color: Gray"><br />
<tr><br />
<td style="color: White; width: 100px;"><br />
Case Hearing<br />
</td><br />
<td style="color: White; width: 50px; text-align: center;"><br />
<asp:Label ID="hylCaseHearing" runat="server"></asp:Label><br />
</td><br />
</tr><br />
<br />
</table><br />
</div><br />
</asp:Panel>
<cc1:HoverMenuExtender ID="HoverMenuExtender1" BehaviorID="ModalBehaviour" runat="server"
TargetControlID="Panel1" PopupControlID="Panel1" PopupPosition="right" OffsetX="200"
OffsetY="100" PopDelay="50">
<br />
function ShowModalPopup(CS, NC, CE, IP) {<br />
<br />
$('#<%=hylCaseHearing.ClientID%>').html(CS);<br />
<br />
$find("ModalBehaviour")._hoverBehavior._hoverElement.style.display = "";<br />
$find("ModalBehaviour")._popupBehavior.set_x('1000');<br />
$find("ModalBehaviour")._popupBehavior.set_y('10');<br />
<br />
<br />
}<br />
<br />
function HideModalPopup() {<br />
<br />
$find("ModalBehaviour")._hoverBehavior._hoverElement.style.display = "none";<br />
}<br />
<br />
我正在使用母版页。
I am using master page.
推荐答案
('#<%= hylCaseHearing.Client ID%>')。html(CS);< br />
< br />
('#<%=hylCaseHearing.ClientID%>').html(CS);<br /> <br />
find(ModalBehaviour)._ hoverBehavior._hoverElement.style。 display =;< br />
find("ModalBehaviour")._hoverBehavior._hoverElement.style.display = "";<br />
find(ModalBehaviour)._ popupBehavior.set_x('1000');< br />
find("ModalBehaviour")._popupBehavior.set_x('1000');<br />
这篇关于在asp.net中设置Ajax HoverMenuExtender中的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文