How do I execute an HTML file from my C#.NET application?

Posted on 2007-10-10
Medium Priority
Last Modified: 2013-12-17
I need to execute an HTML file to open Internet Explorer displayig the HTML file selected.

Can someone tell me how?

Question by:newbieweb
LVL 96

Expert Comment

by:Bob Learned
ID: 20048190
I don't understand your requirement.  

Missing information:
1) ASP.NET or WinForms
2) 2.0 or 1.1

LVL 12

Accepted Solution

RubenvdLinden earned 2000 total points
ID: 20048450
Process p = new Process();
p.StartInfo.FileName = @"iexplore.exe";
p.StartInfo.Arguments = "http://www.test.com/";

Of course you will need to replace "http://www.test.com" with the URL of your choice.

Featured Post

Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question