<asp:LinkButton ID="btnNotB" runat="server" OnCommand="showIds" ClientIDMode="Static">
和
protected void showIds(object sender, CommandEventArgs e)
{
....
ScriptManager.RegisterStartupScript(this, this.GetType(), "UniqueKey", "ShowAllIds();", true);
....
}
Javascript:
<script type="text/javascript">
function ShowAllIds() {
$("#dialog").dialog({
autoOpen: false,
height: 'auto',
width: 'auto',
draggable: false,
resizable: false,
modal: true
});
}
</script>
如何显示对话框?