Results 1 to 2 of 2

Thread: webbrowser select tag

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2012
    Posts
    15

    Thumbs up webbrowser select tag

    I am having some problem in filling info in webbrowser control. In HTML document select tag is there. Code is this.
    HTML Code:
    <select class="" id="msg" name="msg" aria-required="true">
                        <option value="" SELECTED >- Select One -</option>
                                                 <option value="are u child?" >are u child?</option>                   
                                                <option value="are u adult?" >are u adult?</option>                   
                                                <option value="are u smart?" >are u smart?</option>                   
                                                                 
                                      </select>
    I want to select the option in it, so i am using. This code

    WebBrowser1.Document.GetElementById("msg").SetAttribute("value", "are u child?")

    But this thing is not working. This code work fine in select option if choice is between single string value or numeric value. . But with this lengthy string, it is not working. is there any issue because of spaces in the string??

  2. #2

    Thread Starter
    New Member
    Join Date
    Apr 2012
    Posts
    15

    Re: webbrowser select tag

    just fixed out, problem was with navigation.

Posting Permissions

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



Click Here to Expand Forum to Full Width