By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,567 Members | 1,672 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,567 IT Pros & Developers. It's quick & easy.

Invoking Microsoft IE in C# -- some questions

P: n/a
Hi,

I apologies if this type of question was posted before.

I am invoking internet explorer and open the HTTPS website from my c#
application like this:

System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.EnableRaisingEvents = false;
System.Diagnostics.Process.Start("IEXPLORE.EXE", "https://
10.206.207.208/abc/xyz");

I have 2 questions that are mention below:

1. How can i programmatically give username and password before
invoking IE opening an HTTPS website?

2. In IE, we can see the folder view by going File -Open -Open as
Web Folder. How can i invoke this programmatically directly in IE?

Thanks in advance.
Jul 8 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi

Maybe you can try this:

System.Net.HttpWebRequest local_httpWebRequest =
(System.Net.HttpWebRequest)System.Net.HttpWebReque st.Create("URL");
local_httpWebRequest.Proxy.Credentials = new
System.Net.NetworkCredential("ProxyUsername", "ProxyPassword");
local_httpWebRequest.Credentials = new
System.Net.NetworkCredential("NetworkUsername", "NetworkPassword");
local_httpWebRequest.PreAuthenticate = true;
System.Net.HttpWebResponse local_httpWebReponse =
(System.Net.HttpWebResponse)local_httpWebRequest.G etResponse();

Regards
Frank
"imranisb" wrote:
Hi,

I apologies if this type of question was posted before.

I am invoking internet explorer and open the HTTPS website from my c#
application like this:

System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.EnableRaisingEvents = false;
System.Diagnostics.Process.Start("IEXPLORE.EXE", "https://
10.206.207.208/abc/xyz");

I have 2 questions that are mention below:

1. How can i programmatically give username and password before
invoking IE opening an HTTPS website?

2. In IE, we can see the folder view by going File -Open -Open as
Web Folder. How can i invoke this programmatically directly in IE?

Thanks in advance.
Jul 8 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.