I have a wizard that lets users upload files and the users have to hit the Submit button at the end of the wizard. The Submit button process the data in the wizard and the uploaded files. I need to get a handle on the files that were uploaded. Below is the code I have. I cannot get the function below to work properly. I guess the MoveTo function requires a GIUD so I use the function Guid.NewGuid which does not return a GUID. Guid.NewGuid.ToString returns a GUID but then the file location gives me an error saying "Named arguements expected."
How can I get a handle on the uploaded files that show up in the Grid/Listview and then move them elsewhere and process them?
<asp:Table ID="Table11" runat="server">
<asp:TableRow>
<asp:TableCell VerticalAlign="Top" Width="100">File #1:
</asp:TableCell>
<asp:TableCell>
<CuteWebUI:UploadAttachments runat="server" ID="Attachments1" InsertText="Attachments1">
<ValidateOption MaxSizeKB="30720" />
</CuteWebUI:UploadAttachments>
</asp:TableCell>
</asp:TableRow>
<asp:TableRow>
<asp:TableCell VerticalAlign="Top">File #3:
</asp:TableCell>
<asp:TableCell>
<asp:Button ID="Button3" runat="server" Text="Button" />
</asp:TableCell>
</asp:TableRow>
Code Behind:
Private Sub Button3_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button3.Click
Attachments1.GetUploaderProvider.MoveTo(fileguid:=Guid.NewGuid.ToString,
"c:\\temp\\")
End Sub