Re: Setting CancelButtonStyle has no effect

  •  02-05-2016, 2:49 PM

    Re: Setting CancelButtonStyle has no effect

    Hi,

     

    with this requirement, I suggest you use the custom cancel button, like the example below. so you can apply the style for the custom button directly.

     

    1. <%@ Page Language="c#" %>  
    2.   
    3. <%@ Register Namespace="CuteWebUI" Assembly="CuteWebUI.AjaxUploader" TagPrefix="CuteWebUI" %>  
    4. <html>  
    5. <head>  
    6.     <style>  
    7.         .redColor {  
    8.             background-color: blue;  
    9.         }  
    10.     </style>  
    11. </head>  
    12. <body>  
    13.     <form id="Form1" method="post" runat="server">  
    14.         <CuteWebUI:UploadAttachments ID="uploader1" runat="server"  
    15.             ProgressCtrlID="progress" CancelButtonID="btnCancel">  
    16.         </CuteWebUI:UploadAttachments>  
    17.         <asp:Button ID="btnCancel" runat="server" Text="my cancel button" CssClass="redColor" />  
    18.         <div id="progress">  
    19.             Progress bar follows  
    20.         </div>  
    21.     </form>  
    22. </body>  
    23. </html>  
     

    Regards,

     

    Ken 

View Complete Thread