Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6937665
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:23:34+00:00 2026-05-27T12:23:34+00:00

I am using Web Browser control in my project and i open a web

  • 0

I am using Web Browser control in my project and i open a web that have file chooser object.
Now i want to inject programmatically a path to a file in this file chooser object .

I tried to get the HtmlElement ,but i not found in the source code the element Id.

Edit:

In the web there is “Browse…” button that open a file chooser,and then the file path is show in little text filed, and i want to inject the file path my self to the text field.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T12:23:35+00:00Added an answer on May 27, 2026 at 12:23 pm

    First.
    establish a name, id or class for the element you want to change the value of. There are a number of ways of doing this. I would use firebug for firefox, or IE developer toolbar, or just view the source of the page and establish what the name/Id of the field is. Now if that field does not have a Name or an ID that you can use you might be able to get the containing element and iterate through the Child elements n times until you get the element you want.

    For my embedded browser app I did the following in c#:-

    // webBrowser is the name of the embedded IE browser in your app
    var htmlDocument = webBrowser.Document;
    if(htmlDocment!=null)
    {
        var field = htmlDocument.GetElementById("...the id...");
        if(field!=null)
        {
            field.SetAttribute("value","...yourfilenamepathonyourmachine...");
        }
    
        // Now you would need to establish the ID of the submit element and click that
        var submitButton = htmlDocument.GetElementById("...submit button...");
        if(submitButton!=null)
        {
            submitButton.InvokeMember("Click");
        }
       // your code to loop?
    }
    

    So do you have the HTML of the page in question? that might help and a better answer can be given

    Regards Julian

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using a web browser control that display html page in window form
I have a vb.net program that has a web browser control, and we all
I am using the webbrowser control in winforms and discovered now that background images
I'm using the web browser control in an application to display a report. The
Just like Microsoft Internet Explorer, there is web browser control functionality: Using MFC to
I am using IAuthenticate, IServiceProvider and IOleClientSite in order to open my web browser
I am using the web browser control in a console application, it is created
I'm using a Web Browser Control in a C# Winform Application. I'm loading local
I am using the csExWB2 web browser control with IE8, and I am noticing
We have a web application that can be tested using Selenium , but that's

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.