You want to use the application parameter, cast as an _DTE class:
applicationObject = (_DTE)application;
You can then use the
ActiveDocument[
^] Property.
"Couldn't really understand your answer could you elaborate?"
When you write an addin, VS calls your method, and provides a number of parameters: one of these is the
application
as an object.
(see this, it might help:
How to Create a Visual Studio Add-in that Launches from the Project Window[
^])
You need to cast that object to a _DTE, and you can then access the ActiveDocument property - should give you access to your Default.aspx file.