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

Top 5 Contributors of the Month
Post New Web Links


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

Hi i have a UpdateProgress with a Label control, i also have a repeater inside the update panel, in the RepeaterCommandEventArgs i need to update the Label with info about the process that is running.

lblProcessMessage.Text = "Process started";
lblProcessMessage.Text = "Process running";
lblProcessMessage.Text = "Process complete";

etc this will be alot more detailed.

The problem i have is lblProcessMessage comes up with a object ref error, if i move the Label outside the UpdateProgress it works fine. so how can i reference a Label that is inside the UpdateProgress?

View Complete Post

More Related Resource Links

Trouble with UpdateProgress showing...


Recently I converted a project to VS.NET2010 and ASP.NET 4.0 (not convinced this is the problem, but regardless this is when the problem began) and now I am having an issue with an AJAX UpdateProgress showing. Here is the abrriviated code:

   <asp:UpdatePanel ID="UpdatePanelPostPageLoad" runat="server">
         <asp:Timer ID="tmrPostPageLoad" Enabled="false" Interval="100" OnTick="PostPageLoad_LoadData"
         <asp:Timer ID="tmrPostPageLoadPt2" Enabled="false" Interval="1" OnTick="PostPageLoad_LoadDataPt2"
         <%--Placing the UpdateProgress inside the UpdatePanel targeted--%>
         <asp:UpdateProgress ID="UpdateProgressPostPageLoad" runat="server" DisplayAfter="0" AssociatedUpdatePanelID="UpdatePanelPostPageLoad">
                       Updating blah blah....


UpdateProgress with a dummy updatepanel not working


I have a Submit button and some functionality like updating DB and fetching next page in the button click event. This process takes a long time and I want to display a message saying "Progress...." right after clicking the botton. I want to do the same in 20 other pages. So, best way to do it wd be to put the modalpopup MPE or an Updateprogress in a usercontrol or in master page. I first tried putting both of these on the page itself to test and see and neither worked.

I tried using Update progress control with a dummy updatepanel and giving the Submit button as Asyntrigger to the dummy updatepanel. I have also tried using MPE but it didnt work either. Below is an example of what i did..

<asp:UpdatePanel ID="UpdatePanel1" runat=server><contenttemplate><triggers><asyntrigger ID= "Submit"> /> /> />

<asp:updateprogress ID="Progress1" unat=server AssociatedUpdatePanelID="UpdatePanel1"><Progresstemplate>Progress.... />/>

<asp:button ID= "Submit" runat=server >

I have nothing for updateprogress in code behind. Am i missing or doing somethign wrong here? Any help would be appreciated.

UpdatePanel - UpdateProgress only displays on initial postback



I'm having a somewhat odd issue, I'll do my best to explain it.

In a nutshell I have an UpdatePanel with an UpdateProgress item, first postback checks for warnings, if there are any they will be be displayed to the user as a JavaScript 'confirm' box. If the user clicks OK the next postback occurs to commit the change.

The UpdateProgress loading notification appears on the first postback but not on the second, even though both of them function correctly.  The buttons that trigger both postbacks are async postback triggers in the update panel, and both are inside the ContentTemplate.

It's not a huge problem, but it causes some confusion, has anybody ever seen this issue before?


ajax-updateprogress not working in IE-7,8

Im trying to show animated gif file, a small in updateprogress one when aspx page is requesting server.... its working fine in firefox, chrome, but couldnt able to workit out in IE-7, 8. Any ideas? ------------------------------------------------------------------------------------------------------------------------------------------ CODE: <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1"><ProgressTemplate>        <div style="position:absolute; left: 100px;top:10px">           <img src="Images\indicator.gif" alt = ""/>            Contacting server.....       </div></ProgressTemplate></asp:UpdateProgress>---------------------------------------------------------------------------------------------------------------------------------------

Alert doenst show, using UpdateProgress

Hi! I Have a UpdateProgress in my page. I have a button that save and show a alert message if a condition is true.   The problem is that If I use the UpdatePanel+UpdateProgress my alert does not show, if I remove the UpdatePanel+UpdateProgress from my page, the alert is display! Thanks in advance, Regards   ... <asp:Content>   <asp:UpdatePanel runat="server" id="UPanel">             <ContentTemplate> .... <asp:View ID="View1" runat="server">                                                             <asp:UpdateProgress runat="server" id="PageUpdateProgress">                <ProgressTemplate>                 <div id="Layer1" style="position:absolute; z-index:1; left: 50%;top: 50%; background:Bacground-color=grey; width:auto">   

UpdateProgress full screen

Hi, Is it possible to display the "UpdateProgress" in full screen?  Thank.

Updateprogress - possible to only cover the updatepanel posting back?


Anyone knows how to do this? I have three distinct updatepanels on my page, and they're all unrelated. If possible, I would like the user to be able to interact with the other updatepanels while one is refreshing, or at least show which one is refreshing by only covering this with a div+animated gif.


Trigger UpdateProgress by clicking on HTML link


I have a UpdateProgress that trigger fine when I click on stuff inside my UpdatePanel.  However I have some regular HTML link ("<a href>") outside of the panel.  How can I reuse the UpdateProgress so when I click on those link, it will show my loading screen?

Having multiple UpdateProgress controls working


I have an application that is using TabContainers and TabPanels. Within each TabPanel I have a DropDownList and a GridView. The GridView is filled on "SelectedIndexChanged" event.

I have managed to get UpdatePanel and UpdateProgress working for one on the instances but I do not seem to have luck implementing additional UpdateProgress controls for the rest on the application.

I have tried to use "AssociatedUpdatePanelId" but read that external trigger will not work. I've also tried to assign each UpdateProgress value of UpdatePanel in code behind (

UpdateProgress1.AssociatedUpdatePanelID = UpdatePanel1.UniqueID)

 , not working for me either:

I have created a Java SCript that hides GridView when UpdateProgress is being shown (works fine too)

This is what I have (and working):



<script type="text/javascript">
      window.onload = function() {
          var prm = Sys.WebForms.PageRequestManager.getInstance();
          if (prm != null) {
              prm.add_beginRequest(function(sender, e) {
                  var gridView = document.getElementById("<%=GridView2.ClientID %>");
                  if (gridVi

UpdateProgress with a Response.Redirect


I have an UpdateProgress control to activate on a postback of a LinkButton control in UpdatePanel.  The LinkButton_click event is performing a Response.Redirect to pull up a Downloading.   The Download comes up and the UpdateProgress bar is spinning on the page with the button.  Either cancel downloading the UpdateProgress image is still there spinning. 

1- How can I make the UpdateProgress bar to finish and go away?

2- How can Freez page while spinning loding?

My code is


 protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
        if (e.CommandName == "Downloads")
            int index = int.Parse(e.CommandArgument.ToString()); 
            GridViewRow  selectedRow = GridView1.Rows[index];
            string cid = selectedRow.Cells[1].Text;


public void DownloadFile()
        string directoryString = Session.SessionID;
         DirectoryInfo folder = Directory.CreateDirectory(directoryString);
        foreach (FileInfo file in folder.GetFiles())
        { file.Delete(); }

        string ss = GridView2.Rows[0].Cells[1].Text;
        string s = GridView2.Rows[0].Cells[2].Text;
        string filename_path = &qu

ModalPopupExtender in UpdateProgress Panel



Does anyone know how to get a modalpopup to appear in a updateprogress panel.

I have a page with a list of products, when the user clicks to add a product to cart  I want the modalpopup to appear for as long as the progress takes to addd the item ( to stop the user going to the cart which may still be empty)

I am using a master pages and I have the updatePanel inside a user control, Im trying something along these lines ( as well as a 100 different combinations to get this to work) but cant get it done:

<asp:UpdateProgress ID="upProgress1" runat="server" AssociatedUpdatePanelID="upProductGrid">
                <div id="pnlThink21" runat="server">                        
                    <asp:Image ID="Image2" runat="server" ImageUrl="~/i/loader4.gif" />

UpdateProgress render inline option?


UpdateProgress always seems to render the contents of <ProgressTemplate> on a new line.  Any simple way to have that render inline where it is placed?

UpdateProgress message should change on different cells clicked in a gridview


I have a gridview with 7 columns. I have linkbuttons in almost all the columns. This gridview is in a updatePanel and updateprogress control is there on the page. When I click on the first column(linkbutton) it should show message in updateprogres template and for all other click, it should not show that message......like udpateprogress should not be visisble. I tried cetting

Updateprogress.visible = false in rowcommandevent of gridview but it is not working.

Any ideas please???




TabContainer & UpdateProgress Controls Won't Play Together :(


  I've created my first Tab control (yay me!), and everything has gone really well up until I tried to incorporate a UpdateProgress control into it.  Basically, my container contains three tabs, each with a seperate report.  Each report takes 5-10 seconds to load, so I thought it would be nice to flash up a "Loading Please Wait" logo to let them know it's being processed.  Everything is compiling cleanly; however, when I click on a tab nothing happens.  The reports loads as they always have, but the UpdateProgress control never kicks in with it's loading message. 

I've been researching for the past day to the point that my brain now hurts.  Different things that I have/am trying:

  1. My entire tabcontainer is in an UpdatePanel.  I have previously also tried putting the individual tab panels in seperate UpdatePanels, but this did nothing.
  2. I've tried both directly referencing my UpdatePanel and using no references in the UpdateProgress control.  Neither changed anything.
  3. I've created a button to create an UpdatePanel postback.  I've moved the button all over the place, inside the panel, outside the panel but referencing it via trigger.
  4. I've tried using the asynchronous triggers in various ways.

How do hand code UpdatePanel and UpdateProgress


I'm creating a mobile adapter and need to enclose everything inside an update panel and I need to hand code adding the controls to the page. I also need to have an updateprogress control

I've got a vague idea on the update progress, since it doesn't have a contenttemplate - - but not the rest

anyone know how to do this?

Specificing where the UpdateProgress image is displayed.



I am displaying a few images in a formview. I want the UpdateProgress image to be displayed in the Image1 rather than below the FormView1, when the next photo is loading.

Below is the code for this page:

<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="photo_view2.aspx.vb" Inherits="Default2" title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<asp:Content ID="Content2" ContentPlaceHolderID="Heading" Runat="Server">
<asp:Content ID="Content3" ContentPlaceHolderID="mainBody" Runat="Server">
    &nbsp;<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:fpaConnectionString %>"
        SelectCommand="SELECT [photo_id], [photo_title], [photo_file_name] FROM [fpa_photo] WHERE ([photo_album_id_FK] = @photo_album_id_FK)">

UpdateProgress is not displayed in the middle of the GridView first time



I am trying to implement UpdateProgress on the GridView. I want to show the Progress image in the center of the Gridview. To accomplish this, I am using a suggestion mentioned in ASP.Net site. I added onUpdate javascript function that gets the corrdinates of the grid to supposedly show the progress control in the middle. It does show in the middle of the Grid except for the first time. First time when I click on the grid (pagination/sort), the progrss control is displayed center left edge of the grid. Not sure WHY?

Here is the code that I used.

<head id="head" runat="server">
    <title>Google Analyitics Style Progress</title>
    <script type="text/javascript" language="javascript">
    function onUpdating(){
        // get the update progress div
        var updateProgressDiv = $get('updateProgressDiv'); 

        //  get the gridview element        
        var gridView = $get('<%= this.gvCustomers.ClientID %>');
        // make it visible
        updateProgressDiv.style.display = '';        
        // get the bounds of both the gridview and the progress div
        var gridViewBounds = Sys.UI.DomElement.getBounds(gridView);
        var updateProgressDivBounds = Sys.UI.DomElement.getBounds(updateProgr
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