none
How do I extract InnerTags of a Tag in C# coded webtest RRS feed

  • Question

  • Hi,

    I want to extract innertags present with in a Tag. 

    for example: if I have <td id= "abc"....> <input id="1"... /> <input  id="2"... /> ... </td>

    I have many <td> tags, but I need to extract one specific <td> and access input tags within that tag. To get to the specific <td> I am using

    foreach

     

     

     

    (HtmlTag tag in e.Response.HtmlDocument.GetFilteredHtmlTags(new string[] { "td" }))

    if

     

     

    (tag.GetAttributeValueAsString("id") == "abc")

    But how to I access the inner tags within this tag?


    Thanks, Siva


    Thanks, Siva
    • Moved by Mike Dos Zhang Tuesday, December 7, 2010 6:54 AM asp.net topic (From:Visual C# General)
    Thursday, December 2, 2010 6:59 PM

Answers

All replies