Re: Problem when publishing to production test server...

  •  11-02-2011, 9:33 AM

    Re: Problem when publishing to production test server...

    Hi ScottDolan,
     
    Try the new examle below, it should works for you. Please use all the code of it and do not change anything of the page below.
     
    <%@ Page Language="C#" ValidateRequest="false" %>

    <%@ Register TagPrefix="CuteWebUI" Namespace="CuteWebUI" Assembly="CuteWebUI.AjaxUploader" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <script runat="server">

        protected void uploader1_UploadCompleted(object sender, UploaderEventArgs[] args)
        {
            label2.Text = "Upload completed!";
        }

        protected void uploader1_FileUploaded(object sender, UploaderEventArgs args)
        {
            label1.Text += args.FileName;
        }
    </script>

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <title>example</title>
    </head>
    <body>
        <form id="form1" runat="server">
            <div>
                <asp:ScriptManager ID="ScriptManager1" runat="server">
                </asp:ScriptManager>
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                        <CuteWebUI:UploadAttachments ID="uploader1" runat="server" OnUploadCompleted="uploader1_UploadCompleted"
                            OnFileUploaded="uploader1_FileUploaded">
                        </CuteWebUI:UploadAttachments>
                        <div>
                            <asp:Label ID="label1" runat="server"></asp:Label><br />
                            <asp:Label ID="label2" runat="server"></asp:Label>
                        </div>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </div>
        </form>
    </body>
    </html>
     
    Regards,
     
    Ken
View Complete Thread