How to add block UI in asp.net mvc
Microsoft Net Framework

Problem:

when we are using jQuery - some time page take time to load- so to make user busy, we need to display some mesage or icon, that is called as Block UI.

 

Solution:

its very simple you just need to add 2 lines in your layout page and job is done.

Add Script like this 

 

  <script src="@Url.Content("~/Content/jquery.blockUI.min.js")"></script>

and

 

<script>


        $(document).ajaxStart($.blockUI).ajaxStop($.unblockUI);

</script>

Share This with your friend by choosing any social account


Upcoming Articles
You may also read following recent Post
Copyright Future Minutes © 2015- 2024 All Rights Reserved.   Terms of Service  |   Privacy Policy |  Contact US|  Pages|  Whats new?
Update on: Dec 20 2023 05:10 PM