我试图点击jQuery对话框中的ASP.net按钮,但它没有触发。
<div id="dialog" style="display: none">
<label >Item Name</label>
<br />
<asp:TextBox ID="txtItemNames" runat="server" CssClass="form-control-new"></asp:TextBox>
<br />
<asp:TextBox ID="txtItemNames2" runat="server" CssClass="form-control-new"></asp:TextBox>
<asp:Button ID="btnSaveChild" runat="server" Text="Save" OnClick="btnAdd_Click" />
</div>
<script type="text/javascript">
$("[id*=btnItemType]").live("click", function () {
$("#dialog").dialog({
title: "Item Asset Details",
width: 500,
height: 500,
buttons: {
Close: function () {
$(this).dialog('close');
}
},
modal: true
});
return false;
});
</script>