【发布时间】:2014-04-23 12:58:34
【问题描述】:
我正在使用以下代码关闭 modalPopup,但由于某种原因无法正常工作。
<script>
function pageLoad(sender, args){
if(!args.get_isPartialLoad()){
// add our handler to the document's
// keydown event
$addHandler(document, "keydown", onKeyDown);
}
}
function onKeyDown(e){
if(e && e.keyCode == Sys.UI.Key.esc){
// if the key pressed is the escape key, dismiss the dialog
$find('ModalPopupExtenderPanelFullViewProductos').hide();
}
}
</script>
<ajax:ModalPopupExtender ID="ModalPopupExtenderPanelFullViewProductos"
runat="server" TargetControlID="LinkButtonDummy"
BackgroundCssClass="modalBackground"
PopupControlID="PanelFullViewProductos"
X="20" Y="50" DropShadow="true"
RepositionMode="None">
</ajax:ModalPopupExtender>
【问题讨论】:
标签: asp.net ajax modalpopupextender