.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

How to center loading please wait image

Posted By:      Posted Date: September 23, 2010    Points: 0   Category :ASP.Net


I am trying to show loading please wait image while data is returned. Image is in a hidden DIV but I need to show it in the center on the page on top of the underlying controls and I am not sure how to do it. It's always shown at the bottom of the page. I tested it by make the display:block, here is my CSS:



View Complete Post

More Related Resource Links

Loading please wait image show hide



I am trying to implement the loading please wait image funtionality while controls refersh on the page. Here are steps I have taken:

1. Added the image to the .net solution file in the image folder.
2. Added a div with the hidden class that holds the image source on the webform.

Image loads hidden by default and I am trying to show it when any postback or partial post back occurs. There are several controls like dropdowns, checboxes, gridview etc and links in the gridview that could take a few moments to load so I want to display the loading please wait while they reload after selections are made. All Controls exist in the update panel. I can't figure out how to show the image and hide it again when controls are reloaded. I am trying to add to this existing jQuery, my challenge is events occur after the document has been loaded so I need to add Ajax events to this query to show hide the loading please wait image. Here is what I have so far

//Dialog box settings

$(document).ready(function() {

    // $("mytest").dialog({
        title: "   Test",
        resizable: false,
        modal: true,

ASP:Chart Image Not Loading When Converting to PDF

Here's a nice one for a Pro to bite into I have a web form that generates a set of reports including asp chart controls. Clicking on the black title loads the report section into the ajax enabled panel below it. Beautiful! Two Problems though: Sometimes, when the ajax is loading the next report section, all the other charts on the page flicker and sometimes even show a red x (the image disappears). They can then reappear again when another chart loads! 2nd Problem: If I use the html-to-pdf converter, I tell all the panels to bind to the data source (they are repeaters) on page load and show content. I Then convert the resulting datastream to PDF. All the other images on the page load, but the ones for the charts don't. I have looked at the generated code, and they are all linked fine to the correct address of the site and the chart generator url. A sample image of the working page is below: Example PageExample PDFPage PDF is generated from     Thanks in advance! IanB

Bulk Loading an Image from URL

I know I can load an image from file system to a binary field in SQL Server : CREATE TABLE Foobar ( image_data VARBINARY(MAX)); INSERT INTO Foobar (image_data) SELECT image_data FROM OPENROWSET( BULK N'C:\image.jpg', SINGLE_BLOB) AS ImageSource(image_data); But I need to know if I can load image from a URL like 'http://www.mysite.com/test.jpg' . I tried it with no success. Any ideas?

Show Please Wait... message on loading GridView.

Hi All. I wants to show Please Wait... message on loading GridView. I am not using ajax. The Please Wait... should come above the GridView. On combobox value change the gridview binds with new value. On every binding i wants to show the Please Wait... above the gridview.   Thanks.

Showing thousands of rows in datagrid, need cursor to wait while loading rows

I´m creating DataGrid columns dynamicly in C# and loading data into a list at the same time. Cursor is waiting at the same time. Now, after columns are created and data is loaded into a list. I set the myDataGrid.Itemssouce = mylist; Cursor=Curosrs.Arrow; Andafter that, I set the Cursor to arrow again as you can see. But when the list contains thousands of rows it takes about 5-10 seconds for the datagrid to show the rows. Its ok but I need the cursor to be in waiting stage allso while data is not shown but the cursor is not waiting, its arrow. Any suggestions, please?

how to center an image with CSS


How do I center an image with CSS?  It seems that all that is available is align left or align right.  I am attempting to float an image horizontally automatically so that I do not need to adjust the number of pixels from the left border.  I am working with a web page that will have several images of varying widths up and down the web page.  Images may vary between 400 pixels wide or change to possibly 250 pixels wide.  So how do center the images? 

Display progress image when page is loading using jquery


hi friends,

When I click Submit button in my Registration form it should be open a (div) progress bar Showing processing.... (or) loading  and block background.


how to display a progress bar loading.... in div after Submit button click??


plsssssss tell me,it's very urgent.

Many Thanks in Advance.

Creating TreeView with loading image


I have created one treeView which is loading node dynamically (populateondemand ). its working perfectly fine. But I want to show loading when its populating node from client view. 

Note : - Only on click of image of the Tree view should display loading ..

Please give some code example.

Loading image


Hi to all ,

You all know the firefox loading circle in the tab when the page does a postback  it activateds

how can i create my own one when my webpage does a postback

Speed up Image loading from a thread


HI all,

I am facing a sluggish update on my Image control. I am using MVVM and the binding update to the Image control is pretty slow. Is there any way I can speed this process up?

I have a background thread that sends me a jpg image buffer every 100 ms. I then create an ImageSource and set that to my binding property. Other datas from the background thread seems to be up to par except for the image. Does anyone have any idea on how to improve this?

Loading rtf with image gives "Unrecognized structure in data format 'Rich Text Format'.\r\nParamet


I'm trying to load this rtf into a RichTextBox:

{\rtf1\ansi\ansicpg1252\uc1\htmautsp\deff2{\fonttbl{\f0\fcharset0 Times New Roman;}{\f2\fcharset0 Segoe UI;}}{\colortbl\red0\green0\blue0;\red255\green255\blue255;}\loch\hich\dbch\pard\plain\ltrpar\itap0{\lang1033\fs18\f2\cf0 \cf0\ql{\f2 {\ltrch >> -----------------------------------------------------}{\ltrch \line }{\ltrch >> 19-10-2010 11:22}{\ltrch \line }{\ltrch >> -----------------------------------------------------}{\ltrch \line }\li0\ri0\sa0\sb0\fi0\ql\par}
{\f2 {\ltrch {\*\shppict{\pict\picwgoal1020\pichgoal1035\pngblip

Cancel background image loading for ListBox


The issue I'm having is that I have a ListBox with an image in its DataTemplate, and before I can change the list it insists on downloading all the images from the last selection first.  The ListBox WPF code is as follows:




        <ListBox Height="329" HorizontalAlignment="Left" Margin="594,167,0,0" 
<span style="white-space:pre">		</span>Name="listMyList" VerticalAlignment="Top" Width="294" Background="Black">




Show wait form while loading another heavy form


Dear All,

I have a situation in my project that is a small and nice popup with loading animated gif should show while loading heavy forms in the application. For that to implement I have used threading concept. I am opening loading splash form in a separate thread and ending it when the main thread notifies that its task is completed. Every thing is working fine but my problem is when the user clicks on the application's forms while splash screen is doing its business the application is hanging.

Please help me on this.The code is as follows

class PleaseWait : IDisposable
        private FrmSplashWait mSplash;
        private Point mLocation;
        private string ttlTxt;

        public PleaseWait(Point location,string ttl)
            mLocation = location;
            ttlTxt = ttl;
            Thread popupthread= new Thread(new ThreadStart(workerThread));

iframe Loading Image show problem


i am  loading a ifrmae when we click a button .i am require a loadimage.show when i frame laoding time and disapper when i frame loaded

Image loading with AJAX


Hi everyone. I have not done any web development of note for a few years now, and I've been given a project to do.  I am considering using ASP.NET MVC, and jQuery to give me some AJAX functionality.  I will have an image on my main page, and on top of that, I will want to show images that are going to be PNGs with transparency.  I am expecting I can do that with a lightbox.  My main question is, these images are big.  I can't preload them all, but what I would like is, when a user selects an image to load, they get a loading icon, then when the image is loaded, they get some sort of transition that causes the image to appear nicely.  I see some stuff online that will help with that, except that it doesn't appear clear to me that anything I am seeing is able to show a wait icon, and start the animation when the image itself is actually loaded.  Any help is greatly appreciated.



center a portrait or landscape image in a square


I'm horrible at math, or the formula simply eludes me.I need to replace a program I bought years ago that resized my photos, so I'm starting from scratch with this, that mimicks the program I was using.

I'm just trying to center a landscape or portrait image in a square, but coming up with the correct X or Y against the canvas size is throwing me off. I'll sleep on it for tonight and try again tommorrow. The image quality is fine.

Here's what I have, any code modifications would be appreciated


Imports System.IO
Imports System.Drawing

Public Class Resize_File
Public Padding As Boolean
Public fileType As _FileType
Public Orientation As _Orientation
Public JPGQuality As Integer

Public Interpolation As Drawing.Drawing2D.InterpolationMode
Public SmoothingMode As Drawing.Drawing2D.SmoothingMode

Private sourceFile As Bitmap
Private convertedFile As Bitmap
Private newGraphic As Graphics
Private sourceType As String
Private convertedType As String
Public Enum _Orientation
Portrait = 0
Landscape = 1
End Enum
Public Enum _FileType
BMP = 0
GIF = 1
JPEG = 2
PNG = 3
End Enum

Report Viewer Loading image


How can I disable the loading message that appears in the report viewer when a report is showed ?


The goal is to hide it, because everytime that a report is refreshed this imagem (loading) is always presented in the .net page.


Many tanks

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend