I need to access an info page in an external website, normally
accessible after filling username and password in a form.
I would like to hide this complexity (!) from the user, allowing them
to access it through an internal web page (which I would design) maybe
with a simple hyperlink.
How could I use ASP.NET for designing a webpage that will
programmaticall y fill out two fields (user and password) in a simple
html form (through https)?
The application will fill the two fields and virtually click the
"login" button
on the web form.
I lack the overview how to practically do this. 5 5794
cgian31 wrote: I need to access an info page in an external website, normally accessible after filling username and password in a form.
I would like to hide this complexity (!) from the user, allowing them to access it through an internal web page (which I would design) maybe with a simple hyperlink.
How could I use ASP.NET for designing a webpage that will programmaticall y fill out two fields (user and password) in a simple html form (through https)?
The application will fill the two fields and virtually click the "login" button on the web form.
I lack the overview how to practically do this.
You could use the System.Net.Http WebRequest class to send the request
to your remote web page.
eg: HttpWebRequest myReq =
(HttpWebRequest )WebRequest.Cre ate("https://www.remoteserve r.com/");
So a search on HttpWebRequest on Google.. otherwise the following I
found is a good example: http://weblogs.asp.net/guys/archive/...21/414118.aspx
Good Luck!
Dirc
--
cgian,
You don't need to fill out the page and "click" the button.
Just send the page that would normally receive the first one the data it
needs.
Use a WebRequest object and post to the receiving page.
--
Sincerely,
S. Justin Gengo, MCP
Web Developer / Programmer www.aboutfortunate.com
"Out of chaos comes order."
Nietzsche
"cgian31" <cg*****@katama il.com> wrote in message
news:11******** **************@ g47g2000cwa.goo glegroups.com.. . I need to access an info page in an external website, normally accessible after filling username and password in a form.
I would like to hide this complexity (!) from the user, allowing them to access it through an internal web page (which I would design) maybe with a simple hyperlink.
How could I use ASP.NET for designing a webpage that will programmaticall y fill out two fields (user and password) in a simple html form (through https)?
The application will fill the two fields and virtually click the "login" button on the web form.
I lack the overview how to practically do this.
"cgian31" <cg*****@katama il.com> wrote in message
news:11******** **************@ g47g2000cwa.goo glegroups.com.. . I need to access an info page in an external website, normally accessible after filling username and password in a form.
I would like to hide this complexity (!) from the user, allowing them to access it through an internal web page (which I would design) maybe with a simple hyperlink.
You might also find this article/code useful. http://west-wind.com/presentations/d...WebRequest.htm
mike
Thank you all for your replies.
I cannot use the receiving page with the appopriate query strings
because my destination is an asp page/form having two fields:
Username/Password and a button: Login.
When the username/pwd fields are filled in and the Login button is
pressed, the application generates a 15 fugures code, always different,
which is then embedded into the url with this style:
https://url.com/default.asp?<15 figures code>
Since I don't know the code, I cannot access the second page directly,
but I need to fill in the first form in order for the application to
generate this code.
I see that the HttpWebRequest class is what I need, but how to match
the userid/pwd I pass with the respective fields in the asp
application? Can anybody give me another small hint?
Also: how do I display the following page after the authentication, in
a browser? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: nibha kothari |
last post by:
Hi,
I am trying to invoke an external email management
program from my
ASP.NET web application. For testing purposes I created a
very simple
webform that has a single button. The code behind has the
following:
Sub btnGo_Click(ByVal sender as System.Object, ByVal e as
|
by: Woody Splawn |
last post by:
I have a webform where I would like to have the background color for the
webform be a gradient in blue. How do I do this? What is the easiest way?
What is the way most used by other developers? Do you draw it with code or
attach a .gif file as a background or what? Does one way or the other have
an effect on speed?
Thank You
|
by: Dan Sikorsky |
last post by:
Under the File menu, Page Setup item in the IE is a way to setup the Page
headers and footers the show when you print a page in the browser. How can
we set those programmatically in a webform?
--
Thank you kindly,
Dan Sikorsky BAB, BScE, MSC
|
by: Plat |
last post by:
I've Googled this for a while, to no avail. Hopefully someone can help me.
Maybe I'm using the wrong terminology.
Here's the scoop! Let's say I've got a simple *.ASPX page that has a syntax
error. For example, broken.aspx might only contain the following line of code:
<% Dim x as %>
When I visit this page from my Web browser, I see all the helpful ASP.NET
Server Error information, including:
|
by: Gert |
last post by:
Hi,
I have a form (server side) because of the filling of variables through the
application. But now I need to post it to an url on submit.
My .HTML form looks like this, but how to translate it to asp.net vb code?
!--<FORM ACTION="/test/test.php" METHOD=POST>-->
<form action="https://multipay.net/transaction/mpmain.php" method="post">
....
| |
by: Jeremy Dillinger |
last post by:
I have a program setup to pull data from a database. My database table has
things such as (category, Item, price, etc.) In my program I want to have
multiple list boxes that will have a pull down list of different categories.
The category is stored as a number and the item is stored as a string. Also
once the item is picked from the list I would also like to extract the price
corresponding to the chosen item.
This program will be to...
|
by: VMI |
last post by:
How can I transfer some text from a Textbox in a popup window to the main
webform that opened that popup?
The popup webform will have some type of Button that the user will click in
order to accept those changes. This is where the transter of the value should
be. It could also be done when I close the popup form (whichever is easier).
Once the popup form is closed, the value will then be used to fill a textbox
in the main Form.
I use...
|
by: Tor Inge Rislaa |
last post by:
Databinding programmatically
In my webform I have the code below in the form_load procedure.
On the webform I have a GridView control. My question is simply how to bind
the GridView to the datasource in the code programatically.
|
by: lnong |
last post by:
Im using the ActivePDF Toolkit to programmatically fill in a PDF document using .NET. I have a mulitline textfield (textbox), and I want to be able to insert a newline character. I cannot find a way to do this. I tried outputting these, but none work. Please help!
1) "This is Line 1" + "\n" + "This is Line 2"
2) "This is Line 1" + Environment.NewLine + "This is Line 2"
3) "This is Line 1" + ControlChars.CrLf + "This is Line 2"
4)...
|
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...
|
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,...
| |
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...
|
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...
|
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,...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |