Need Help ASAP.

Page 1 of 1

1 Replies - 223 Views - Last Post: 05 October 2011 - 02:54 PM Rate Topic: -----

#1 CashCookie  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 05-October 11

Need Help ASAP.

Posted 05 October 2011 - 02:51 PM

Alright you guys ive ran into a problem im trying to have my webbrowser set attribute of two textbox's the only problem is none of what im using works..

This is the URL of the two textbox's..[Click]

Here's what I've tried


Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        For Each element As HtmlElement In WebBrowser1.document.All.GetElementsByName("Email")
            element.SetAttribute("value", "textbox1.text")
        Next

    End Sub


and i have also tried this..
Dim elements As HtmlElementCollection = WebBrowser1.document.All
        For Each WebPageElement As HtmlElement In elements
            If WebPageElement.GetAttribute("className") = "gaia sub emailtxtfield" Then
WebPageElement.SetAttribute("value", textbox1.text)
            End If
        Next


Is This A Good Question/Topic? 0
  • +

Replies To: Need Help ASAP.

#2 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 9571
  • View blog
  • Posts: 36,242
  • Joined: 12-June 08

Re: Need Help ASAP.

Posted 05 October 2011 - 02:54 PM

Spamming google adwords? This sounds pretty fishy to me. Closing it.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1