I'm using c# winform. Using webbrowser.control I have logged into a website and navigated around to a particular section. Now I get to the part where I want to upload a file. I am able to "HIT" the UPLOAD button on this website, and the BROWSE button. A normal FileUpload box pops up...
any idea how I can enter in the path and filename into the box, and hit OK all using code?

I hope I am explaining clear... the pop up window is in front of me, now I want to select the file in code.

I've attached the source code. I'm guessing when the user manually hits loadbutton, it launches the function FileUpload1_Click. Sorry for the lame questions but as you can see I'm really new to this. Do you see the URL anywhere on here? It also seems to have some type of validator to check data is in proper format. Am I still on the correct path here?

just so you have the big picture. The window I currently have is in my webbrowser.control, and it is a file upload screen. So if I were to hit the LOADTRADES BUTTON, it comes back with a popup, that says, "are you sure", then I hit YES. And it uploads to server

just so you have the big picture. The window I currently have is in my webbrowser.control, and it is a file upload screen. So if I were to hit the LOADTRADES BUTTON, it comes back with a popup, that says, "are you sure", then I hit YES. And it uploads to server

Based on what I saw on the .htm, it's just a Javascript validator that brings up that prompt. They don't actually do any AJAX upload of files, so it follows the standard web semantics for file uploads using an <input type="file" ...>. That means it uses the URL from the <form> element. http://wwww.w3school...s/tag_input.asp