我已经检查过类似的问题,但没有人给我一个解决方案......这就是为什么发布这个问题......所以请给我一个解决方案而不是投反对票......
我正在我的对话框中加载一个 aspx 页面。它第一次工作正常,但是如果我第二次关闭并重新打开它..它没有被打开..
这是我处理对话框脚本的 default.aspx
<html>
<head>
<script type="text/javascript">
$(document).ready(function() {
$("#thedialog").dialog({
autoOpen: false,
modal: true,
position: 'center',
width: 900,
open: function() {
$('#thedialog').load("AddDetails.aspx");
}
});
$('#link').click(function() {
$('#thedialog').dialog('open');
});
});
</script>
</head>
<body>
<div id="thedialog" style="display: none; overflow: hidden">
<span id="link" style="color: #88b807; margin-left: 839px;
margin-top: -12px; cursor: pointer; display: block">Create</span>
</div>
</body>
</html>
这是我的 AddDetails.aspx
<body>
<form id="form1" runat="server">
<div>
<table id="table" style="border-spacing: 7px 7px; margin-left: 5px">
<tr>
<td>
<span class="SubHeading">Private Space Name </span>
</td>
<td>
<asp:TextBox ID="txt_spacename" runat="server" />
</td>
</tr>
<tr>
<td>
<span class="SubHeading">Private Space Description </span>
</td>
<td>
<asp:TextBox ID="txt_spacedesc" TextMode="MultiLine" runat="server" />
</td>
</tr>
</table>
</div>
</form>
</body>
如果我只是打开一个对话框,而不是加载一个页面,它正在打开,但如果我在对话框中加载一个页面,它不会打开......
帮助...