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
</HeaderTemplate>
<ContentTemplate>
Select the file to upload
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:FileUpload ID="single_FileUpload" runat="server" />
<asp:Button ID="btn_single_upload" runat="server" Text="Upload" />
</ContentTemplate>
<Triggers>
<asp:PostBackTrigger ControlID="btn_single_upload" />
</Triggers>
</asp:UpdatePanel>
<br />
<asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
<ProgressTemplate>
<div style="text-align: center">
<img src="gif/25-1.gif" />Please Wait...</div>
</ProgressTemplate>
</asp:UpdateProgress>
</ContentTemplate>
</cc1:TabPanel>
</cc1:TabContainer>
<table style="width: 100%; text-align: right;">
<tr>
<td>
<asp:Button ID="btn_cancel" runat="server" Text="Cancel" />
</td>
</tr>
</table>
</asp:Panel>
  basically, the code can upload a file to my DB, but does not show the updateprogress... any ideas?
0
lindows
12/5/2008 8:00:52 AM
asp.net.ajax_control_toolkit 17816 articles. 1 followers. Follow

4 Replies
879 Views

Similar Articles

[PageSpeed] 4

 <Triggers>

  <asp:PostBackTrigger ControlID="btn_single_upload" />
</Triggers>
it should be asynchronous post-back trigger and define event name as well 
check my example here 
http://forums.asp.net/p/1354957/2781556.aspx 
 

Don't say thanks rather mark my reply as "Answer" if it helps you ,Doing so u'll get points too
amiT jaiN

C#.NET Articles
0
amit
12/5/2008 9:55:03 AM
  so now its like this,
 <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                        <ContentTemplate>
                            <asp:FileUpload ID="single_FileUpload" runat="server" />
                            <asp:Button ID="btn_single_upload" runat="server" Text="Upload" />
                        </ContentTemplate>
                        <Triggers>
                            <asp:AsyncPostBackTrigger ControlID="btn_single_upload" EventName="Click" />
                        </Triggers>
                    </asp:UpdatePanel>
 but now when i click upload button, nothing is being uploaded

0
lindows
12/5/2008 10:37:48 AM

 Read this article, it will help u

http://geekswithblogs.net/rashid/archive/2007/08/01/Create-An-Ajax-Style-File-Upload.aspx


Don't say thanks rather mark my reply as "Answer" if it helps you ,Doing so u'll get points too
amiT jaiN

C#.NET Articles
0
amit
12/5/2008 12:09:01 PM
 thanks for the reference, i couldn't get it working on firefox 3.0 only IE, but i did a work around

i removed the update progress panel so it looks like this

                    <asp:UpdatePanel ID="up_uploadfile" runat="server" UpdateMode="Conditional">
                        <ContentTemplate>
                            <asp:FileUpload ID="single_FileUpload" runat="server" />
                            <asp:Button ID="btn_single_upload" runat="server" Text="Upload" OnClientClick="UploadProgress();" />
                            <br />
                            <div style="display: none; text-align: center" id="divUploadProgress">
                                <img src="gif/25-1.gif" />Uploading...
                            </div>
                        </ContentTemplate>
                        <Triggers>
                            <asp:PostBackTrigger ControlID="btn_single_upload" />
                        </Triggers>
                    </asp:UpdatePanel>
  
    <script type="text/javascript" language="javascript">
        function UploadProgress() {
            _divUploadProgress = document.getElementById('divUploadProgress');
            _divUploadProgress.style.display = '';
        }
    </script>
  
    Protected Sub btn_single_upload_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btn_single_upload.Click

        If single_FileUpload.HasFile = True Then
            upload_file()
            System.Threading.Thread.Sleep(3000)
        Else
            System.Threading.Thread.Sleep(3000)
            Exit Sub
        End If

    End Sub
 
0
lindows
12/6/2008 6:04:16 AM
Reply:

Similar Artilces:

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.6.27.10), 2 new browsers (Opera 9.63 and Firefox 3.05) and a new plugin (Flash 10.0.156.3). 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.6.27.10), 2 new browsers (Opera 9.63 > and Firefox 3.05) and a new plugin (Flash 10.0.156.3). I'm about ready > to try one od the BSD's! I take ...

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, 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:1.8.1.2) Gecko/20070219 Firefox/2.0.0.2 ...

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

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

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 progress panel, not showning when updating - 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 ...

Progress (spacecraft) - Wikipedia, the free encyclopedia
The Progress ( Russian : Прогресс ) is a Russian expendable freighter spacecraft. The spacecraft is an unmanned resupply spacecraft during its ...

WA bushfires: Esperance bushfire warning downgraded as firefighters make progress
A deadly bushfire burning in areas north of Esperance on WA's south coast is downgraded back to a watch and act.

Put your nose to your phone in the puzzler Progress to 100
If you are looking for a brand new puzzle game concept, then Progress to 100 is it. This innovative game will put you closer to your iPhone than ...

2017 Lincoln MKZ shows the new face of progress
Filed under: Design/Style , 2015 LA Auto Show , Lincoln , Sedan , Luxury Lincoln makes a plethora of upgrades to the refreshed 2017 MKZ including ...

Progress report on Jeanne Gang's notable projects
The current projects of Chicago architect Jeanne Gang span the gamut from skyscrapers to cultural centers to museums. Here is a Gang sampler. ...

Pfizer-Allergan talks progress: Sources
Deal talks between Pfizer and Allergan have progressed and an agreement may come as early as next week, sources told CNBC.

Rainbow Six Siege beta progress won't carry forward
Plus, Ubisoft confirms people who were in the closed beta will get to play 24 hours early.

Resources last updated: 11/30/2015 1:35:49 PM