how to open existing .aspx file in a new internet browser window u

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

To whom are helpful:

i have try to search from the MSDN, i found the namespace
"System.Windows.Forms.HtmlWindow" has this function, but the my .NET
Framework version 2.0 dont have the object. Moreover, i have try to download
the .NET Framework version 2.0 from MSDN. But, it still dont have the
"System.Windows.Forms.HtmlWindow". So, i am jam here.... Please anybody help
me on this...

Thanks a lot in advanced...
 
You are using VS 2005 ? You want to open a new window from a Windows
application that hosts the web browser control ?
 
David KHLee said:
i have try to search from the MSDN, i found the namespace
"System.Windows.Forms.HtmlWindow" has this function, but the my .NET
Framework version 2.0 dont have the object.

Mine does. HtmlWindow is an implementation detail of the WebBrowser
control. Basically, WebBrowser.Document.Window is the path to an
instance of type HtmlWindow.
Moreover, i have try to download
the .NET Framework version 2.0 from MSDN. But, it still dont have the
"System.Windows.Forms.HtmlWindow". So, i am jam here.... Please anybody help
me on this...

What are you using to compile your code? Does this code compile and run:

---8<---
using System;
using System.Windows.Forms;

class App
{
[STAThread]
static void Main()
{
Form f = new Form();
WebBrowser w = new WebBrowser();
w.Parent = f;
w.Dock = DockStyle.Fill;
w.Navigate("www.google.com");
Application.Run(f);
}
}
--->8---

-- Barry
 
Thanks for reply...

I mean to open existing .aspx file in a new internet browser window from a
web application, ASP.Net using code behind, Visual Basic
 
Thanks for replying :)

I mean to open a existing aspx file in a new internet browser window from
web application, asp.net.
 
Thanks for replying :)

Sorry, I mean to open a existing aspx file in a new internet browser window
from web application, asp.net.

Barry Kelly said:
David KHLee said:
i have try to search from the MSDN, i found the namespace
"System.Windows.Forms.HtmlWindow" has this function, but the my .NET
Framework version 2.0 dont have the object.

Mine does. HtmlWindow is an implementation detail of the WebBrowser
control. Basically, WebBrowser.Document.Window is the path to an
instance of type HtmlWindow.
Moreover, i have try to download
the .NET Framework version 2.0 from MSDN. But, it still dont have the
"System.Windows.Forms.HtmlWindow". So, i am jam here.... Please anybody help
me on this...

What are you using to compile your code? Does this code compile and run:

---8<---
using System;
using System.Windows.Forms;

class App
{
[STAThread]
static void Main()
{
Form f = new Form();
WebBrowser w = new WebBrowser();
w.Parent = f;
w.Dock = DockStyle.Fill;
w.Navigate("www.google.com");
Application.Run(f);
}
}
--->8---

-- Barry
 
For example using the target attribute of the "a" tag (or the HyperLink
control) or using client side javascript (window.open).
 
Back
Top