如何更改ASP.NETAJAX ModalPopupExtender z-index。默认情况下它是100001. 谢谢。ModalPopupExtender和z-index
2
A
回答
3
我用这个函数:
function ShowModalPopup(modalPopupId, zIndex) {
try {
if (modalPopupId == null) throw new Error(0, 'Incorrect value of param modalPopupId!');
var modalPopupBehavior = $find(modalPopupId);
if (modalPopupBehavior == null) throw new Error(0, 'Not found modal popup ' + modalPopupId + '!');
zIndex = typeof (zIndex) != 'undefined' ? zIndex : null;
if (zIndex != null) {
modalPopupBehavior._backgroundElement.style.zIndex = zIndex;
modalPopupBehavior._foregroundElement.style.zIndex = zIndex + 1;
}
modalPopupBehavior.show();
}
catch (ex) {
alert('Exception in ShowModalPopup: ' + ex.message);
}
}
,并呼吁:
ShowModalPopup('<%= modalpopup.ClientID %>', 20001);
0
您可以挂钩的处理程序对modalpopup所示的事件,可以让你设置zIndex的:
function pageLoad()
{
var popup = $find('ModalPopupClientID');
popup.add_shown(SetzIndex);
}
function SetzIndex(sender,args)
{
sender._container.style.zIndex=9990001;
}
5
我分配一个CSS类到面板我的modalpopupextender分配给(PopupControlID),并把somthing如:
.ModalSelect
{
z-index:70000 !important;
/*other css*/
}
相关问题
- 1. ASP.NET MVC和ModalPopupExtender
- 2. ModalPopupExtender和IE 6
- 3. 父zIndex问题IE6和IE7
- 4. WPF 3.5 WebBrowser控件和ZIndex
- 5. Siverlight 4,MVVM和ItemsControl ZIndex
- 6. WPF ContentControl将ZIndex设置为子ZIndex
- 7. ModalPopupExtender和RequiredFieldValidator在面板上
- 8. ASP.NET Ajax和ModalPopupExtender不显示
- 9. 与ModalPopupExtender和/或UpdatePanel的
- 10. ModalPopupExtender和验证问题
- 11. Mobile ModalPopupExtender?
- 12. ModalPopupExtender Gridview
- 13. FixedPage没有ZIndex
- 14. DockIn内ZIndex
- 15. IE忽略zIndex
- 16. ZIndex on Clusters
- 17. OpenLayers 3图像和文本样式zindex
- 18. 浮动窗口和zindex应用问题
- 19. 错误点击功能javascript和zindex
- 20. FF4 - CSS zindex问题
- 21. React Native中的zIndex
- 22. zIndex的Windows Mobile的
- 23. zIndex点击事件
- 24. Highcharts 3d resize zindex bug
- 25. ModalPopupExtender不回发
- 26. ASP.NET - 动态ModalPopupExtender
- 27. ModalPopupExtender GridView ItemTemplate
- 28. ModalPopupExtender OnShow事件?
- 29. Asp.net ModalPopupExtender回传
- 30. AjaxToolKit ModalPopupExtender + AnimationExtender