Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 2008 > Visual Basic 2008 Professionals
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Visual Basic 2008 Professionals For advanced Visual Basic coders working in version 2008. Beginning-level questions will be redirected to other forums,
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Basic 2008 Professionals section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 3rd, 2009, 08:40 PM
Registered User
 
Join Date: May 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Login to a website

Hello, for a school project we was told to write a application to log into a web site. And i wrote this

Code:
            Me.WebBrowser1.Document.GetElementById("username").Focus()
            Me.WebBrowser1.Document.GetElementById("username").InnerText = Me.TextBox1.Text
            Me.WebBrowser1.Document.GetElementById("password").Focus()
            Me.WebBrowser1.Document.GetElementById("password").InnerText = Me.TextBox2.Text
            Me.WebBrowser1.Document.GetElementById("login").RaiseEvent("onClick")
I was talking to my dads friend and he said i should look into system.net namespace? as its a better way to do this.

Can any one show me some tutorials on learning this?

edit: very sorry just seen that begginer question should not be here :(

Last edited by ident; May 3rd, 2009 at 10:07 PM..
Reply With Quote
  #2 (permalink)  
Old May 4th, 2009, 12:44 AM
Friend of Wrox
Points: 3,060, Level: 23
Points: 3,060, Level: 23 Points: 3,060, Level: 23 Points: 3,060, Level: 23
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2005
Location: , , .
Posts: 812
Thanks: 1
Thanked 53 Times in 49 Posts
Default

You can try using ASP.NET login control

http://msdn.microsoft.com/en-us/library/ms178331.aspx


http://msdn.microsoft.com/en-us/library/ms178329.aspx

http://quickstarts.asp.net/QuickStar...ity/login.aspx

Cheers
Shasur

__________________
C# Code Snippets (http://www.dotnetdud.blogspot.com)

VBA Tips & Tricks (http://www.vbadud.blogspot.com)
Reply With Quote
  #3 (permalink)  
Old May 19th, 2009, 07:18 AM
Friend of Wrox
Points: 1,075, Level: 12
Points: 1,075, Level: 12 Points: 1,075, Level: 12 Points: 1,075, Level: 12
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2005
Location: , , United Kingdom.
Posts: 244
Thanks: 3
Thanked 4 Times in 4 Posts
Default

Nah no point.
I think mate the code you got at the moment is absolutely fine! Also a bit fun, take google display it in your own webbrowser and disable the button! Pretty confusing for some people!

Alrite have fun!
__________________
Apocolypse2005, I'm a programmer - of sorts.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic website to Static website Aboal3ood ASP.NET 1.x and 2.0 Application Design 4 December 7th, 2006 11:46 AM
login control problem (asp.net2.0 website progr..) rookie07 ASP.NET 2.0 Basics 1 June 22nd, 2006 09:25 AM
website query with login Leveland Excel VBA 0 March 15th, 2006 12:56 PM
making a login on a website Apocolypse2005 JSP Basics 0 June 14th, 2005 08:35 AM



All times are GMT -4. The time now is 01:54 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.