There are two simple steps to create a custom upload button:
- Create a server control which will be used as custom upload button.
- Use the InsertButtonID property to specify the ID of the control that will be used as the upload button.
Example 1:
// Create a Button control used as upload button
<CuteWebUI:Uploader ID="Uploader1" runat="server" InsertButtonID="Button1"></CuteWebUI:Uploader>
<asp:Button ID="Button1" runat="server" Text="CustomButton"/>
Example 2:
// Create an Image control used as upload button
<CuteWebUI:Uploader ID="Uploader1" runat="server" InsertButtonID="Image1"></CuteWebUI:Uploader>
<asp:Image ImageUrl="~/Uploads/myImg.gif" runat="server" ID="Image1" />
© 2003-2024 Richscripts.com. All rights reserved.