hello everone!
Is possible click element by id in asp.net ?
if is, can you give me an example?
thx in advance for feedback!
Printable View
hello everone!
Is possible click element by id in asp.net ?
if is, can you give me an example?
thx in advance for feedback!
I don't understand what you want.
Sorry.
topic title says everything!
in vb i know how do to that.
here's how i do in vb
with this code and webbrowser
I click this page elementCode:Dim allelements As HtmlElementCollection = WebBrowser1.Document.All
For Each webpageelement As HtmlElement In allelements
If webpageelement.GetAttribute("id") = "count-down" Then
webpageelement.InvokeMember("click")
End If
Next
As you can see, i try click element by id, in vb it's works fine, but in asp, i just not have idea how to do that :DHTML Code:<div id="count-down"><h2><a href="redirect.php?code=5rX8fe">Click here to continue</a></h2></div>
thanks for feekbacks