
c#里面连接到指定的网站怎么弄?就是我有一个button控件,一点这个控件就链接到一个网站,这个功能怎么做?
4个回答
展开全部
主要是这样去写。
服务器控件:<asp:button id="ok" runat="server" onmousedown="window.open('http://你要去的网站地址')"></asp:button>
html控件:
<input type="button" onclick="window.open('http://你要去的网站地址')" />
希望这些对你有用。
服务器控件:<asp:button id="ok" runat="server" onmousedown="window.open('http://你要去的网站地址')"></asp:button>
html控件:
<input type="button" onclick="window.open('http://你要去的网站地址')" />
希望这些对你有用。
展开全部
有一个按钮,linkbutton
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
加入 onClientclick="window.open('网址')"
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
反正你记住要加http://
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询