Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
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
Medium Priority
?
264 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 2000 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

Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

Question has a verified solution.

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

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
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
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

636 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