Link to home
Start Free TrialLog in
Avatar of madivad2
madivad2

asked on

open pages via VB.NET into Firefox

This question is in two parts:

1) I want to open url's in firefox, at this point, the assumption can be made that firefox is installed (since it's going to be used on my system), and

2) once I have the tabs open, I want to read back the page source(s) into a multi-line text box.

Let's assume (for the sake of argument) that at this point I want to open two tabs and read back the source from the firefox browser. The key point is that I need to be able to get the source for all open tabs
ASKER CERTIFIED SOLUTION
Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of madivad2
madivad2

ASKER

I was having issues with doing it directly to the web site via code due to required cookies not being available to me, or simply not knowing how to implement them (there is another question out there in relation to this, ie cookies)

In relation to the first part of the problem, that hinges on knowing where firefox is installed. I know there's an easier way where you can reply on the file associations of the html page, but can't remember how it's done
You can launch the URL directly but you need to make sure that firefox is the default browser. You could instead search for the firefox.exe in the current system drive and run it with the parameters. This way you could also know if the firefox is not installed.
I found it, this is what I was looking for... now the memories come flooding back :)

http://www.devx.com/dotnet/Article/7914
Not quite what I was after, I found the link in the end, but recognise your contributions. Thanks