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
257 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

717 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