views:

96

answers:

3

how can i do that when my button clicked i will open a new internet window e.g walla.com?

A: 

If you're talking about about a web application you're best doing this using JavaScript

<input type="button" onclick="window.open('http://www.walla.com/')" />
Charlie
Should use window.open to popup a new window.
Amry
@Amry good point...will edit
Charlie
it tells me that this event hendler (window.open('http://www.walla.com/')" ) is not in my class...anyway, how can i do it in c# code? i donwt want to touch the xaml...
A: 

Does this help?

It shows this example:

System.Windows.Browser.HtmlPage.Window.Navigate(new Uri(YourNewPageURL), "_blank", "toolbar=no,location=no,status=no,menubar=no,resizable=yes");
RCIX
i wrote HtmlPage.Window.Navigate(new Uri("http://localhost:52878/DoNationFinalTestPage.aspx#/jjj"), "Organiztrion_info_from_toolTip"); is the window that i built, but it opens the application again in a new window and not the "Organiztrion_info_from_toolTip" window
A: 

Hey hi aharont , you can go for the hyper link button to make it simpler ,here is what you have to do :

<HyperlinkButton Content="Open" NavigateUri="http://www.walla.com" TargetName="_blank" />
Malcolm