Re: (File dialog has been blocked) while trying to Upload files

  •  09-01-2009, 3:12 AM

    Re: (File dialog has been blocked) while trying to Upload files

    Hi,
    We have tested it and currently do not find problems.
     
    Here is the code we tested:
    1. <%@ Page Language="C#" AutoEventWireup="false" %>  
    2.   
    3. <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>  
    4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
    5. <html xmlns="http://www.w3.org/1999/xhtml">  
    6. <head id="Head1" runat="server">  
    7.     <title></title>  
    8. </head>  
    9. <body>  
    10.     <form id="form1" runat="server">  
    11.        
    12.         <asp:ScriptManager ID="ScriptManager1" runat="Server" />  
    13.            
    14.         <asp:Button runat="server" ID="btnShow" Text="Show ModalPopupExtender" />  
    15.         <asp:Button ID="button1" runat="server" Text="Postback" />  
    16.            
    17.         <hr />  
    18.         <ajaxToolkit:ModalPopupExtender runat="server" ID="MPE" TargetControlID="btnShow"  
    19.             PopupControlID="TabContainer1" />  
    20.                
    21.         <ajaxToolkit:TabContainer ID="TabContainer1" runat="server" Width="400px" Height="320px">  
    22.             <ajaxToolkit:TabPanel ID="Panel1" runat="server" HeaderText="Panel1">  
    23.                 <ContentTemplate>  
    24.                     Click on Panel2 and then on Upload   
    25.                 </ContentTemplate>  
    26.             </ajaxToolkit:TabPanel>  
    27.             <ajaxToolkit:TabPanel ID="Panel2" runat="server" HeaderText="Panel2">  
    28.                 <ContentTemplate>  
    29.                     <hr />  
    30.                     <div contenteditable="TRUE">  
    31.                         CONTENTEDITABLE</div>  
    32.                     <hr />  
    33.                     <CuteWebUI:Uploader runat="server" ID="Uploader1" MultipleFilesUpload="true" InsertText="Upload"  
    34.                         UploadType="Flash">  
    35.                         <ValidateOption MaxSizeKB="10240" />  
    36.                     </CuteWebUI:Uploader>  
    37.                     <hr />  
    38.                     <button onclick="ToggleMask();return false;">Show/Hide Button Mask</button>  
    39.                 </ContentTemplate>  
    40.             </ajaxToolkit:TabPanel>  
    41.         </ajaxToolkit:TabContainer>  
    42.         <br />  
    43.            
    44.     </form>  
    45.   
    46.     <script>  
    47.     var showMask=false;   
    48.     function ToggleMask()   
    49.     {   
    50.         showMask=!showMask;   
    51.     }   
    52.     function CuteWebUI_AjaxUploader_OnMantleButton(button,div)   
    53.     {   
    54.         if(showMask)   
    55.         {   
    56.             //use this line to see the floating flash object   
    57.             div.style.backgroundColor="green";   
    58.             //clear the transparent on IE   
    59.             div.style.filter="";   
    60.         }   
    61.     }   
    62.     </script>  
    63.   
    64. </body>  
    65. </html>  

     

    Can you also post a code which cause the issue ?
     
    Regards,
    Terry
     
View Complete Thread