Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > ASP.NET 4 General Discussion
|
ASP.NET 4 General Discussion For ASP.NET 4 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 4 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 4th, 2013, 05:35 PM
Authorized User
 
Join Date: Aug 2012
Posts: 27
Thanks: 6
Thanked 0 Times in 0 Posts
Default [C# net 4] Load page please wait (not updating but page load)

[C# net 4] Load page please wait (not updating but page load)

Hi all, hope in your help and suggestions.

I need show the classic message 'Please wait' when my gridview is populated in my page aspx.

In the google search I find all examples and tutorials with buttons that update the page aspx, e.g.:
http://aspsnippets.com/Articles/Disp...ng-ASPNet.aspx

In this demo when call gridview.aspx the message not show, instead is show when click in the button 'btnSubmit'.

Can you help me?

I tried this version but the images spinner4-greenie.gif not showed:

Code:
<body>
    <form id="form1" runat="server">
    <ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </ajaxToolkit:ToolkitScriptManager>
    <div>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <asp:GridView ID="DecoderView" runat="server" AllowPaging="True" AllowSorting="true"
                    AutoGenerateColumns="False" PageSize="13" ShowHeader="true" OnPageIndexChanging="GridView1_PageIndexChanging"
                    OnRowDataBound="GridView1_RowDataBound" CssClass="mGrid" ShowHeaderWhenEmpty="true"
                    EmptyDataText="No data available." DataKeyNames="ID" OnRowEditing="GridView1_RowEditing"
                    OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowCommand="GridView1_RowCommand"
                    OnRowUpdating="GridView1_RowUpdating" OnRowDeleting="GridView1_RowDeleting">
                    <Columns>
                    ...
                    </Columns>
                </asp:GridView>
            </ContentTemplate>
        </asp:UpdatePanel>
        <br />
        <asp:UpdateProgress ID="UpdateProgress1" runat="server">
            <ProgressTemplate>
                <div class="loading" align="center">
                    <img src="images/spinner4-greenie.gif" alt="" />
                </div>
            </ProgressTemplate>
        </asp:UpdateProgress>
    </div>
    </form>
</body>





Similar Threads
Thread Thread Starter Forum Replies Last Post
Load Repeater (Data)content on the page load? master777 ASP.NET 4 General Discussion 8 April 11th, 2013 08:21 PM
Load Repeater (Data)content on page load? master777 BOOK: Beginning ASP.NET 4 : in C# and VB 1 April 10th, 2013 02:32 AM
Cant load page with anchor mehdymahmood BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 13 January 12th, 2010 06:30 AM
page could not be load on browser vivek123 ASP.NET 1.0 and 1.1 Professional 2 August 28th, 2006 05:01 AM
Page won't load data in IE rinventive PHP How-To 8 June 23rd, 2006 10:03 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.