Rank: Newbie Groups: Member
Joined: 3/2/2009 Posts: 9
|
How do you get reference to progressbar and cancel button inside AJAXUploader control? We want to hide cancel button and progressbar when upload is complete. I've used LayoutTemplate for AJAXUploader. And at what point we should hide cancel button progress bar?
<eo:CallbackPanel runat="server" id="CallbackPanel1" Triggers="{ControlID:AJAXUploader1;Parameter:}"> <eo:AJAXUploader id="AJAXUploader1" runat="server" AutoUpload="true" MaxDataSize="30000" TempFileLocation="~/eo_upload" Width="400px" ClientSideOnProgress="CustomProgressHandler"> <LayoutTemplate> <asp:PlaceHolder ID="InputPlaceHolder" runat="server" /> <asp:PlaceHolder ID="ProgressTextPlaceHolder" runat="server" /> <eo:ProgressBar ID="ProgressBar" runat="server" Height="18px" Width="200px" BorderStyle="Solid" BorderWidth="1px" IndicatorColor="151, 198, 232" ClientSideOnTaskDone="UploadCompleted" /> <asp:Button ID="CancelButton" runat="Server" Text="Cancel" /> </LayoutTemplate> </eo:AJAXUploader> </eo:CallbackPanel>
Thanks, Gaurav
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
The easiest way is not to hide the button itself, but to place the button inside another element (for example, a DIV) and then show/hide that DIV. The container DIV is not a server control so you would just give it an id and reference it by that id.
Thanks!
|