To display Please Wait Screen

Add Following line in .aspx file

In head Tag

<head runat="server">

    <title>Please Wait Screen</title>

    <script language = "javascript">

    function showPleaseWait()

    {

        document.getElementById('PleaseWait').style.display = 'block';

    }

    </script>

</head>



In Body Tag

<body>

    <form id="form1" runat="server">

        <div class="helptext" id="PleaseWait" style="display: none; text-align:right; color:White; vertical-align:top;">

            <table id="MyTable" bgcolor="red">

                <tr>

                    <td>

                        <b><font color="white">Please Wait...</font></b>

                    </td>

                </tr>

            </table>

        <div>

            <asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click"  onmouseup="showPleaseWait()"/>
   

Note: here "Please Wait Screen" display logic is on mouse up event, so whenever heavy task started on button click event, "Please Wait..." Message will be displayed.

Best ASP.NET 4.6 Hosting Recommendation

ASPHostPortal.com provides its customers with Plesk Panel, one of the most popular and stable control panels for Windows hosting, as free. You could also see the latest .NET framework, a crazy amount of functionality as well as Large disk space, bandwidth, MSSQL databases and more. All those give people the convenience to build up a powerful site in Windows server. ASPHostPortal.com offers ASP.NET hosting starts from $1/month only. They also guarantees 30 days money back and guarantee 99.9% uptime. If you need a reliable affordable ASP.NET Hosting, ASPHostPortal.com should be your best choice.