473,406 Members | 2,208 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Automatic login via asp (vb) .net

Hi,
we have 2 www systems one which we wrote ourselves the other is a parent
company one over which we have no control. The 2nd system involves the user
having to enter a username & password in a login screen. Is there any way of
calling the 2nd systems login page and having the username & password be
inserted automatically? This auto passing in of information might also be
applied to optins selection so instead of manually clicking on several
buttons to get to where we want to go we just send a string with the options
included.

I have checked and there seems to be no facility for page parameters in the
2nd system so "xxx.sh?login=uname?pwd=password" isnt going to work.

Thanks in advance
Paul M.

Nov 20 '05 #1
4 1388
"Paul M." <pa**@nospam.fsnet.co.uk> wrote in message
news:br**********@newsg3.svr.pol.co.uk...
Hi,
we have 2 www systems one which we wrote ourselves the other is a parent company one over which we have no control. The 2nd system involves the user having to enter a username & password in a login screen. Is there any way of calling the 2nd systems login page and having the username & password be
inserted automatically? This auto passing in of information might also be
applied to optins selection so instead of manually clicking on several
buttons to get to where we want to go we just send a string with the options included.

I have checked and there seems to be no facility for page parameters in the 2nd system so "xxx.sh?login=uname?pwd=password" isnt going to work.


If this "System" is a web-based login form, it must be. It might be a
java-applet
or an axtive-x control, but somewhere on that page there bust be 2 textboxes
to input "user" and "pwd".

The "xxx.sh?login=xx..." form only works for forms that is "GET"'ed,
not "POST"'ed. So the fields might be there, but you must POST them
to the script.

If you can post the part of the HTML that defines the login-form, maybe
we can find something?

--
Dag.

Nov 20 '05 #2
It *might* be possible using frames. Create a frameset with one frame and
load the login page into it. When the page is loaded, the frameset can
populate the form with username and password. Your frameset would something
like the following, assuming the form in the main page is called "frm" and
the username and password elements are called "txtUsername" and
"txtPassword".

<html>
<head>
<title>Frames</title>
<script language="javascript">
function populate()
{
var p = parent.frames["body"];
p.frm.elements["txtUsername"].value = "username";
p.frm.elements["txtPassword"].value = "password";
}
</script>
</head>

<frameset>
<frame name="body" src="loginpage.aspx" onload="populate()">
</frameset>

</html>

I've tested this code locally, and it works. However, I'm not sure it would
work if the frameset and login page are in different domains, as this would
be a security risk.

Hope this helps,

Mun


"Paul M." <pa**@nospam.fsnet.co.uk> wrote in message
news:br**********@newsg3.svr.pol.co.uk...
Hi,
we have 2 www systems one which we wrote ourselves the other is a parent company one over which we have no control. The 2nd system involves the user having to enter a username & password in a login screen. Is there any way of calling the 2nd systems login page and having the username & password be
inserted automatically? This auto passing in of information might also be
applied to optins selection so instead of manually clicking on several
buttons to get to where we want to go we just send a string with the options included.

I have checked and there seems to be no facility for page parameters in the 2nd system so "xxx.sh?login=uname?pwd=password" isnt going to work.

Thanks in advance
Paul M.

Nov 20 '05 #3
cheers, I'll try that tommorrow.

paul

"Munsifali Rashid" <mun@**RemoveToReply**vefuk.com> wrote in message
news:#P*************@TK2MSFTNGP11.phx.gbl...
It *might* be possible using frames. Create a frameset with one frame and
load the login page into it. When the page is loaded, the frameset can
populate the form with username and password. Your frameset would something like the following, assuming the form in the main page is called "frm" and
the username and password elements are called "txtUsername" and
"txtPassword".

<html>
<head>
<title>Frames</title>
<script language="javascript">
function populate()
{
var p = parent.frames["body"];
p.frm.elements["txtUsername"].value = "username";
p.frm.elements["txtPassword"].value = "password";
}
</script>
</head>

<frameset>
<frame name="body" src="loginpage.aspx" onload="populate()">
</frameset>

</html>

I've tested this code locally, and it works. However, I'm not sure it would work if the frameset and login page are in different domains, as this would be a security risk.

Hope this helps,

Mun


"Paul M." <pa**@nospam.fsnet.co.uk> wrote in message
news:br**********@newsg3.svr.pol.co.uk...
Hi,
we have 2 www systems one which we wrote ourselves the other is a parent
company one over which we have no control. The 2nd system involves the

user
having to enter a username & password in a login screen. Is there any way of
calling the 2nd systems login page and having the username & password be
inserted automatically? This auto passing in of information might also

be applied to optins selection so instead of manually clicking on several
buttons to get to where we want to go we just send a string with the

options
included.

I have checked and there seems to be no facility for page parameters in

the
2nd system so "xxx.sh?login=uname?pwd=password" isnt going to work.

Thanks in advance
Paul M.


Nov 20 '05 #4
cheers, I'll try that tommorrow.

paul

"Munsifali Rashid" <mun@**RemoveToReply**vefuk.com> wrote in message
news:#P*************@TK2MSFTNGP11.phx.gbl...
It *might* be possible using frames. Create a frameset with one frame and
load the login page into it. When the page is loaded, the frameset can
populate the form with username and password. Your frameset would something like the following, assuming the form in the main page is called "frm" and
the username and password elements are called "txtUsername" and
"txtPassword".

<html>
<head>
<title>Frames</title>
<script language="javascript">
function populate()
{
var p = parent.frames["body"];
p.frm.elements["txtUsername"].value = "username";
p.frm.elements["txtPassword"].value = "password";
}
</script>
</head>

<frameset>
<frame name="body" src="loginpage.aspx" onload="populate()">
</frameset>

</html>

I've tested this code locally, and it works. However, I'm not sure it would work if the frameset and login page are in different domains, as this would be a security risk.

Hope this helps,

Mun


"Paul M." <pa**@nospam.fsnet.co.uk> wrote in message
news:br**********@newsg3.svr.pol.co.uk...
Hi,
we have 2 www systems one which we wrote ourselves the other is a parent
company one over which we have no control. The 2nd system involves the

user
having to enter a username & password in a login screen. Is there any way of
calling the 2nd systems login page and having the username & password be
inserted automatically? This auto passing in of information might also

be applied to optins selection so instead of manually clicking on several
buttons to get to where we want to go we just send a string with the

options
included.

I have checked and there seems to be no facility for page parameters in

the
2nd system so "xxx.sh?login=uname?pwd=password" isnt going to work.

Thanks in advance
Paul M.


Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Paul M. | last post by:
Hi, we have 2 www systems one which we wrote ourselves the other is a parent company one over which we have no control. The 2nd system involves the user having to enter a username & password in a...
3
by: Tim Wade | last post by:
Does anyone have any ideas on how to do an automatic html form post using hidden fields without introducing client-side script nor using a server-side WebRequest by passing the information back up...
7
by: Jack | last post by:
Hi, In my application, the main page is accessed via a login screen. A particular record is accessed based on the value of login page. Everything works fine. However, if this screen is kept idle...
1
by: Piotr Kurpiel | last post by:
Hi, I am creating a site where I need to refer to another external file (aspx). I create the form and works fine. But as soon as I try to submit the form automatically (with form.submit()) I get...
1
by: Jim | last post by:
I have an asp.net site and I want to provide automatic login when a user returns to my site, similar to amazon.com. Currently my site authenticates the user and generates a token when the user...
7
by: Ben R. | last post by:
How does automatic type casting happen in vb.net? I notice that databinder.eval "uses reflectoin" to find out the type it's dealing with. Does vb.net do the same thing behind the scenes when an...
3
by: Peter Ivarsson | last post by:
Hi, I have a program that's creates a .netrc in $HOME. When I at the AIX prompt write "ftp xxx.yyy.com", the ftp command transfers a file to the remote host as I want. When I in my code write...
10
by: Anil Gupte | last post by:
I am playing a Windows Media File which is protected by their DRM. I want to be able to automatically fill in the form asking for payment with my saved parameters. Is there any way to do this? ...
10
by: Victor | last post by:
hi guys. In my project, now I am using a asp.net login control and a customized membership provider to do the form authentication. Now I want some function that user can skip the login form and be...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.