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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
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…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

816 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now