您的位置:首页 > 编程语言 > ASP

aspxpopupcontrol学习日记--弹出窗口

2008-05-29 17:11 351 查看
这上面也有点郁闷,弹出方式总是弹到左上角.组长让这个页面显示在中间,无奈.搞定,感觉还不错.

解决方案

JS

function OnMoreInfoClick(obj,text1,text2) {
if(text1!='关别')
{
Popup.ShowAtElement(obj);
Popup.SetContentUrl('Query.aspx?id='+text1+'&type='+text2);
}

}

ASPX

<table id="popups" style="width: 100%" >
<tr>
<td></td>
</tr>
</table>

<dxpc:aspxpopupcontrol id="Popup" ClientInstanceName="Popup" runat="server"
EnableClientSideAPI="True" AllowDragging="True"
PopupHorizontalAlign="Center" HeaderText="查询结果页面" Width="300px"
Height="320px" ForeColor="Silver" PopupAction="LeftMouseClick" PopupElementID="popups" EnableHierarchyRecreation="True">
<Border BorderWidth="0px" />

</dxpc:aspxpopupcontrol>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐