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

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

UpdateProgress with a dummy updatepanel not working

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

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.

View Complete Post

More Related Resource Links

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?


Response.Redirect is not working with UpdatePanel

 Response.Redirect is not working with UpdatePanelafter migrating a web site to ASP.NET version 4.please help urgent

Image upload not working in updatepanel

Hi, in my update panel i need to upload a image.my Fileupload control within update panel.so when i check is it correct format or not in following code then it always take else part. Dim fileUpload1 As FileUpload = CType(Me.FindControl("FileUpload1"), FileUpload)            'Make sure a file has been successfully uploaded            If fileUpload1.PostedFile Is Nothing OrElse String.IsNullOrEmpty(fileUpload1.PostedFile.FileName) OrElse fileUpload1.PostedFile.InputStream Is Nothing Then                Label1.Text = "Please Upload Valid picture file"                Exit Sub            End If            'Make sure we are dealing with a JPG or GIF file            Dim extension As String = System.IO.Path.GetExtension(fileUpload1.PostedFile.FileName).ToLower()            Dim MIMEType As String = Nothing            Select Case exte

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

ReportViewer inside UpdatePanel not working


Has anyone been able to get the ReportViewer to work correctly inside an UpdatePanel?

For me the report renders fine on the initial whole-page refresh, but when I click the next page button the next page renders but doesn't allow me to navigate through the pages anymore. The toolbar says "(blank) of 0" pages and the arrow toolbar buttons for navigating between pages are all disabled.

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.


Working with an external UpdatePanel



I am still working on my simultaneous login. I have managed to have a user be logged in to our site when he logs in on our forum, now I'm working in the other direction.

The login page (.ascx) of the forum is integrated in an UpdatePanel. Is it possible to call upon this Panel from a file that is not directly associated with it (if not, how do I make an association?)? In other words: is it possible to use this UpdatePanel to do the login procedure in the background? The same login procedure that a user would normally do; this means filling in the "username" and "password" field and then sending that data by clicking on the "Login" button.

My file structure is as follows:

  • /MySite/
    • /Forum/
      • login.ascx
      • login.ascx.cs
    • login.aspx
    • login.aspx.cs

So the file /MySite/login.aspx.cs would call the file /MySite/Forum/login.ascx.

Many, many thanks in advance!


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

overflow:auto not working inside updatepanel


Hi all:
I have a div and a css class that gives overflow. but when i add this div inside updatepanel. overflow:auto doesnt work any solution ?
 <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                <div id="mycontent" runat="server">

Radiobuttonlist triggers updatepanel only a few times adn stops working


I have a radiobutton that triggers the updatepanel to display or not..

when the page loads, i can select yes adn it displays, i can select no and it disappears.. i hit yes it reappears.. but after like the 3rd time going back and fourth testing the functionality, it stops displaying all together.

Is there something i need to look at to find out what is going on?

Here is my code on the page and code behind

            <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional" >
            <div id="camDL" runat="server" visible="false">
                  CONTENT GOES HERE
                    <asp:AsyncPostBackTrigger ControlID="rblEnableCamDL" EventName="SelectedIndexChanged" />

        protected void rblEnableCamDL_SelectedIndexChanged(object sender, EventArgs e)
            if (rblEnableCamDL.SelectedValue == "1")
                camDL.Visible = true;
            if (rblEnableCamDL.SelectedValue == &qu

Stored Procedure Metadata failure- Dummy select not working


I have a procedure that involves creation of temp table, inserting data into it and use this data to populate another table variable whose output forms the dataset for the OLE DB Source.

Here is the general outlay of the procedure (just a sample data) -


IF 1=0


Crystal Report Export and Print button not working inside UpdatePanel



Iuse UpdatePanel for my pages, clients requested to view pages without flickering.

So, I put all component in update panel, but after that, export and printing for Crystal Reports stoped to work. If I put report viewer outside of updatepanel its working.

Have anyone this problem? There's some solution for this?

Thanks, Paul

Javascript allert inside AJAX UpdatePanel not working


I am having problems with alert box not popup when I'm using AJAX UpdatePanel. The following is what I have and it's not working.

1    ClientScriptManager csm = Page.ClientScript;
3    if(!csm.IsStartupScriptRegistered(this.GetType(), "winPop"))
4    {
5    	csm.RegisterStartupScript(this.GetType(), "winPop", "alert('Update is successful');", true);
6    }

I have to stress that the reason why it does not work is because I'm using AJAX UpdatePanel. If I turned off the AJAX UpdatePanel then it works perfectly. So does anyone have solution to go around this AJAX UpdatePanel issue?

Response.Redirect not working on an UpdatePanel if redirecting to a ClickOnce application (in some c



I have a strange issue. I am using the AjaxControlToolkit 3.0.30930 (the most recent). I have a very simple page with an UpdatePanel. A button on the UpdatePanel invokes Response.Redirect and passes the URL of a Click Once application on the same server. This works well if I run the website on my local system (Windows 7, IIS 7.5).

If I run the website on a remote system (Windows Server 2008, IIS 7.5, same settings) the redirect simply does not work when invoking the page from remote (using the IP address). Instead a postback is executed. Even if I use the IP address of the webserver to invoke the website locally on the webserver, the redirect does not work. Using http://localhost on the webserver the redirect works well.

I tried another test page with no UpdatePanel: The redirect works well in all scenarios.

I tried out to invoke the ClickOnce application using a link instead of Response.Redirect: The redirect works well in all scenarios, even with an UpdatePanel.

Does anyone have a clue what the problem might be?


Here is the ASPX:


<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TestWithUpdatePanel.aspx.cs" Inherits="TestWithUpdatePanel" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//E

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?

ASP.net buttons not working in UpdatePanel....


Any ideas as to why my 2 buttons aren't working?

<asp:UpdatePanel ID="UpdatePanel1" runat="Server">
      <asp:Timer ID="Timer1" runat="server" Interval="1000"></asp:Timer>
      <asp:Panel ID="Panel1" runat="server" Width="600px" ScrollBars="none" Font-Size="XX-Small">
       <asp:Repeater id="test" runat="server">
         <table width='100%' border='0' cellspacing='0' cellpadding='2' style='table-layout: fixed; overflow: hidden; border-collapse: collapse'> 
         <tr style="border-bottom: 1px solid #CCCCCC; vertical-align: top">

SharePoint PeopleEditor control is not working properly inside UpdatePanel


WSS 3.0

I have a page with UpdatePanel and PeopleEditor control inside it. PeopleEditor control does not restore selected user(s) after post back.
Searching over support forums gave me some answered questions but page with solution http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopmentprerelease/thread/b4756f6b-0940-4c2c-9c09-3d7dd7646fef is not found now.

Where else can I find the solution for this issue?


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