473,699 Members | 2,485 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to autofill a web login page and autosubmit?

I have a login.aspx page consisting of a username label and textbox,
password label and textbox and a submit button.

I want to programmaticall y autofill this and post it back.

I am using the ActiveX IE/Browser object to navigate to the windows page
However, I'm unsure of how to post the info back to the server.

Any suggestions are welcome.

--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Nov 15 '05 #1
4 4905
Morten,

If you are using the WebBrowser object, then in the Navigate method,
there is a parameter which will take the extra information to post to the
server. It is here that you would set the username and the password to
whatever you would fill in on the label. This would also require you to use
a POST method, as opposed to a GET method (well, depending on the form
anyways).

Also, are you using .NET on the client side? Have you considered using
the HttpWebRequest and HttpWebResponse classes?

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- ni************* *@exisconsultin g.com

"Morten Wennevik" <mo************ @hotmail.com> wrote in message
news:opru6ihcqr ge0n9a@localhos t...
I have a login.aspx page consisting of a username label and textbox,
password label and textbox and a submit button.

I want to programmaticall y autofill this and post it back.

I am using the ActiveX IE/Browser object to navigate to the windows page
However, I'm unsure of how to post the info back to the server.

Any suggestions are welcome.

--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

Nov 15 '05 #2
On Mon, 8 Sep 2003 08:40:54 -0400, Nicholas Paldino [.NET/C# MVP]
<ni************ **@exisconsulti ng.com> wrote:
Morten,

If you are using the WebBrowser object, then in the Navigate method,
there is a parameter which will take the extra information to post to the
server. It is here that you would set the username and the password to
whatever you would fill in on the label. This would also require you to
use
a POST method, as opposed to a GET method (well, depending on the form
anyways).

I've tried setting postData =
"__VIEWSTATE=xx x...&Username=m yname&Password= mypassword"
xxx... is the viewstate number
but I'm unsure of how to use postData. Also how would I use POST/GET?
The server is using sessionstates so I'm assuming I need to include
viewstate.
Also, are you using .NET on the client side? Have you considered using
the HttpWebRequest and HttpWebResponse classes?

I am using C# in Visual Studio.Net, so... yes :)
I have used WebRequest/Response in a regular web browser app, but I'm not
too familiar with it.
Hope this helps.


Thanks
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Nov 15 '05 #3
Morten,

I would suggest using the HttpWebRequest and HttpWebResponse classes if
you don't need to display the content that you download. It will give you
more control and better performance.
--
- Nicholas Paldino [.NET/C# MVP]
- ni************* *@exisconsultin g.com

"Morten Wennevik" <mo************ @hotmail.com> wrote in message
news:opru6m1qlk ge0n9a@localhos t...
On Mon, 8 Sep 2003 08:40:54 -0400, Nicholas Paldino [.NET/C# MVP]
<ni************ **@exisconsulti ng.com> wrote:
Morten,

If you are using the WebBrowser object, then in the Navigate method,
there is a parameter which will take the extra information to post to the server. It is here that you would set the username and the password to
whatever you would fill in on the label. This would also require you to
use
a POST method, as opposed to a GET method (well, depending on the form
anyways).


I've tried setting postData =
"__VIEWSTATE=xx x...&Username=m yname&Password= mypassword"
xxx... is the viewstate number
but I'm unsure of how to use postData. Also how would I use POST/GET?
The server is using sessionstates so I'm assuming I need to include
viewstate.
Also, are you using .NET on the client side? Have you considered using
the HttpWebRequest and HttpWebResponse classes?


I am using C# in Visual Studio.Net, so... yes :)
I have used WebRequest/Response in a regular web browser app, but I'm not
too familiar with it.
Hope this helps.


Thanks
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

Nov 15 '05 #4
Thanks, I tried using httpwebrequest/httpwebresponse , but I can't seem to
get redirects.

On Mon, 8 Sep 2003 09:31:07 -0400, Nicholas Paldino [.NET/C# MVP]
<ni************ **@exisconsulti ng.com> wrote:
Morten,

I would suggest using the HttpWebRequest and HttpWebResponse classes if
you don't need to display the content that you download. It will give
you
more control and better performance.


--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Nov 15 '05 #5

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

Similar topics

0
3472
by: Chris Sharman | last post by:
I'd like to design my pages to work cooperatively with browser autofill features. I've loked around, but can't find any good documentation on supported/unsupported field names (http://toolbar.google.com/autofill_help.html gives some details, but doesn't make it clear to me how to name my form fields; rfc3106 only seems to cover ecommerce specific data). I'd like a delivery name & address (primary); a contact name & address (if...
1
18529
by: shortbackandsides.no | last post by:
I'm having a lot of difficulty trying to persuade the Google toolbar autofill to act consistently, for example ======================= <html><head> <title>autofill test</title> </head><body> <form method="POST" action=""> 1 email <input type="text" name="email"><br> 2 name <input type="text" name="name"> <br>
0
4262
by: David Portabella | last post by:
Hello, I am a doing a survey about Autofill Web Forms softwares. Usually, they all collect information of the user once during the set-up phase (user knowledge base). Then, when the user navigates to a web form, the autofill software can automatically partially fill the form. The solution can be mostly differenciated by its intelligence algorithm for matching between the
3
7059
by: Anks | last post by:
Hi All, A user can control the AutoFill option by enabling / disabling the Remember Passwords option in Options - Privacy - Saved Passwords section. But is it possible to disable this option programatically using JavaScript or in any other way ? I basically dont want the user's browser to ever remmeber the username and password and hence autofill these two fields !! So can we do anything as the page author to disable
2
2702
by: Andre Ranieri | last post by:
I'm retouching our corporate web site that, among other things, allows customers to log in and pay their invoices online. I noticed that on the checkout page, the credit card number textbox autofills with past entries for that textbox. My development workstation has the Google Toolbar installed; I'm not sure whether the autofill functionality is native to the browser or coming from the Google Toolbar. In either case, is there any way...
3
2201
by: fischertm | last post by:
Does anyone know where to find code to use Autofill to add user names and passwords into a login screen. For example: We would like to use Single Sign on in SharePoint Portal server, but need to be able to use it with several windows applicatios too.
1
2077
by: Rissoman | last post by:
Hello, I have an issue were I have a zipcode textbox in an atlas ajax updatepanel. When you tab out of the zip textbox and the shipping is calculated. I know this works perfect! Then a user informed me it didn't and he is using google autofill, bad! Thus, I came to the conclusion that autofill doesn't fire the text_change event when the zipcode is filled into the text box. Is there a way to force autofill to fire this text_change...
5
2280
RMWChaos
by: RMWChaos | last post by:
I am working on a script to create and remove DOM elements, and I want to make it as efficient as possible (no redundancies). Because DOM elements each have their own set of attributes, the function variable list is quite long, and each type of element may not use some of the variables. As a placeholder, I use "null" when there is no value, but this can result in lots of "null" values. So I want to create a function to autofill the "null"...
1
1984
by: berlich | last post by:
Can I use visual basic.net to access the DOM in a web page so that I can autofill the text boxes? If so, can you point me in the right direction as to where to begin? I need to fill in a lengthy form on a web page. The report takes about an hour + because I am going back and forth cutting and pasting the data, text box by text box. I have the data in an access database on my machine. How can I use visual basic.net to autofill the text...
0
8689
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8618
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9178
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9035
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8916
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8885
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7752
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5875
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
2348
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.