Re: upload works on dev server, not on production server

  •  06-04-2010, 1:18 PM

    Re: upload works on dev server, not on production server

    And here's the full markup of the upload page:
     
    <%@ Page Title="" Language="C#" MasterPageFile="~/Main.master" AutoEventWireup="true" CodeFile="Upload.aspx.cs" Inherits="Viewpoints.admin_ScenarioImport_Upload" %>

    <%@ Register  TagPrefix="CuteWebUI" Namespace="CuteWebUI" Assembly="CuteWebUI.AjaxUploader" %>
    <%@ Register assembly="DevExpress.Web.ASPxEditors.v9.3, Version=9.3.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
    <%@ Import Namespace="System.IO" %>

    <asp:Content ID="Content1" ContentPlaceHolderID="TitlePlaceholder" Runat="Server">
    Upload GPCM (Access) Database
    </asp:Content>
    <asp:Content ID="Content2" ContentPlaceHolderID="HeadingRightPlaceholder" Runat="Server">
        Upload GPCM (Access) Database
    </asp:Content>
    <asp:Content ID="Content3" ContentPlaceHolderID="BodyPlaceholder" Runat="Server">
        <asp:ScriptManager ID="Scriptmanager1" runat="server">
        </asp:ScriptManager>

        <script type="text/javascript">
    function submitbutton_click() {
        var submitbutton = document.getElementById('<%=SubmitButton.ClientID %>');
        var uploadobj = document.getElementById('<%=Uploader1.ClientID %>');
        if (!window.filesuploaded) {
            if (uploadobj.getqueuecount() > 0) {
                uploadobj.startupload();
            }
            else {
                var uploadedcount = parseInt(submitbutton.getAttribute("itemcount")) || 0;
                if (uploadedcount > 0) {
                    return true;
                }
                alert("Please select the GPCM database to upload.");
            }
            return false;
        }
        window.filesuploaded = false;
        return true;
    }

    function CuteWebUI_AjaxUploader_OnPostback() {
        window.filesuploaded = true;
        var submitbutton = document.getElementById('<%=SubmitButton.ClientID %>');
        submitbutton.click();
        return false;
    }
        </script>

                        Enter any textual information about this database:<br />
        <asp:TextBox ID="txtNote"
            runat="server" Rows="5" TextMode="MultiLine" Height="97px" Width="531px"></asp:TextBox>
    <p></p>
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                       
                        <CuteWebUI:UploadAttachments runat="server" ManualStartUpload="true" ID="Uploader1"
                            InsertText="Select GPCM Database (Access MDB or ZIP)" OnFileUploaded="Uploader_FileUploaded"
                            DialogFilter="Access Databases (*.mdb)|*.mdb|Zipped Access Database (*.zip)|*.zip"
                            FileTypeNotSupportMsg="Only MDB and ZIP files may be uploaded." MaxFilesLimit="1"
                            MultipleFilesUpload="False" NumFilesShowCancelAll="0" NumFilesShowQueueUI="0"
                            TempDirectory="~/admin/ScenarioImport/Temp" UploadingMsg="Uploading..."
                            AutoUseSystemTempFolder="False" HideNoItemTable="False" ShowCheckBoxes="False"
                            ShowRemoveButtons="False" ShowTableHeader="False" HeaderRowStyle-BorderStyle="None">
                            <ValidateOption AllowedFileExtensions="mdb,zip" />
                        </CuteWebUI:UploadAttachments>
                        <br />
                        <br />
                        <asp:Button runat="server" ID="SubmitButton" OnClientClick="return submitbutton_click()"
                            Text="Submit" OnClick="SubmitButton_Click" />
                        <br />
                        <br />
                        Status/Progress<br />
                        <div>
                            <dx:ASPxListBox ID="lbEvents" runat="server" ReadOnly="True" ShowLoadingPanelImage="False"
                                Width="618px">
                            </dx:ASPxListBox>
                        </div>
                        <br />

                    </ContentTemplate>
                </asp:UpdatePanel>
    </asp:Content>
     
View Complete Thread