C# 网页问题

来源:百度知道 编辑:UC知道 时间:2024/05/17 22:22:02
C# 在ASP.net中如果按一个button按狃就打开一个链接代码应怎么写?
并且希望能在新窗口中打开...

在页面里写<input type="button" id="btnMyButton" value="xxx" onclick="window.open('要打开的页面url')">

按钮里头写
Response.Write("aaa.aspx");

Response.Redirect("*.aspx"); 连接到另外一个网页.
Response.Write("*"); 是在原页中返回字符串.