Solved

Auto login external websites

Posted on 2006-11-30
7
259 Views
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 asp.net. How can I do that in asp.net. Thanks.
0
Comment
Question by:sandya_116
  • 4
  • 2
7 Comments
 
LVL 4

Accepted Solution

by:
satish_nagdev earned 300 total points
ID: 18051323
hi,
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

response.redirect("page.aspx?userid='"+userid+"'&password='"+password+"'").

hope that helps.

regards,
satish.
0
 

Author Comment

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

Author Comment

by:sandya_116
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("https://cld.countrywide.com?usr_name='" + username + "'&usr_password='" + password + "'")

0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 4

Expert Comment

by:satish_nagdev
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+"'".

regards,
satish.
0
 
LVL 19

Assisted Solution

by:DreamMaster
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.

Regards,
Max.
0
 

Author Comment

by:sandya_116
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.
0
 

Author Comment

by:sandya_116
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.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Re-position the objects 7 97
Problem to page 4 74
Resolve Dependency Issues 4 47
Gridview alignment 1 10
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

920 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

16 Experts available now in Live!

Get 1:1 Help Now