?
Solved

updatepanel

Posted on 2009-04-13
5
Medium Priority
?
346 Views
Last Modified: 2012-05-06
i have a page that is written in asp.net. Every time when the user refresh the screen or choose different dataset, i want to basically have a loading image in the center of the screen pops up. and during that loading time, the user can't do anything else. the code i have now only display the image on top of of the page . so how do i get it to be in the center so the user can know that the page is reloading with new data. thank you in advance.
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>                                              
            <asp:UpdateProgress ID="UpdateProgress1" runat="server">
                <ProgressTemplate>
                    &nbsp;<img src="images/LoadingProgressBar.gif" alt="Loading Image" />
                </ProgressTemplate>
            </asp:UpdateProgress>
            <asp:Table ID="Table1" runat="server" Width="100%" BorderColor="red" CellPadding="0" CellSpacing="5" BackColor="white">
                <asp:TableRow>                                                          
                     <asp:TableCell VerticalAlign="top" ID="radstrip2" ColumnSpan="2" Width="100%" BackColor="white" Height="100%" >                
                        <asp:DropDownList ID="ddlStores" AutoPostBack="true" runat="server" Visible="false"></asp:DropDownList>                                        
                    </asp:TableCell>
                </asp:TableRow>                                   
            </asp:Table>                   
        </ContentTemplate>            
    </asp:UpdatePanel>

Open in new window

0
Comment
Question by:StewSupport
[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
  • 2
5 Comments
 
LVL 20

Expert Comment

by:informaniac
ID: 24131451
<img src="images/LoadingProgressBar.gif" alt="Loading Image" style="top:150px;" />
0
 

Author Comment

by:StewSupport
ID: 24131506
that does nothing.
0
 
LVL 16

Accepted Solution

by:
burakiewicz earned 2000 total points
ID: 24131612
try this as your updateprogress. place this outside of your update panel
<asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
 
<ProgressTemplate>
                <asp:Panel ID="pnlLoading" runat="server" Width="100%" Height="100%" CssClass="popupBg" style=" position:absolute; top:0px; left:0px; text-align:center; vertical-align:middle;">
                    <table Width="100%" Height="100%" style="border:1px solid black; padding:5px 5px 5px 5px;">
                        <tr>
                            <td>
                                <table  style="height:200px; width:200px; background-color:White;">
                                    <tr>
                                        <td>
                                            <img src="images/LoadingProgressBar.gif" alt="Loading Image" />
                                        </td>
                                    </tr>
                                </table >
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </ProgressTemplate>
</asp:UpdateProgress 

Open in new window

0
 
LVL 16

Assisted Solution

by:burakiewicz
burakiewicz earned 2000 total points
ID: 24131619
you will also need to add this style for the transparent background to work
<style type="text/css">
    .popupBg
       {
               background-color:Gray;
               filter:alpha(opacity=70);      
               opacity:0.7;
        }
    </style>
0
 

Author Closing Comment

by:StewSupport
ID: 31569595
you are the man.
0

Featured Post

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

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…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
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…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

777 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