How to access the web from windows form?

  • Thread starter Thread starter RA
  • Start date Start date
R

RA

Hi

I have a c# windows form and when the user click a button I need to open IE
with a specified url and some arguments I need to pass with the url using
the POST method so that the arguments won't show with the url address. How
can I do this?

Thanks
 
RA,

To do something like this, it is going to be a little complicated. What
you probably want to do is create an instance of Internet Explorer to
automate. Once you have that, you can get the IWebBrowser2 interface and
then call the Navigate or Navigate2 method, allowing you to pass parameters
in a POST.

Hope this helps.
 
Nicholas Paldino said:
RA,

To do something like this, it is going to be a little complicated. What
you probably want to do is create an instance of Internet Explorer to
automate. Once you have that, you can get the IWebBrowser2 interface and
then call the Navigate or Navigate2 method, allowing you to pass parameters
in a POST.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

RA said:
Hi

I have a c# windows form and when the user click a button I need to open IE
with a specified url and some arguments I need to pass with the url using
the POST method so that the arguments won't show with the url address. How
can I do this?

Thanks

Try adding a link label to your form; it will look just like a link on
a web page. Then add the following to "LinkClicked":

System.Diagnostics.Process.Start("http://www.yourpage.com")

Hope this helps.
Paul
 
Unfortunately, this will not allow the application launching it to
specify parameters in a POST to that URL.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

PDench said:
"Nicholas Paldino [.NET/C# MVP]" <[email protected]> wrote
in message news: said:
RA,

To do something like this, it is going to be a little complicated. What
you probably want to do is create an instance of Internet Explorer to
automate. Once you have that, you can get the IWebBrowser2 interface and
then call the Navigate or Navigate2 method, allowing you to pass parameters
in a POST.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

RA said:
Hi

I have a c# windows form and when the user click a button I need to
open
IE
with a specified url and some arguments I need to pass with the url using
the POST method so that the arguments won't show with the url address. How
can I do this?

Thanks

Try adding a link label to your form; it will look just like a link on
a web page. Then add the following to "LinkClicked":

System.Diagnostics.Process.Start("http://www.yourpage.com")

Hope this helps.
Paul
 
Back
Top