Go to new site when a button is clicked [closed]
How can I do s开发者_JAVA百科et up my button, so that when my button is clicked, I will open a new internet browser window and browse to an address (e.g walla.com)?
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");
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/')" />
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" />
精彩评论