Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
vb.net Login to a .asp website help
#1
I have been trying to make a program that automatticly login to my schools website and this si the code I tried so far

Schools website - "http://gronlokke-skolen.dk/pi/Loginside.asp"

Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        WebBrowser1.Navigate("http://gronlokke-skolen.dk/pi/")
    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        WebBrowser1.Document.GetElementById("Brugernavn").SetAttribute("value", TextBox1.Text)
        WebBrowser1.Document.GetElementById("Adgangskode").SetAttribute("value", TextBox2.Text)

    End Sub
End Class
My profession, you can call me a pothead, 'nuff said
Reply
#2
Website doesn't work for me?
Reply
#3
My bad try this

https://www.gronlokke-skolen.dk/pi/Loginside.asp
https://www.gronlokke-skolen.dk/pi/
My profession, you can call me a pothead, 'nuff said
Reply
#4
EDIT:

You're missing the "s" in http when navigating to the page.

So it would be:

Code:
WebBrowser1.Navigate("https://gronlokke-skolen.dk/pi/")
Reply
#5
The problem is there is no ID when you work with .asp websites Smile

I fixed it now thanks for the help Smile
My profession, you can call me a pothead, 'nuff said
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  HWID/LOGIN SYSTEM(Help) Coding Support 5 2,392 01-08-2012, 11:57 AM
Last Post: ★Cooldude★
  [VB.net] Auto fill - Auto Login fanste 2 2,316 12-17-2011, 03:17 PM
Last Post: fanste
  [VB.Net] MySQL connection class [Register/List/Login] The-One 21 11,535 07-20-2011, 09:33 AM
Last Post: PURP
  [HELP] VB.NET Pinging website then labeling if online Thoth 3 1,026 04-18-2011, 07:15 AM
Last Post: Mammoth
  VB.NET Website Image to PictureBox [SRC] Fragma 11 6,687 04-18-2011, 07:15 AM
Last Post: Mammoth

Forum Jump:


Users browsing this thread: 1 Guest(s)