Results 1 to 4 of 4

Thread: How I can select Value From drop down list in grid view in WebBrowser

  1. #1
    .NET Framework
    .NET 2.0 (VS 2005)
    Join Date
    Aug 2008
    Posts
    4
    Reputation
    0

    How I can select Value From drop down list in grid view in WebBrowser

    Please Any one Have Any idea
    i have winform with WebBrowser to display web site
    the web site have grid view
    and in column 2 of grid view there are drop down list
    11.png
    the question is >>> how i can select any item(by text)of drop down list which in grid view

    22.png


    thank you

  2. #2
    .NET Framework
    .NET 4.0
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    14,010
    Reputation
    1731
    Do you know the generalities of how to access HTML elements via the DOM in a WebBrowser control?

  3. #3
    .NET Framework
    .NET 2.0 (VS 2005)
    Join Date
    Aug 2008
    Posts
    4
    Reputation
    0
    Quote Originally Posted by jmcilhinney View Post
    Do you know the generalities of how to access HTML elements via the DOM in a WebBrowser control?
    no i do not now know the generalities of how to access HTML elements via the DOM in a WebBrowser control

  4. #4
    .NET Framework
    .NET 4.0
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    14,010
    Reputation
    1731
    Then you should look into that first. The Document property of a WebBrowser control is an HtmlDocument object that provides the root access to the DOM (document object model). It has methods GetElementById and GetElementsByTagName that allow you to access specific elements in the document as HtmlElement objects and then do things to them, e.g. call SetAttribute to set the value of an input tag or call InvokeMember to click a button. Without understanding these principles, all you can do is copy and paste someone else's code without understanding what it does.

Similar Threads

  1. Question Beginner Question on List Box / Drop Down List
    By JamesHein in forum VB.NET General Discussion
    Replies: 3
    Last Post: 05-09-2012, 6:26 AM
  2. View Data in List View using TextBox and Button
    By kreahguiled101 in forum ODBC
    Replies: 0
    Last Post: 02-09-2012, 10:33 AM
  3. Drag and Drop (multi select)
    By papa_k in forum Winforms Grids
    Replies: 1
    Last Post: 04-06-2010, 9:02 AM
  4. Question multi select, drag and drop
    By planem997 in forum Windows Forms
    Replies: 1
    Last Post: 10-07-2009, 9:56 AM
  5. Replies: 0
    Last Post: 08-25-2009, 8:17 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •