Auto login external websites

Posted on 2006-11-30
Last Modified: 2006-12-09
I want to be able to auto login external websites by specifying a username and password for an external website whenever user clicks on something. I was able to do that in windows forms using webbrowser and mshtml. But there is no webbrowser in How can I do that in Thanks.
Question by:sandya_116
  • 4
  • 2

Accepted Solution

satish_nagdev earned 300 total points
ID: 18051323
as you mentioned you did it in winforms, so just guessing there must be parameters like userid and password which third party website will accept.
say you want user to go to other url in that case you can use a hyperlink or standard button then in  button_click event you can write


hope that helps.


Author Comment

ID: 18051396
Just for an example If I want to pass the username and password, would I use response.redirect("'"+userid+"'&password='"+password+"'"). I will use their username and password parameteres but just wanted to know if this is the right command.

Author Comment

ID: 18051463
I tried the following but it did not work. Am I doing something wrong:

Dim username As String = "usernameTest"
Dim password As String = "PasswordTest"
Response.Redirect("'" + username + "'&usr_password='" + password + "'")

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.


Expert Comment

ID: 18051661
hi sandya,
are you getting any error ? does that site expect usr_name & usr_password as the parameters or not? i think its wrong url that your are using it should be something like
https://cld.countrywide.come/login_or_anyPage.extension asp or aspx whatever?usr_name='" + value + "'&usr_password='"+password+"'".

LVL 19

Assisted Solution

DreamMaster earned 200 total points
ID: 18052702
Hi sandya_116,

Not every website will allow you to login to their site using querystring parameters. Not only is there a chance it's using a form post instead of a form get method, but also it could be possible that a check is made what the referring URL is. If that URL is not the website URL, they will block the login. When you were using webforms, that was different, as there is no referring URL.


Author Comment

ID: 18054051
It is not an asp site and the site I am using expects usr_name & usr_password as the parameters. I following the same parameters in vb and passed the username and password and it worked.

Author Comment

ID: 18071480
Response.redirect works for some websites but not for some websites. I don't know what the problem is. Can someone please tell me how to pass the value of a radio button inside the url. I need to click a radio button on the url. Thanks.

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

I have developed many web applications with asp & and to add and use a dropdownlist was always a very simple task, but with the new, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now