Getting web control Ids in a variable on click

Discussion in '.NET' started by akshayjadhav, Feb 17, 2009.

  1. akshayjadhav

    akshayjadhav

    Joined:
    Feb 17, 2009
    Messages:
    1
    Likes Received:
    0
    Hello,
    I want to develop a windows application in which i want to to get id of controls like text box or label on any web page.
    In IE developer tool we have Select element by click, in which we can recognize element by selecting that control. Like that I too need that functionality.
    I have created a windows application in which I have one text box and through that I can open web page
    System.Uri uriBro = new System.Uri(textBox1.Text);
    webBrowser1.Url = uriBro;

    In that web page I am filling one text box with req field.

    webBrowser1.Document.GetElementById("txtName").InnerText = "4517";

    but here I know the id " txtName ".
    Now if i open one unknown page then also I want the controls on that page to fill that control with my values. I want them in a variable on click. Can anybody suggest me how to do it?
     
    Last edited: Feb 17, 2009
    akshayjadhav, Feb 17, 2009
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?Tmljaw==?=

    generate control IDs dynamically

    =?Utf-8?B?Tmljaw==?=, Jun 13, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    512
    Trevor Benedict R
    Jun 13, 2004
  2. David
    Replies:
    2
    Views:
    399
    Saravana [MVP]
    Jul 12, 2004
  3. Reny J Joseph Thuthikattu
    Replies:
    1
    Views:
    837
    =?Utf-8?B?UHJha2FzaC5ORVQ=?=
    Dec 30, 2004
  4. vamsikrishna_b@coolgoose.com
    Replies:
    2
    Views:
    953
    Beat Bolli
    Jun 21, 2005
  5. =?Utf-8?B?QW1yaXQgS29obGk=?=

    getting element IDs from nested standard forms in JavaScript

    =?Utf-8?B?QW1yaXQgS29obGk=?=, Jan 25, 2007, in forum: ASP .Net
    Replies:
    8
    Views:
    741
    Laurent Bugnion [MVP]
    Jan 26, 2007
  6. Josh Valino

    Getting IDs back when submitting

    Josh Valino, Feb 8, 2008, in forum: ASP .Net
    Replies:
    3
    Views:
    552
    Josh Valino
    Feb 11, 2008
  7. James Tsao
    Replies:
    0
    Views:
    392
    James Tsao
    Oct 25, 2004
  8. Paul Cooper

    Shift-click, control-click

    Paul Cooper, Apr 25, 2005, in forum: Javascript
    Replies:
    7
    Views:
    271
    Paul Cooper
    Apr 26, 2005
Loading...