Thanks,
Sundeep Podugu
My Blog --------------------------------------------------
If there is any mistake/suggestion in any of my conversation in this forum, please let me know.
I think that should help you, below is my code, you can replace Listbox for HyperLinks
static ArrayList filelist = new ArrayList();
protected void button1_Click(object sender, EventArgs e)
{
filelist.Add(fileUpload1);
listBox1.Items.Add(fileUpload1.PostedFile.FileName);
}
//button1 - is inserting files link to Array and displaying file name in listbox
protected void button2_Click(object sender, EventArgs e)
{
foreach (System.Web.UI.WebControls.FileUpload afile in filelist)
{
string fn = Path.GetFileName(afile.PostedFile.FileName);
afile.PostedFile.SaveAs(Server.MapPath("~/Upload/") + fn);
}
listBox1.Items.Clear();
filelist.Clear();
}
//button2 - is phisical saving files on server, I'm working for insert files link to Oracle database (bfile type
sekharvemula
Member
10 Points
27 Posts
uploading multiple files like gmail
Dec 19, 2012 03:20 PM|LINK
Hi,
I need uploading multiple files like gmail with out using flash.....
sundeep_38
Contributor
3541 Points
604 Posts
Re: uploading multiple files like gmail
Dec 19, 2012 03:24 PM|LINK
Check out AJAX File Upload
Sundeep Podugu
My Blog
--------------------------------------------------
If there is any mistake/suggestion in any of my conversation in this forum, please let me know.
Catherine Sh...
All-Star
23372 Points
2490 Posts
Microsoft
Re: uploading multiple files like gmail
Dec 21, 2012 07:19 AM|LINK
Hi,
If you want to upload multiple files, you can try to use:
1. In HTML5. Set multiple as multiple as follows:
For details about how to use it, please check: http://css.dzone.com/articles/working-html5s-multiple-file
2.Use ASP.NET + jQuery plug in.
For details about how to use it, please check: http://www.dotnetfunda.com/articles/article981-multiple-files-upload-in-aspnet-and-aspnet-with-jquery.aspx
Best wishes,
Feedback to us
Develop and promote your apps in Windows Store
shrads
Member
58 Points
14 Posts
Re: uploading multiple files like gmail
Dec 21, 2012 08:37 AM|LINK
Hi
To upload multiple files in gmail ajax is used.
Have a look at this link:
http://webdeveloperplus.com/jquery/ajax-multiple-file-upload-form-using-jquery/
http://ajaxuploader.com/
Hope this helps.
Thanks
kszymaniak
Member
205 Points
112 Posts
Re: uploading multiple files like gmail
Dec 21, 2012 08:46 AM|LINK
I think that should help you, below is my code, you can replace Listbox for HyperLinks
protected void button1_Click(object sender, EventArgs e) { filelist.Add(fileUpload1); listBox1.Items.Add(fileUpload1.PostedFile.FileName); } //button1 - is inserting files link to Array and displaying file name in listbox protected void button2_Click(object sender, EventArgs e) { foreach (System.Web.UI.WebControls.FileUpload afile in filelist) { string fn = Path.GetFileName(afile.PostedFile.FileName); afile.PostedFile.SaveAs(Server.MapPath("~/Upload/") + fn); } listBox1.Items.Clear(); filelist.Clear(); } //button2 - is phisical saving files on server, I'm working for insert files link to Oracle database (bfile typeRegards
shivanand G ...
Participant
1763 Points
534 Posts
Re: uploading multiple files like gmail
Dec 21, 2012 09:46 AM|LINK
refre this.
http://ajaxuploader.com/Demo/multiple-files-upload.aspx
http://ajaxuploader.com/Demo/
Thanks.
shivanand.G.N (shivu.betta@gmail.com)
manjuby
Participant
1131 Points
251 Posts
Re: uploading multiple files like gmail
Dec 21, 2012 09:51 AM|LINK
Refer below links ...which will realy help you
http://forums.asp.net/t/1055358.aspx/1?How+to+select+multiple+files+using+FileUpload+control
http://www.xdevsoftware.com/blog/post/Upload-Multiple-Files-in-ASPNET.aspx
http://www.flajaxian.com/