Click here to Skip to main content
15,893,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am making a Batch File upload wizard in VB.Net. The problem is that I am having a hard time figuring out how to upload the file through the web form. I need the code to fill in the Browse for file form control thing and then tell it to submit. I am just having a hard time getting it to put the file in the Browse thing. Does anyone know how to do this?

Thanks!
Posted
Comments
Ankur\m/ 11-Oct-10 1:04am    
I have left a reply to your comment for which you won't be notified, I guess. So, this comment.
Ankur\m/ 11-Oct-10 2:18am    
Check the links that I have provided as a comment to my answer. Hope they help!
Ankur\m/ 11-Oct-10 3:25am    
I have replied to your query. Please check.

1 solution

Read this MSDN article - Uploading Files in ASP.NET 2.0[^].

It also describes how to upload multiple files to the server.
 
Share this answer
 
Comments
Matchlighter 9-Oct-10 14:09pm    
Thanks for your reply, but the web form is not mine. I am creating a regular VB.Net WinForms project that will fill in a form and then submit it.

Thanks for your reply :)
Ankur\m/ 11-Oct-10 1:02am    
I am still not very clear. Could you please give more details?
Matchlighter 11-Oct-10 1:16am    
Basically, I am try to make an automatic web form filler. The web form that I am trying to fill out is designed to upload files, more specifically, images. I am having a hard time getting my program to set the input box to the file. I hope this is more clear.

Thanks for your willingness to help me!
Ankur\m/ 11-Oct-10 1:24am    
Okay, so there is a web application through which files can be uploaded to the web server.
You want to develop a windows application which opens that web page and sets the path of the fileUpload control to a specified path. So basically you want to automate the file upload, right?
Ankur\m/ 11-Oct-10 2:17am    
I have few links that might help you:
http://www.farooqazam.net/c-sharp-auto-click-button-and-auto-fill-form/
http://www.codeproject.com/KB/cs/mshtml_automation.aspx
http://www.eggheadcafe.com/community/aspnet/2/10170265/auto-fill.aspx
http://forums.asp.net/p/1500080/3826756.aspx

Hope these help!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900