代码
<ext:Button ID="Button1" runat="server" Text="Submit">function buildWindow(url) {
var DisplayPanel = new Ext.TabPanel({
350,
id:"tt",
title:"dfsdf",
height: 500,
400,
autoScroll: true,
activeTab: 0,
frame: true,
autoDestroy:false
});
var tan=DisplayPanel.add({
id: "ee",
title: "sdf",
height: 500,
400,
autoScroll: true,
closable: true,
autoLoad: {
showMask: true,
url: url,
mode: 'iframe',
maskMsg: 'Loading ' + '...'
}});
var win = new Ext.Window({
id:"ww",
layout: "fit",
autoScroll:true,
title: "Source code",
iconCls: "icon-pagewhitecode",
600,
height: 600,
maximizable: true,
autoShow: true,
plain: true,
resizable: false,
shadow: false,
bufferResize: true,
modal: true,
items:[DisplayPanel]
});
win.show();
}
<Listeners>
<Click Handler="buildWindow('Default.aspx')" />
</Listeners>
</ext:Button>