Welcome Guest Search | Active Topics | Sign In | Register

Client reference to progressbar and cancel button Options
Gaurav Solanki
Posted: Tuesday, March 3, 2009 11:54:33 AM
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
eo_support
Posted: Tuesday, March 3, 2009 12:44:58 PM
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.