I used a form with a web browser control on it to automate the process of connecting to a website entering the login and password and finish the process of uploading a file.
As you navigate to the upload page i can't get the input file control to work automatically because the value property is read only and here is the code
HtmlDocument loginPage = wb.Documanet;
loginPage.All["file1" ].SetAttributes("value", @"C:\A\A.txt"); //this doesn't work
Your help is appreciated.
Mark as an answer if it helps.
I dont think you can automate the upload file process in the regular file upload control that ships with asp.net because you can not set the file to the fileupload control its just a read only property.try to search for a third party control which will do the process.
Haissam Abdul Malak
| Blog |
I'm quite agree with Haissam, since such behaviour is a huge security risk to users.
And the browser will try to prevent this from happenning.
I think the host is a hacker.