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. COM
  4. How to Get the 'fvalue' from an html option button

How to Get the 'fvalue' from an html option button

Scheduled Pinned Locked Moved COM
csharphtmldebuggingtutorialquestion
1 Posts 1 Posters 0 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.
  • M Offline
    M Offline
    Member 3797241
    wrote on last edited by
    #1

    I have a C# IE add-on and need to obtain the 'value' (shown in bold, ie., 1, 96, 192) from a html dropdown list in the web page being displayed by the browser. The abbreviated html page code is as follows: 1/16"=1'0" 1/8" = 1'-0" Full Size/N.T.S. In my browser add-on I have the following C# code: public string ScaleFactor { get { HTMLInputElement elmListScale = (HTMLInputElement)_Document.all.item("listScale", null); if (elmListScale != null) { return elmListScale.value.ToString(); } else { return null; } } } then I have... string scaleFactor = this.ScaleFactor; When I run the VS2005 debugger on the above code, the debugger prompt disappears when it hits the line HTMLInputEelment elmListScale = .... Any ideas on how to read the value from a dropdown list??? Warren

    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