Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 16:28

  • Please register to post and access all features, it's quick, easy and FREE!

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.

Reply
 
Old   #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?
24terminetor96 is offline  
Old 11/06/2012, 22:00   #2
 
tolio's Avatar
 
elite*gold: 2932
The Black Market: 169/1/0
Join Date: Oct 2009
Posts: 6,966
Received Thanks: 1,097
you have to submit the form
tolio is offline  
Old 11/06/2012, 22:15   #3
 
elite*gold: 0
Join Date: Mar 2011
Posts: 29
Received Thanks: 3
How?
24terminetor96 is offline  
Old 11/06/2012, 22:24   #4

 
boxxiebabee's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,222
Received Thanks: 500
Quote:
Originally Posted by tolio View Post
you have to submit the form
Macht er ja :>

@TE: You will need the ID, not the name from the inputs / button.
boxxiebabee is offline  
Old 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
24terminetor96 is offline  
Old 11/07/2012, 08:54   #6

 
boxxiebabee's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,222
Received Thanks: 500
Quote:
Originally Posted by 24terminetor96 View Post
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.
boxxiebabee is offline  
Old 11/07/2012, 10:52   #7
 
dakata783's Avatar
 
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
dakata783 is offline  
Old 11/07/2012, 13:38   #8
 
elite*gold: 0
Join Date: Mar 2011
Posts: 29
Received Thanks: 3
Quote:
Originally Posted by boxxiebabee View Post
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)...
24terminetor96 is offline  
Old 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...
24terminetor96 is offline  
Old 11/09/2012, 06:42   #10

 
boxxiebabee's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,222
Received Thanks: 500
without the sourcecode from the website, no.
boxxiebabee is offline  
Old 11/09/2012, 08:41   #11
 
Der Anbieter's Avatar
 
elite*gold: 50
Join Date: Sep 2010
Posts: 846
Received Thanks: 223
Quote:
Originally Posted by boxxiebabee View Post
without the sourcecode from the website, no.
If you'd take a closer look you'd notice that it's facebook.com
Der Anbieter is offline  
Old 11/09/2012, 08:50   #12

 
boxxiebabee's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,222
Received Thanks: 500
Quote:
Originally Posted by Der Anbieter View Post
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...
boxxiebabee is offline  
Old 11/09/2012, 09:08   #13
 
Der Anbieter's Avatar
 
elite*gold: 50
Join Date: Sep 2010
Posts: 846
Received Thanks: 223
Quote:
Originally Posted by boxxiebabee View Post
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 :|
Der Anbieter is offline  
Old 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)
24terminetor96 is offline  
Old 11/09/2012, 18:11   #15

 
boxxiebabee's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,222
Received Thanks: 500
Quote:
Originally Posted by 24terminetor96 View Post
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.
boxxiebabee is offline  
Thanks
1 User
Reply

Tags
website login


Similar Threads 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.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.