<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="对话框练习.aspx.cs" Inherits="easyui练习.对话框练习" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script src="JS/easyUI/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="JS/easyUI/jquery.easyui.min.js" type="text/javascript"></script>
<script src="JS/easyUI/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
<link href="JS/easyUI/themes/default/easyui.css" rel="stylesheet" type="text/css" />
<link href="JS/easyUI/themes/icon.css" rel="stylesheet" type="text/css" />
<script src="JS/wikmenu.js" type="text/javascript"></script>
<script src="JS/wikmain.js" type="text/javascript"></script>
<script type="text/javascript">
$(function () {
$(‘#MyDialog‘).dialog({
title: ‘My Dialog‘,
iconCls: ‘icon-ok‘,
toolbar: [{
text: ‘Add‘,
iconCls: ‘icon-add‘,
handler: function () {
alert(‘add‘);
}
}, ‘-‘, {
text: ‘Save‘,
iconCls: ‘icon-save‘,
handler: function () {
alert(‘save‘);
}
}],
buttons: [{
text: ‘OK‘,
iconCls: ‘icon-ok‘,
handler: function () {
alert(‘ok‘);
}
},
{
text: ‘Cancel‘,
iconCls: ‘icon-cancel‘,
handler: function () {
$(‘#MyDialog‘).dialog(‘close‘);
}
}]
});
});
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<div id="MyDialog" class="easyui-dialog" style="width:400px; height:300px">
在这里添加你需要的控件
</div>
</div>
</form>
</body>
</html>