Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. getting an HTMLInputElement using mshtml.dll

getting an HTMLInputElement using mshtml.dll

Scheduled Pinned Locked Moved C#
helpquestion
3 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Green Fuze
    wrote on last edited by
    #1

    Hi everybody! I'm trying to get an HTMLInputElement using get getElementByID() or getElementByName() functions. I need to get a certain button, but this button has no name or ID. here is a part of the code (from the website) [](http://****number=9864)[![cancel](http://****/*-cancel.gif)](http://*****name=find-b) I'm trying to get the "enter" input type (which is an image). as you can see, there is no name/ID. can anyone help me with this? Thanks!!! :)

    N 1 Reply Last reply
    0
    • G Green Fuze

      Hi everybody! I'm trying to get an HTMLInputElement using get getElementByID() or getElementByName() functions. I need to get a certain button, but this button has no name or ID. here is a part of the code (from the website) [](http://****number=9864)[![cancel](http://****/*-cancel.gif)](http://*****name=find-b) I'm trying to get the "enter" input type (which is an image). as you can see, there is no name/ID. can anyone help me with this? Thanks!!! :)

      N Offline
      N Offline
      Nick Parker
      wrote on last edited by
      #2

      Post the sample code you are working with.

      - Nick Parker Microsoft MVP - Visual C#
      My Blog | My Articles

      G 1 Reply Last reply
      0
      • N Nick Parker

        Post the sample code you are working with.

        - Nick Parker Microsoft MVP - Visual C#
        My Blog | My Articles

        G Offline
        G Offline
        Green Fuze
        wrote on last edited by
        #3

        Hey What I'm trying to do is to write a small app that will extend my (and my friends') library books (I'm a student) automatically. so in the website I have the following code for the submit image(which the user can click on to... submit): I'm using the following code to get the HTMLelement in C# so I will be able to click it: mshtml.HTMLInputElement btn = (mshtml.HTMLInputElement)doc.getElementsByName(???); as you can see, I don't know how to get the element, because I don't have an ID or a Name. there must be a way to submit that page automatically, but I really have no clue. Thanks Again!

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups