|
You last visited: Today at 16:28
Advertisement
Visual Basic 2010: Problem with WebSite Login
Discussion on Visual Basic 2010: Problem with WebSite Login within the .NET Languages forum part of the Coders Den category.
11/06/2012, 20:34
|
#1
|
elite*gold: 0
Join Date: Mar 2011
Posts: 29
Received Thanks: 3
|
Visual Basic 2010: Problem with WebSite Login
Hi! I have created one program with this code for website login:
Code:
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
WebBrowser1.Navigate("http://www.facebook.com")
WebBrowser1.ScriptErrorsSuppressed = True
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
WebBrowser1.Document.GetElementById("email").SetAttribute("value", TextBox1.Text)
WebBrowser1.Document.GetElementById("pass").SetAttribute("value", TextBox2.Text)
WebBrowser1.Document.GetElementById("submit").InvokeMember("click")
End Sub
End Class
I take the element for password and username with Horme and i found name="username" and name="password" for the 2 input of enter login datas, but when i try with the button (Access) i don't found the name...how can i found it?
|
|
|
11/06/2012, 22:00
|
#2
|
elite*gold: 2932
Join Date: Oct 2009
Posts: 6,966
Received Thanks: 1,097
|
you have to submit the form
|
|
|
11/06/2012, 22:15
|
#3
|
elite*gold: 0
Join Date: Mar 2011
Posts: 29
Received Thanks: 3
|
How?
|
|
|
11/06/2012, 22:24
|
#4
|
elite*gold: 0
Join Date: May 2008
Posts: 1,222
Received Thanks: 500
|
Quote:
Originally Posted by tolio
you have to submit the form
|
Macht er ja :>
@TE: You will need the ID, not the name from the inputs / button.
|
|
|
11/06/2012, 22:45
|
#5
|
elite*gold: 0
Join Date: Mar 2011
Posts: 29
Received Thanks: 3
|
Ehm...for input text of username and password i use the name and not give an error...in 90 % forum/site there aren't id or name and in one forum i try with button id but it give me an error in the line
|
|
|
11/07/2012, 08:54
|
#6
|
elite*gold: 0
Join Date: May 2008
Posts: 1,222
Received Thanks: 500
|
Quote:
Originally Posted by 24terminetor96
Ehm...for input text of username and password i use the name and not give an error...in 90 % forum/site there aren't id or name and in one forum i try with button id but it give me an error in the line
|
GetElementById, do you know what that mean? BY ID, not BY NAME.
|
|
|
11/07/2012, 10:52
|
#7
|
elite*gold: 0
Join Date: Dec 2010
Posts: 500
Received Thanks: 249
|
better use httpwebrequest it's faster and you can create many cookie containers
|
|
|
11/07/2012, 13:38
|
#8
|
elite*gold: 0
Join Date: Mar 2011
Posts: 29
Received Thanks: 3
|
Quote:
Originally Posted by boxxiebabee
GetElementById, do you know what that mean? BY ID, not BY NAME.
|
No...In all site and forum for username and password i take the name= and it not give me an error. For button in same forum/site there is the name and if i take it the program works...but if i take for exemple of this forum the id it give me an error (and in same there isn't the id)...
|
|
|
11/08/2012, 23:32
|
#9
|
elite*gold: 0
Join Date: Mar 2011
Posts: 29
Received Thanks: 3
|
Ehy anyone can help me? I Don't know how to resolve this problem...
|
|
|
11/09/2012, 06:42
|
#10
|
elite*gold: 0
Join Date: May 2008
Posts: 1,222
Received Thanks: 500
|
without the sourcecode from the website, no.
|
|
|
11/09/2012, 08:41
|
#11
|
elite*gold: 50
Join Date: Sep 2010
Posts: 846
Received Thanks: 223
|
Quote:
Originally Posted by boxxiebabee
without the sourcecode from the website, no.
|
If you'd take a closer look you'd notice that it's facebook.com
|
|
|
11/09/2012, 08:50
|
#12
|
elite*gold: 0
Join Date: May 2008
Posts: 1,222
Received Thanks: 500
|
Quote:
Originally Posted by Der Anbieter
If you'd take a closer look you'd notice that it's facebook.com 
|
Oh, ok...
So.. I told you that you will need the ******* ID... the username & password only works because the ID is the same.. you will need the ID from the button >.>...
tip: the id from the button always change...
|
|
|
11/09/2012, 09:08
|
#13
|
elite*gold: 50
Join Date: Sep 2010
Posts: 846
Received Thanks: 223
|
Quote:
Originally Posted by boxxiebabee
Oh, ok...
So.. I told you that you will need the ******* ID... the username & password only works because the ID is the same.. you will need the ID from the button >.>...
tip: the id from the button always change...
|
****, i just wrote that and then u responded :|
|
|
|
11/09/2012, 15:36
|
#14
|
elite*gold: 0
Join Date: Mar 2011
Posts: 29
Received Thanks: 3
|
Ehm sorry the source code is:
Code:
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
WebBrowser1.Navigate("http://www.google.it")
WebBrowser1.ScriptErrorsSuppressed = True
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
WebBrowser1.Document.GetElementById("username").SetAttribute("value", TextBox1.Text)
WebBrowser1.Document.GetElementById("password").SetAttribute("value", TextBox2.Text)
WebBrowser1.Document.GetElementById("submit").InvokeMember("click")
End Sub
End Class
And the problem is that i don't found the name of the input (button)
|
|
|
11/09/2012, 18:11
|
#15
|
elite*gold: 0
Join Date: May 2008
Posts: 1,222
Received Thanks: 500
|
Quote:
Originally Posted by 24terminetor96
Ehm sorry the source code is:
Code:
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
WebBrowser1.Navigate("http://www.google.it")
WebBrowser1.ScriptErrorsSuppressed = True
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
WebBrowser1.Document.GetElementById("username").SetAttribute("value", TextBox1.Text)
WebBrowser1.Document.GetElementById("password").SetAttribute("value", TextBox2.Text)
WebBrowser1.Document.GetElementById("submit").InvokeMember("click")
End Sub
End Class
And the problem is that i don't found the name of the input (button)
|
Are you ******* stupid?! You need the ID and not the name.
|
|
|
 |
|
Similar Threads
|
Visual Basic 2010 Express CMD commands problem
02/29/2012 - .NET Languages - 5 Replies
Hallo epvp
Kurz und knapp
Ich will per VB eine neue CMD starten und dort dann diesen code einfügen:
@echo off
cls
color 02
a: echo%random% %random% %random% %random% %random% %random% %random%
goto a
|
Visual Basic Login-Form problem!
01/23/2012 - General Coding - 12 Replies
Hallo liebe Com.
Ich weiß nicht ob ich das richtige topic erwischt habe, wenn nicht bitte verschieben.
Zum Thema..
Ich versuche schon seit längerem eine VB Login-Form zu erstellen die über SQL / MSQL läuft, am liebsten wäre mir über mein SQL was ich auf PC hab oder solch einer Datenbank seite.
Ich hab schon das tutorial hier gesehen auf EPVP: www.elitepvpers.com/forum/epvp-coders-tutorials/58 7234-vb-2008-how-login-und-registrierung-ein-progr amm-einbauen.html
|
[Visual Basic 2010] Habe ein Problem mit...
10/13/2011 - .NET Languages - 11 Replies
Heyho Elitepvpers. :handsdown:
Ich habe ein kleines Problem mit meinem Programm, welches ich in Visual Basic 2010 gecodet habe.
Es ist ein sogenannter "Anti AFK Bot".
Dieser schreibt jede 30Sekunden /back und das Server Passwort was man in der Textbox eingibt.
Problem:
Wenn ich auf "Start" klicke, hängt sich die Anwendung auf, bzw. keine Rückmeldung, arbeitet aber trotzdem weiter.
|
Visual Basic (2010) Problem
05/22/2011 - .NET Languages - 3 Replies
Huhu!
Ein Anfänger braucht Hilfe... Ich!
Ich fange gerade mit dem VB Coden an.
Habe mir dazu mal VB 2010 runtergeladen & mich direkt
an ein kleines Projekt bezgl. Warrock gemacht.
Alles lief gut, bis ich eine ComboBox einfügte...
Nunja, folgender Fehler kommt:
"end of"-Anweisung erwartet
Nach langem googlen kam ich darauf, dass ich einen Fehler gemacht habe.
|
[Visual Basic 2010]WMI Generator Problem
04/21/2011 - .NET Languages - 0 Replies
Hallo, ich bin dabei einen HWID GEN zu coden.
Ich habe mir einen WMI gen 5. von Microsoft gedownloadet, und oben auch VisualBasic.Net ausgewählt. (Prog. Sprache)
Alles funzt. sogar mein MD5 Hash Code.
Also ich bekomme den Code hier von Generator:
Imports System
Imports System.Management
Imports System.Windows.Forms
|
All times are GMT +1. The time now is 16:29.
|
|