开发者

Go to new site when a button is clicked [closed]

开发者 https://www.devze.com 2022-12-28 12:51 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 10 years ago.

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" />
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号