Try using uplodify. It uses flash as well, and I highly recommend it. It is a highly customizeable and free product.
For posting to another page after uploading all files:
Make 3 hidden fields like so:
<asp:HiddenField runat="server" ID="hdf_UserID" name="hdf_UserID" />
<asp:HiddenField runat="server" ID="hdf_AlbumID" name="hdf_AlbumID" />
<asp:HiddenField runat="server" ID="hdf_ImageFiles" name="hdf_ImageFiles" />
and here is how you set up your button to post to the second page:
<asp:Button runat="server" ID="btn_Submit" PostBackUrl="YourPage.aspx" />
Once on the second page you can grab the information out of the request like so:
Request["hdf_UserID"].ToString()
Request["hdf_AlbumID"].ToString()
Request["hdf_ImageFiles"].ToString()
you can store all the files in the hidden field and I would recommend | delimited
then you can just do a .split on the other page
For the .ahx page of the uploadify uploader:
using the scriptData option you can pass information to the second page.
var auth = "<% = Request.Cookies[FormsAuthentication.FormsCookieName]==null ? string.Empty : Request.Cookies[FormsAuthentication.FormsCookieName].Value %>"
var user = $('[id$=hdf_UserID]').val();
var album = $('[id$=hdf_AlbumID]').val();
$('[id$=fileInput]').uploadify({
'uploader': '../Uploadify/uploadify.swf',
'script': '../Uploadify/Upload2.ashx',
'scriptData': {'Token': auth, 'User': user, 'Album': album},
in the .ashx of uploadify you can get the scriptData by the following:
string user = context.Request["User"];
string album = context.Request["Album"];
This code is uploadify specific but hopefully it will help you understand yours
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…