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

  •  09-02-2009, 1:39 PM

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

    Copy and paste this. Scroll to the very bottom of the page. Click on the button "show modal",and the tabs will appear. Click on the upload button now and you will see the bad block message. We can see that the green mask is right above at the top of the screen. If we scroll up and try again it works.  Let me know if you want screen shots.
    We use IE7. Thanks.
    <%@ Page Language="vb" AutoEventWireup="false" Codebehind="TestBed3.aspx.vb" Inherits="TotalRequest.TestBed3" %>

    <%@ Register Assembly="CuteWebUI.AjaxUploader" Namespace="CuteWebUI" TagPrefix="CuteWebUI" %>
    <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <title>
            <%#Page.Title%>
        </title>
        <link href="http://cutesoft.net/style/appstyle.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
        <form id="form1" runat="server">
            <table cellpadding="0" cellspacing="0" style="height: 120%">
                <tr>
                    <td align="left" valign="top">
                    </td>
                    <td align="right" valign="top">
                        <table cellpadding="0" cellspacing="0">
                            <tr>
                                <td align="right">
                                </td>
                            </tr>
                            <tr>
                                <td style="vertical-align: middle; text-align: right; height: 28px;">
                                    some text
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
            <ajax:ScriptManager ID="smMaster" runat="server" AllowCustomErrorsRedirect="True" />
            <asp:Button runat="server" ID="btnShow" Text="Show ModalPopupExtender" />
            <asp:Button ID="button1" runat="server" Text="Postback" />
            <hr />
            <ajaxtoolkit:modalpopupextender runat="server" id="MPE" targetcontrolid="btnShow"
                popupcontrolid="TabContainer1"  />
            <ajaxtoolkit:tabcontainer id="TabContainer1" runat="server" width="400px" height="320px"> 
                <ajaxToolkit:TabPanel ID="Panel3" runat="server" HeaderText="Panel3"> 
                    <ContentTemplate> 
                        Click on Panel2 and then on Upload  
                    </ContentTemplate> 
                </ajaxToolkit:TabPanel> 
                <ajaxToolkit:TabPanel ID="Panel4" runat="server" HeaderText="Panel4"> 
                    <ContentTemplate> 
                        <hr /> 
                        <div contenteditable="TRUE"> 
                            CONTENTEDITABLE</div> 
                        <hr /> 
                        <CuteWebUI:UploadAttachments runat="server" ID="Uploader1" MultipleFilesUpload="true" InsertText="Upload" 
                            UploadType="Flash"> 
                            <ValidateOption MaxSizeKB="10240" /> 
                        </CuteWebUI:UploadAttachments> 
                        <hr /> 
                        <button onclick="ToggleMask();return false;">Show/Hide Button Mask</button> 
                    </ContentTemplate> 
                </ajaxToolkit:TabPanel> 
            </ajaxtoolkit:tabcontainer>
            <br />
            <br />
        </form>
        <script type="text/javascript">
        var showMask=false;  
        function ToggleMask()  
        {  
            showMask=!showMask;  
        } 
         function CuteWebUI_AjaxUploader_OnMantleButton(button,div)  
        {  
            if(showMask)  
            {  
                //use this line to see the floating flash object  
                div.style.backgroundColor="green";  
                //clear the transparent on IE  
                div.style.filter="";  
            }  
        }  

        </script>
    </body>
    </html>

View Complete Thread