Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
0
Answer
.Net Webbrowser file upload
Riysa
15y
5.4k
1
Reply
Hello guys,
Could you please try to help me find what am I doing wrong in the following code? I am sure it has to something very simple and basic.
Okay here is the code:
--------------------------------------------------------------------------------
mshtml.IHTMLDocument2 riysa = RiysaBrowser.Document as mshtml.IHTMLDocument2;
mshtml.HTMLInputElement File = (mshtml.HTMLInputElement)riysa.all.item("file-input", 0);
File.click();
RiysaBrowser.Focus();
System.Windows.Forms.SendKeys.Send(this.PostImage + "{ENTER}");
--------------------------------------------------------------------------------
Now, I can see that file dialog box does open automatically without clicking "Browse" button. But for some reason, the file path is not inserted in the "File name" box of the file upload dialog.
I would really appreciate it if you could please help me out with this one.
Thank you
Post
Reset
Cancel
Answers (
0
)
Next Recommended Forum
getting page data on a different page of a different website...!!!
managing of forms