我不确定我做错了什么,BlockUI 不起作用。希望大家帮忙,谢谢。
单击搜索按钮后,我正在尝试制作,用户将无法使用 UI。
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<script src="../JS/jquery-1.9.1.js" type="text/javascript"></script>
<script src="../JS/jquery.blockUI.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
$('<%= btnSearch.ClientID %>').click(function() {
$.blockUI({ message: 'Just a momeqweqwent...'});
setTimeout(function() {
$.unblockUI({
onUnblock: function() { alert('onUnblock'); }
});
}, 2000);
});
});
</script>
<asp:Button ID="btnSearch" runat="server" Text="Search" CssClass="Rect" OnClick="btnSearch_Click">
</asp:Button>