3
Answers

How to set value for input file type & auto-upload selected file

Aman Ghai

Aman Ghai

13y
5.2k
1
I have a windows form with a webbrowser control in it. I navigate to a web page & there are many text-controls, combobox - I am able to set value for all of them. There is also an input-file control to select a file from local computer & an Upload submit-button to upload the selected file.

I am not able to set the value for file-control. I have tried SendKeys.Sendwait, but that just doesn't work, even when the webbrowser control has the focus.

Can you please help me on this  issue? I need to resolve this urgently. I need the code to select the file automatically by code & then upload it.

Thanks, Amandeep
Answers (3)
0
Jaima Joseph

Jaima Joseph

NA 89 69.6k 10y
Than you for your reply and I'l  try it.
0
Suraj Sahoo

Suraj Sahoo

NA 10.2k 922.3k 10y
Knockout JS is a very nice concept, but unlike Telerik, Telerik is a third party tool, which you will integrate into your application to access and use their inbuilt tools that they provide. Telerik is easy and nice to implement. But that is totally different from Knockout.JS.
Now AngularJS has taken the market. They are MVVM approaches. Please follow the links given below. They will surely help you.

http://learn.knockoutjs.com/



http://www.codeproject.com/Articles/806029/Getting-started-with-AngularJS-and-ASP-NET-MVC-Par

I hope these help you learn new techs. I would prefer Angular JS.
Thanks