Trimite valoare html din textbox1 cu awesomium - vb.net

Acest forum este dedicat intrebarilor de programare care nu-si au locul in unul din celelalte forumuri
Post Reply
GamesC++
Junior
Junior
Posts: 3
Joined: 17 Jan 2014, 02:04
Judet: Galaţi

Trimite valoare html din textbox1 cu awesomium - vb.net

Post by GamesC++ » 08 Nov 2015, 12:06

Codul de incarcat website

Code: Select all

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
WebControl1.Source = New System.Uri("https://login.yahoo.com/config/login")
Acest cod trebuie sa trimita valoarea html din textbox1 (Adica ce scriu in textbox1 sa apara la user pe yahoo )

Code: Select all

Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
WebControl1.ExecuteJavascript("document.getElementById('login-text').value=" + TextBox1.Text)
Valoarea care o trimit din textbox1 nu apare de ce ?



Viorel
Microsoft MVP
Microsoft MVP
Posts: 285
Joined: 13 Jul 2007, 12:26

Re: Trimite valoare html din textbox1 cu awesomium - vb.net

Post by Viorel » 08 Nov 2015, 12:22

Poate ar trebui adăugate ghilimele sau apostroafe?

Code: Select all

WebControl1.ExecuteJavascript("document.getElementById('login-text').value='" & TextBox1.Text & "'")

GamesC++
Junior
Junior
Posts: 3
Joined: 17 Jan 2014, 02:04
Judet: Galaţi

Re: Trimite valoare html din textbox1 cu awesomium - vb.net

Post by GamesC++ » 08 Nov 2015, 16:04

Viorel wrote:Poate ar trebui adăugate ghilimele sau apostroafe?

Code: Select all

WebControl1.ExecuteJavascript("document.getElementById('login-text').value='" & TextBox1.Text & "'")

Nu merge !!

GamesC++
Junior
Junior
Posts: 3
Joined: 17 Jan 2014, 02:04
Judet: Galaţi

Re: Trimite valoare html din textbox1 cu awesomium - vb.net

Post by GamesC++ » 09 Nov 2015, 19:45

Nimeni nu stie ?

Post Reply