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

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...
 
P

Patrice

You are using VS 2005 ? You want to open a new window from a Windows
application that hosts the web browser control ?
 
B

Barry Kelly

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
 
G

Guest

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
 
G

Guest

Thanks for replying :)

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

Guest

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
 
P

Patrice

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top