如何使文本框内放置的日历扩展控件(CalendarExtender)在弹出窗口控件(ModalPopupExtender)前显示?
将以下 JavaScript 代码添加到你的页面中:
function calendarShown(sender, args)
{
sender._popupBehavior._element.style.zIndex = 10005;
}
然后在您的日历扩展程序的属性中添加:
OnClientShown="calendarShown"
我的解决方案是使用CSS:
.ajax__calendar_container
{
position: relative;
}
更新 Ajax 库也解决了这个问题