Hi Mark,
Did you really need to use the code line?
System.Diagnostics.Process.Start(strURLCommand)
If no, you may try to automation InternetExplorer. Here is my code sample.
Make a reference to the Microsoft Internet Controls by opening add
reference dialog and selecting COM/Microsoft Internet Controls
SHDocVw.InternetExplorer ie;
private void button1_Click(object sender, System.EventArgs e)
{
ie = new SHDocVw.InternetExplorerClass();
ie.Visible=true;
object o = Missing.Value;
ie.Navigate("http://localhost/test/logon/default.aspx",ref o,ref o,ref
o,ref o);
}
private void button2_Click(object sender, System.EventArgs e)
{
object o = Missing.Value;
ie.Navigate("http://localhost/test/logon/srcview.aspx",ref o,ref o,ref
o,ref o);
//this one will not need to get authenticated again if you have gotten in
the last page.
}
Did this does the job for you?
Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure!
www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
--------------------
From: Mark Mark <in**@sirioinformatica.it>
References: <nI**************@cpmsftngxa06.phx.gbl>
X-Newsreader: AspNNTP 1.50 (ActionJackson.com)
Subject: RE: http sessions and .Net Windows Forms
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-ID: <e5*************@TK2MSFTNGP11.phx.gbl>
Newsgroups: microsoft.public.dotnet.general
Date: Wed, 17 Sep 2003 23:52:37 -0700
NNTP-Posting-Host: actionjackson133.dsl.frii.net 216.17.147.133
Lines: 1
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP11.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:109000
X-Tomcat-NG: microsoft.public.dotnet.general
Thanks Peter for your answer.
The choice of persistent cookie is a good idea, even if this can, in
some way, to avoid the problem and not to resolve it. In truth I tried a
way in order to capture the session and to maintain it "while still
alive" the entire time necessary, also after the closing of the browser,
while mine .Net Windows Form is in execution. Although that, the
solution from suggested you, seems to be only the possible one.
Thanks newly
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!