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:
- <CuteWebUI:UploadAttachments runat="server" ID="binaryAttachment" InsertButtonID="btnMultipleAttachment" >
- </CuteWebUI:UploadAttachments>
-
- <asp:Button ID="btnSubmitMultiple" runat="server" Text="Submit" visible="true" Enabled="true" OnClick="btnSubmitMultiple_Click" />
Here is the codebehind:
- protected void btnSubmitMultiple_Click(object sender, EventArgs e) {
- CuteWebUI.AttachmentItemCollection AIC = binaryAttachment.Items;
- CuteWebUI.AttachmentItem item = AIC.Item[1];
- }
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