Solved

How and which event to change mouse cursor to show users the web application is working on the request after they click?

Posted on 2015-01-08
2
254 Views
Last Modified: 2015-01-08
Hi, I'm using vs2012.
I have a page with a gridview that is bind to a data source.
I would like to change the mouse cursor to animating hour glass when user loads the page or when they click on either Edit, Update or Cancel button on the gridview.  Which events would be appropriate to do this and how to do this in C# or asp.net code?  Thank you.
0
Comment
Question by:lapucca
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 18

Accepted Solution

by:
Jerry Miller earned 500 total points
ID: 40539068
I found a small Ajax control to display a loading image. I know this is VB, but it should easily translate into C#.

Here is my ascx content:

<%@ Control Language="VB" AutoEventWireup="false" CodeFile="UpdateProgress.ascx.vb" Inherits="Controls_UpdateProgress" %>

<link href="../Styles/style.css" rel="stylesheet" type="text/css" />
 <asp:UpdateProgress ID="RoleRightUpdateProgress" runat="server">
        <ProgressTemplate>
            <asp:Image ID="loadingImage" runat="server" src="../Images/ajax_loader.gif" alt="Loading" CssClass="loadingLeftBottom" />
        </ProgressTemplate>
 </asp:UpdateProgress>

Open in new window


My ascx.vb content:
Partial Class Controls_UpdateProgress
    Inherits System.Web.UI.UserControl
End Class

Open in new window


In the top of the pages that contain an UpdatePanel where I want this to display, I register the control.

<%@ Register Src="~/Controls/UpdateProgress.ascx" TagName="updateProgress" TagPrefix="uc1" %>

Open in new window


and call it in the area where I want to display the image:
 <%--show progress icon when the panel is updating--%>  
    <uc1:updateProgress runat="server" ID="ucUpdateProgress" />

Open in new window


http://msdn.microsoft.com/en-us/library/bb386421(v=vs.140).aspx
0
 

Author Closing Comment

by:lapucca
ID: 40539086
That's great, thank you.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question