Setting a file to upload inside the WebBrowser component

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vbseyyed
    New Member
    • Jan 2014
    • 1

    Setting a file to upload inside the WebBrowser component

    I have a simple web page that allow file to be uploaded, the upload page
    looks like the following:


    Code:
    <form method="post" name="upload" enctype="multipart/form-data"
    action="processupload.aspx">
    <input type=checkbox name="chkOverride" value="1">
    <input type=file name="filename">
    <input type=submit value="Upload Data File" name="cmdSubmit">
    </form>
    My question is without using the web page, how could I use something in
    System.Net such as HttpWebRequest or WebClient or some kind to
    programmaticall y upload a file along with sending the checkbox to that
    upload page?
    I found many solutions in C# but I want it in VB.Net

    Thanks,
    Last edited by zmbd; Jan 19 '14, 12:03 AM. Reason: [Z{Please use the [CODE/] button to format posted code script and formated text - Please read the FAQ}]
Working...