CuteWebUI.AttachmentItemCollection does not give me access to AttachmentItem

  •  09-26-2012, 9:29 AM

    CuteWebUI.AttachmentItemCollection does not give me access to AttachmentItem

    Hi!

     

    I am uploading several files to my site, and then I'm trying to access these files in the codebehind. The problem is that I am not given access to the AttachmentItem in the codebehind. This is how it looks in the .aspx file:

    1. <CuteWebUI:UploadAttachments runat="server" ID="binaryAttachment" InsertButtonID="btnMultipleAttachment" >
    2. </CuteWebUI:UploadAttachments>    
    3.   
    4. <asp:Button ID="btnSubmitMultiple" runat="server" Text="Submit" visible="true" Enabled="true" OnClick="btnSubmitMultiple_Click" />  

     Here is the codebehind:

    1. protected void btnSubmitMultiple_Click(object sender, EventArgs e) {    
    2.       CuteWebUI.AttachmentItemCollection AIC = binaryAttachment.Items;      
    3.       CuteWebUI.AttachmentItem item = AIC.Item[1];     
    4. }  
    The problem is that when I access the AttachmentItemCollection object, I don't get the option of choosing the Item property of the object (the wanted solution is shown above). According to the documentation, this object should contain the Item. Disregard the square brackets after AIC.Item, since I don't know if they are right or wrong. They are just there to show what I would like to achieve.

     

    Is this problem maybe related to installing the wrong version of ajaxuploader, or can anyone provide me with a solution/explanation?

     

    Any help would be greatly appreciated!

     

    -trbox 

View Complete Thread