How to add block UI in asp.net mvc

  By Junaid A   Posted on December-13-2022   106

.Net

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>

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>

By  asifjans    13-Dec-2022 Views  106



You may also read following recent Post

Recent Column What are 3 C
192  By
Recent Column what is .net
418  By