Update panel and update progress

Hello everyone,

I am having a problem with an update progress which is in an update panel. With an AsyncPostBack it gives an error with:

workbook.SaveAs("Excel.xls", ExcelSaveType.SaveAsXLS, Response, ExcelDownloadType.PromptDialog)

in the code behind; however if I use <asp:PostBackTrigger> it works ... But when I use PostBackTrigger, it doesn't display the update progress. Does anyone happen to know why?

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Excel.aspx.vb" Inherits="_Excel" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title>Webpage to file converter</title>
        <form id="Web1" runat="server">
            <asp:ScriptManager ID="ScriptManager1" runat="server" AsyncPostBackTimeout="600"></asp:ScriptManager>
            <table border="0" style="left: 5%; Top: 26px; Position: absolute; width: 90%">
                    <td><asp:TextBox ID="Text1"  tabindex="1"  runat="server" Height="20px" Width="97%"></asp:TextBox></td>
            <table border="0" style="left: 25%; top: 60%; position: absolute; width: 50%">
                    <td align="center" style="height: 55px">
                        <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1" DisplayAfter="0">
                                <div class="progress">
                                    <img src="images/indicator.gif" alt=""/> 
                                    <br />
                                    Generating Excel File: Please Wait...
                <tr align="center" >
                        <asp:UpdatePanel ID="UpdatePanel1" runat="server" >
                                <asp:AsyncPostBackTrigger ControlID="btnSaveXLS" />
                                <asp:Button ID="btnSaveXLS" runat="server" Text="Save as Excel" Height="26px" Width="94px" />
                <tr align="center">
                    <td colspan="1"><input type="reset" value="Reset" tabindex="16" style="height: 26px" /></td>
6/5/2007 11:17:50 PM
asp.net.ajax_control_toolkit 17816 articles. 1 followers. Follow

1 Replies

Similar Articles

[PageSpeed] 14


The UpdateProgress only shows when there is a asyn-postback. So you can't use a normal postback.

I guess that when you use the first method, a "unable to parse the response" error is occurred. That's because the generated xls file is saved to the response, and the format of it can't be parsed by the client request manager.

May be you can try this:

1. Add the button as an asyn-trigger

2. Generate the file on the server

3. Save the file in a temp folder or in memory(in Session for example)

4. Add a endRequest event handler in the page, in which open a new window

5. Download the new file in the new window


Hope this helps. 

6/11/2007 5:04:46 AM

Similar Artilces:

updates, updates, updates, NO MORE!
Name: Andreas Email: unbekanntatjokerdotms Product: Firefox Summary: updates, updates, updates, NO MORE! Comments: Hi ! if you want to develop a fine webbrowser, maybe you nee a new management. To release a new buggy version every two weeks is not very professional. Test your software before the release and let the user download a stable browser. this update-orgy since 2.0.0 used me to use Opera instead of FF. We haved use FF in our Company, but we can't deploy a new version every week to +200 Windows-clients, so in our company we've decided to return to IE, ...

Updates, updates and more updates
Name: pirhan Email: pirhan_chanathotmaildotcom Product: Firefox Summary: Updates, updates and more updates Comments: Hello, Normally I use Safari, but my iBook is out of commission for a while. So, I am forced to use a PC to which I would much rather use Firefox than Internet Exploder. However, as much I enjoy not using a Microsoft product, and use a product that works decently, I am severely annoyed about the constant updates I am put through. In the last two days, I had to wait for Firefox to install updates before I could browse and now, I'm alerted that there'...

Updates Updates Updates
I was a big fan of Firefox.. Now, I don't even like to use it. Seems like every time I start it up I have to update some addin OR the browser itself. And unfortunately the update nag messages are always presented when I start a browsing session. I find this annoying because, typically, when I open a web browser all I want to do is go to a web page. Not update the browser. I can agree that staying current with the latest version could give the best, fastest, safest web experience. But that point becomes mute when I start off every other browsing session with a new update. And mos...

updates, updates, updates
Holy Crap, Batman! You'd think I was running Windows XP and it's patch Tuesday. So far this week - new kernel (, 2 new browsers (Opera 9.63 and Firefox 3.05) and a new plugin (Flash I'm about ready to try one od the BSD's! vince wrote: > Holy Crap, Batman! You'd think I was running Windows XP and it's patch > Tuesday. > > So far this week - new kernel (, 2 new browsers (Opera 9.63 > and Firefox 3.05) and a new plugin (Flash I'm about ready > to try one od the BSD's! I take ...

updates, updates, updates
Name: hans jensen Email: hansjensen44_athotmaildotcom Product: Firefox Summary: updates, updates, updates Comments: why is it everytime i go online firefox has new updates, 3 -4 times every day, its never ending..........whats all the problems??? please email me and let me know, ty,.........Hans Jensen Browser Details: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20070219 Firefox/ ...

Ajax Update Panel and Update Progress
Hello Everyone,  Its been long time since i have visited this forum, but i have a query regarding the update panel. I have a strange and weard situtaion here, which is only occuring on the web hosting server and it works absolutely fine on VSS (Local) server. The situation is i have an application where Web User Controls are placed on the web page at the design time, they are made Visible true/false at the run time. The Page where controls are placed contains the update panel and the User controls Indvidually too contains the Update Panel. These update Panel are associated with u...

Hiding update panel while update in progress
Dear All,  I want to hide update panel while updating is in progress, I want to notice that my update panel is in content page. If any possiblity of displaying modal loading progress dialogue box while updating it is highly useful. example - Like display appear on clicking "Select Tag button" in "write new post" in our forum http://forums.asp.net/ Thanks in Advance        Hi,  Try put this into your updatepanel <asp:UpdateProgress ID="UpdateProgress1" runat="server"> <ProgressTemplate>...

update progress panel, not showning when updating
 hi all,maybe the code before will explain better than i can, and this panel is called by a modalpopup<asp:Panel ID="pn_upload" runat="server" CssClass="modalPopup" Width="330px" Style="display: none"> <cc1:TabContainer ID="upload_container" runat="server" ActiveTabIndex="0"> <cc1:TabPanel ID="upload_tab" runat="server" HeaderText="File Upload"> <HeaderTemplate> File Upload </HeaderTemp...

how to add update progress over the update panel
hi , how do i add the update progress show over the updatepanel. not as a page model dialog.. but just over the associated update panel.thanks in advance http://www.Aneef.net Use the AssociatedUpdatePanelD property of UpdateProgress. UpdateProgress will only be visible when updatepanel takes some time to update itself otherwise you will not b able to see UpdateProgress...Best Regards,Waqas You associate an UpdateProgress control with an UpdatePanel control by setting the AssociatedUpdatePanelID property of the UpdateProgress control. When a postback event originates from an Upd...

Having an issue using JavaScript to update an Update Panel with Multiple Update Panels
I am using JavaScript via the '__doPostBack' command passing in the 'ClientID' of my UpdatePanel to do a partial page postback.  This fires the UpdatePanel_PreRender event (or any other UpdatePanel event) where I run server side code. The actual partial page postback is working as expected, but since partial postbacks follow the full page lifecycle, ALL of my UpdatePanel events are firing which I do not want.  What ends up happening is the code in the other UpdatePanel '_PreRender' event is being called too which I do not want to occur. Is there a way aroun...

Update Panel and Update Progress control problem
In my page, I implement Update Panel and Update Progress control of AJAX. The page will query the data from database everytime the user click a button. In some case, the user may click that button more that one time even Update Progress still display. This make database overloaded.  Anyone have idea to protect this situation.... hi, This problem can be solved by disabling the button on its click event and after binding the data to server control means getting your data from database again enable the button, it can be helpful to u. otherwise u can also use ModalPopup Extender fo...

Update Progress on MasterPage without Update Panel
Hi,I have Update Panel on my ContentPages (not in all content pages)  and I placed an UpdateProgress on my MasterPage to avoid redoing it in all the content pages.But I get a "Sys.ArgumentUndefiendException: Value cannot be undefined. Parameter name: type" error in those pages which donot contain an UpdatePanel.Is the UpdatePanel mandatory for an UpdateProgress?When i debug this it breaks near the below bolded line: Sys.Application.add_init(function() {    $create(Sys.UI._UpdateProgress, {"associatedUpdatePanelId":null,"displayAfter":500,&quo...

Two Update Panels and two update progress
So I have master page with Update Panel (with Calendar) and Update Progress.In child page I have rating control in Update Panel and Update Progress.Now when I vote at rating control both of update progress are calling up - I'm angry cause I don't want to call up update progress from calendar. Anyone can help me?  There is a property in UpdateProgress Control named "AssociatedUpdatePanelID". Set this property of both UpdateProgress controls in Master Page and Child page to thier respective update panels and you are good to go.   Don't forget to click &...

Update panels, update progress and browser support
Hi,When I hit a button that must change some things inside the updatepanel, then only that function is executed. Not the page load stuff. This sounds okay to me.(I did this with IE)When I run the same page in Opera browser then it also runs the page load stuff (this means that the update panel - the Atlas functionality - does not work). I also don't see my update progress icon.Can somebody tell me if this is okay?And what is the browser support of Atlas?And finanly, will there be a new version of Atlas in September?Thanks!Please remember to 'Mark as Answer' if this post answ...

Web resources about - Update panel and update progress - asp.net.ajax_control_toolkit

Emery County Progress - Emery County, Utah
Emery County Progress, Serving Emery County, Utah news since 1900

The Progress
Boro: Paving bid could be good news Friday, June 19, 2015 By Jeff Corcino Staff Writer Clearfield Borough received some potentially good news ...

March of Progress (album) - Wikipedia, the free encyclopedia
March of Progress is the ninth studio album (and sixteenth overall) by progressive metal band Threshold . It is the first studio album on which ...

Afghanistan's grim progress in 2015
Sydney Morning Herald Afghanistan's grim progress in 2015 Sydney Morning Herald Washington: Afghanistan's overall security deteriorated in ...

The robot invasion has begun, but big barriers block progress
... will catapult to 1 in 10 over the next five years, the firm asserts, but it notes that there are some big barriers standing in the way of progress. ...

China accused of blocking progress at COP21
China is being accused of trying to weaken the new global climate accord due to be finalised by Friday, the FT reports.

Saudi women vote for first time: Credible progress?
Women were able to cast ballots and participate as candidates for the first time in Saudi Arabia's municipal elections on Saturday. But critics ...

The Jobs Progress That Women Have Made, And Haven't
Although added jobs and lowering unemployment should be generally good news, they're more directed toward whites and away from blacks and Latinos. ...

Thomas Midgley, GM, and the Dark Side of Progress
Scientific improvements that create industries and save millions of lives often come at a price that isn’t revealed until much later. Leaded ...

Resources last updated: 12/18/2015 9:09:38 AM