我只想在提交表单后留在同一个标签页。
这是脚本:
$("#accordion").accordion({ header: "h3", navigation: true });
答案 0 :(得分:0)
我已使用此
更正了它
<asp:HiddenField ID="hidAccordionIndex" runat="server" Value="0" />
将其放入编码中并按如下方式更改脚本
$("#accordion").accordion({
header: "h3",
autoHeight: false,
event: "mousedown",
active: activeIndex,
ui: "Admin.aspx",
change: function (event, ui) {
var index = $(this).accordion("option", "active");
$('#<% =hidAccordionIndex.ClientID %>').val(index);
}
});