You must Sign In to post a response.
  • Category: ASP.NET

    How to hide the progress bar in asp.net

    <div class="loading" align="center">
    Loading. Please wait.<br />
    <br />
    <img src="loader.gif" alt="" />
    </div>


    i show the progress bar using above code.



    I have one button called show when i click the show button progress bar will display.

    After that excel will open and i close the excel scree

    After i close the screen progress bar is still running in background

    how to hide that progress bar
  • #765838
    Hi,

    As I seen your code you want to hide the Div tag, you can do it in several ways like in client side and server side, i will share you how to hide it in client side.


    <div class="loading" align="center">
    Loading. Please wait.<br />
    <br />
    <img src="loader.gif" alt="" />
    </div>


    this is your loading part design, in your div you are using class, if you want to hide based on class then use below code


    $( ".loading" ).hide();


    but the problem with hiding using class name is whenever you use the same class name all the div tags are hided, so to over come the above problem you have to declare the id of the div with name "divloading" and hide the div using that id.


    $( "#divloading" ).hide();


    Use the above code wherever you want...
    Hope this will helpful to you...

    --------------------------------------------------------------------------------
    Give respect to your work, Instead of trying to impress your boss.

    N@veen
    Blog : http://naveens-dotnet.blogspot.in/


Sign In to post your comments