Do not use on any
shared computer
August 29, 2008 08:05pm pdt
 
[x]
Attachment Details

AJAX Update Progress Loader

Hi,

I have a form that I would like to display an animated image when the user clicks a button. I have it working now but when the page loads which is not what I need. I will display my .aspx page so that you can see what I'm doing wrong. Thanks in advance!

<form id="PSSA" class="contactform" defaultfocus="student" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <ProgressTemplate>
       
            <div>
                <img src="../images/IndicatorBig2_AjaxPreloader.gif" />
                Please Wait...
            </div>
       
        </ProgressTemplate>
            <br />
        <fieldset>
       <img src="../images/pac-logo.gif" width="170px" alt="PA Cyber" height="50px" id="pacyberlogo" />
       <br />
       <h3><asp:Image ID="Image2" runat="server" ImageUrl="../images/usericon.png" /><asp:Label ID="LoginUser" CssClass="loginlabel" runat="server"></asp:Label></h3>
       <h3><asp:ImageButton ID="ImageButton3" AlternateText="Click here to Sign Out" OnClick="LogOut_Click" CssClass="unlock" ImageUrl="../images/unlock.png" runat="server" /><asp:Label ID="SignOut" runat="server" CssClass="unlocklabel" Text="Sign Out"></asp:Label></h3>
       <br />
       <br />
       <table style="width: 531px">
       
                    <tr>
                        <td colspan="1"><label><b style="color: #026fa7">
                            Enter Student ID:</b></label></td>
                        <td>
                            <asp:TextBox ID="student" runat="server" CssClass="text"></asp:TextBox>&nbsp;
                            &nbsp;<asp:ImageButton ID="LocateBtn" CausesValidation="false" OnClick="btnLocate_Click" runat="server" ImageUrl="../images/LocateBtn.png" AlternateText="Locate Student Information" ImageAlign="AbsMiddle" /></td>
                    </tr>
            <tr>
                <td colspan="1">
                </td>
                <td>
                    <asp:Label ID="Label3" runat="server" CssClass="text" ForeColor="#CC0000"></asp:Label>
                </td>
            </tr>
            <tr>
                <td colspan="1"><label>
                    Student ID:</label></td>
                <td>
                    <asp:Label ID="lblstudent_id" runat="server" CssClass="text"></asp:Label></td>
            </tr>
            <tr>
                <td colspan="1"><label>
                    First Name:</label></td>
                <td>
                    <asp:Label ID="lblfirstname" runat="server" CssClass="text"></asp:Label></td>
            </tr>
            <tr>
                <td colspan="1"><label>
                    Last Name:</label></td>
                <td>
                    <asp:Label ID="lbllastname" runat="server" CssClass="text"></asp:Label></td>
            </tr>
            <tr>
                <td colspan="1"><label>
                    Grade Level:</label></td>
                <td>
                <asp:DropDownList ID="gradelevelList" runat="server" CssClass="text"></asp:DropDownList>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server"
                        ControlToValidate="gradelevelList" CssClass="required" ErrorMessage="REQUIRED" InitialValue="1"></asp:RequiredFieldValidator>
                            </td>
            </tr>
            <tr>
                <td colspan="1"><label>
                    Date Of Birth:</label></td>
                <td>
                    <asp:Label ID="lbldob" runat="server" CssClass="text"></asp:Label></td>
            </tr>
            <tr>
                <td colspan="1"><label>
                Instructional Supervisor:</label></td>
                <td>
                    <asp:Label ID="lblteacher" runat="server" CssClass="text"></asp:Label></td>
            </tr>
            <tr>
                <td colspan="1"><label>
                    PA SecureID:</label></td>
                <td>
                    <asp:Label ID="lblpasecureid" runat="server" CssClass="text"></asp:Label></td>
            </tr>
            <tr>
                <td colspan="1"><label>
                    Entry Date:</label></td>
                <td>
                    <asp:Label ID="lblentrydate" runat="server" CssClass="text"></asp:Label></td>
            </tr>
            <tr>
                <td colspan="1"><label>
                    Gender:</label></td>
                <td>
                    <asp:Label ID="lblgender" runat="server" CssClass="text"></asp:Label></td>
            </tr>
            <tr>
                <td colspan="1"><label>
                    Ethnicity:</label></td>
                <td>
                    <asp:Label ID="lblethnicity" runat="server" CssClass="text"></asp:Label></td>
            </tr>
            <tr>
                <td colspan="1"><label>
                    Phone Number:</label></td>
                <td>
                    <asp:Label ID="lblphone" runat="server" CssClass="text"></asp:Label></td>
            </tr>
            <tr>
                <td colspan="1"><label>
                    Special Ed:</label></td>
                <td>
                    <asp:DropDownList ID="specialedList" runat="server" CssClass="text"></asp:DropDownList>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
                        ControlToValidate="specialedList" CssClass="required"
                        ErrorMessage="RequiredFieldValidator" InitialValue="3">Required</asp:RequiredFieldValidator>
                            </td>
            </tr>
            <tr>
                <td colspan="1">
                    <label>
                    Accomodations:</label></td>
                <td>
                    <asp:TextBox ID="lblspedaccnotes" runat="server" TextMode="MultiLine" Width="250px" MaxLength="50" Columns="4" CssClass="text" Rows="4"></asp:TextBox></td>
            </tr>
            <tr>
                <td colspan="1"><label>
                    PSSA Location:</label></td>
                <td>
                    <asp:DropDownList ID="sitesList" runat="server" CssClass="text"></asp:DropDownList>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
                        ControlToValidate="sitesList" CssClass="required"
                        ErrorMessage="RequiredFieldValidator" InitialValue="28">Required</asp:RequiredFieldValidator>
                            </td>
            </tr>
           <asp:HiddenField ID="lblloginuser" runat="server" />
           <asp:HiddenField ID="lbllastupdated" runat="server" />
           <asp:HiddenField ID="hostname" runat="server" />
        </table>
       </fieldset>
    <asp:ImageButton ID="UpdateBtn" OnClick="btnUpdate_Click" CssClass="submitbtn" runat="server" ImageUrl="../images/SaveBtn.png" AlternateText="Click here to Update information" />&nbsp;&nbsp;<asp:Label ID="Label1" runat="server"></asp:Label>
    <asp:Label ID="Label2" runat="server"></asp:Label>
   
    </ContentTemplate>
    </asp:UpdatePanel>
    </form>
Start your free trial to view this solution
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

Question Stats
Zone: Programming
Question Asked By: asp_net2
Solution Provided By: zkeown
Participating Experts: 1
Solution Grade: A
Views: 0
Translate:
Loading Advertisement...
 
[+][-]Expert Comment by zkeown

Rank: Master

Expert Comment by zkeown:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by asp_net2
Author Comment by asp_net2:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Accepted Solution by zkeown

Rank: Master

Accepted Solution by zkeown:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080723-EE-VQP-34 / EE_QW_2_20070628