新手最后10分,问一个弱智问题,请各位大侠帮帮忙 我想在一个web窗体的button事件中,实现调用一个新页面的功能,即点击button,新出来一个指点的页面,原有页面还在,呵呵,我是用vb编的,请各位帮帮忙,指点一下 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Page_LoadyourButton.Attributes.Add("onclick","window.open(.......)"); 没有试出来啊,能详细一点么,我必须在button事件中调用新窗体 在html代码head里面写<script>function shownew(){ window.open('xx.aspx','targetName')}</script><asp:Button id="Button1" runat="server" onclick="shownew()" Text="Button"></asp:Button> Response.Write("<script>window.open('xx.aspx','targetName')</script>"); 赞同 jan1010(~~~房价TMD的真贵啊~~~) <script>function shownew(){ window.open('xx.aspx','targetName')}</script><input type="button" id="Button1" onclick="shownew()" Text="Button">不用后台代码 请教一个控件数组与实际控件绑定的问题 用ASP.NET C#生成静态页面时老是写不好变量! 急! 在虚拟主机上,怎么用程序判断某目录是否可写? 我在写网站的安装部分。 为什么点一个图片能打开一个页面了? 菜鸟问题,如何获取当前时间? 讨论个效率问题,现在没分了,等赚了点分我再加 急用,得到答案马上揭贴,关于框架网页重定向(跳转)问题 多线程UDP接收! IIS部署后怎么修改功能代码 文件上传的问题?在线等,急!! 日期转换 在线等到 有关在Session_Start中的代码出错的问题
<script>
function shownew()
{
window.open('xx.aspx','targetName')
}
</script>
<asp:Button id="Button1" runat="server" onclick="shownew()" Text="Button"></asp:Button>
function shownew()
{
window.open('xx.aspx','targetName')
}
</script>
<input type="button" id="Button1" onclick="shownew()" Text="Button">
不用后台代码