Re: CentOS compatibility

  •  05-10-2011, 9:05 PM

    Re: CentOS compatibility

    Hi nunndaddy,
     
    Can you create a simple page by the code below and let your client test it? Does it work?
     
    1. <%@ Page Language="C#" EnableEventValidation="false" %>  
    2.   
    3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
    4.   
    5. <script runat="server">     
    6.    
    7.     protected override void OnPreRender(EventArgs e)  
    8.     {  
    9.         SubmitButton.Attributes["itemcount"] = Uploader1.Items.Count.ToString();  
    10.   
    11.         base.OnPreRender(e);  
    12.     }  
    13.    
    14. </script>  
    15.   
    16. <html xmlns="http://www.w3.org/1999/xhtml">  
    17. <head runat="server">  
    18.     <title>Start uploading manually</title>  
    19. </head>  
    20. <body>  
    21.     <form id="form1" runat="server">  
    22.         <div>  
    23.             <CuteWebUI:UploadAttachments runat="server" ManualStartUpload="true" ID="Uploader1">  
    24.             </CuteWebUI:UploadAttachments>  
    25.             <asp:Button runat="server" ID="SubmitButton" OnClientClick="return submitbutton_click()"  
    26.                 Text="Submit" />  
    27.         </div>  
    28.   
    29.         <script type="text/javascript">  
    30.   
    31.     function submitbutton_click()  
    32.     {  
    33.         var submitbutton=document.getElementById('<%=SubmitButton.ClientID %>');  
    34.         var uploadobj=document.getElementById('<%=Uploader1.ClientID %>');  
    35.         if(!window.filesuploaded)  
    36.         {  
    37.             if(uploadobj.getqueuecount()>0)  
    38.             {  
    39.                 uploadobj.startupload();  
    40.             }  
    41.             else  
    42.             {  
    43.                 var uploadedcount=parseInt(submitbutton.getAttribute("itemcount"))||0;  
    44.                 if(uploadedcount>0)  
    45.                 {  
    46.                     return true;  
    47.                 }  
    48.                 alert("Please browse files for upload");  
    49.             }  
    50.             return false;  
    51.         }  
    52.         window.filesuploaded=false;  
    53.         return true;  
    54.     }  
    55.     function CuteWebUI_AjaxUploader_OnPostback()  
    56.     {  
    57.         window.filesuploaded=true;  
    58.         var submitbutton=document.getElementById('<%=SubmitButton.ClientID %>');  
    59.         submitbutton.click();  
    60.         return false;  
    61.     }  
    62.         </script>  
    63.   
    64.     </form>  
    65. </body>  
    66. </html> 
     
    Keep me posted.
     
    Regards,
     
    ken
     
View Complete Thread