AJAX Uploader

Create a custom cancel button

There are two simple steps to create a custom cancel button:

  1. Create a server control which will be used as custom cancel button.
  2. Use the CancelButtonID property to specify the ID of the control that will be used as the cancel button.

Example 1:

// Create a Button control used as cancel button

  <CuteWebUI:Uploader ID="Uploader1" runat="server" CancelButtonID="Button1"></CuteWebUI:Uploader>

  <asp:Button ID="Button1" runat="server" Text="CustomButton"/>




Example 2:

// Create an Image control used as cancel button

  <CuteWebUI:Uploader ID="Uploader1" runat="server" CancelButtonID="Image1"></CuteWebUI:Uploader>

  <asp:Image ImageUrl="~/Uploads/myImg.gif" runat="server" ID="Image1" />