连接到URL [英] connect to the url
本文介绍了连接到URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我单击该按钮时,我有一个按钮,我想打开一个网址的浏览器
如何编写代码
I have the one buttton in form when i click that button i want open the browser that with one url
how can i write the code
推荐答案
可能使用
Probably using
<INPUT Type="button" OnClick="window.open(''http://www.google.com'')" value="enter">
是吗?
Is it ?
Response.Redirect("mypage.aspx");
在服务器端按钮单击处理程序中使用它.
Response.Redirect("mypage.aspx");
use this in your server-side button Click handler...
仅适用于Winforms Apps:
1)引用"System.Diagnostics"
并在代码中(按钮的事件处理程序)
2)Process.Start("http://www.klasjdfklajsfklajskl.org");
Only for Winforms Apps:
1) referencing "System.Diagnostics"
and in code (event handler of button)
2) Process.Start("http://www.klasjdfklajsfklajskl.org");
这篇关于连接到URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文