又要麻烦各位了``` linkbutton好象target啊````但是如果想实现点linkbutton在新的页面打开,应该怎么做啊???? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 private void LinkButton_Click(object sender, System.EventArgs e) { this.Page.RegisterStartupScript("open","<script> window.open('TrempMain.aspx','ATA','height=600,width=500,top=100,left=100,toolbar=no,menubor=no,scrollbars=auto,resizable=no,location=no,status=no'); </script>"); } linkbutton望文生义也知道是链接形式的按钮,而不是真的链接,它是会导致提交的 也可以用linkButtonID.Attributes.Add("onclick", "你的代码");这种方式,放在page_load中 要链接,改为HyperLink,或者写文本都可以text = "<a href=\"#\" onclick=\"window.open('弹出页.aspx?id=" + id + "','','scrollbars=yes,width=800,height=600,resizable=yes');return false;\">文本</a>"; linkButton1.Attributes.Add("onclick", "OpenNewWindow('" + 要传递的参数 + "');");然后javascript里面function OpenNewWindow(id) { try { showNewWindows("....aspx?ID=" + id ); } catch(e) { showError(e); } finally { event.returnValue = false; } }还可以设置弹出窗体的大小以及样式... try { showNewWindows("....aspx?ID=" + id ); }-------------------------这改一下try { window.open("....aspx?ID=" + id ); } linkButtonID.Attributes.Add("onclick", "javascript:window.open('页面','???','参数');");???应该填什么啊?呵呵... XML 文件的加密与解密 浮动广告 js .net的Button asp.net项目 引用js文件不成功 datalist使用 求个HTML或CSS写法 关于asp.net的对象:data adapter,dataset,datareader .net如何随机生成字母、数字、符号六位字符串 select t.*, t.rowid from user t WHERE t.name LIKE 'a%c' 有这种查询麽? 怎么在两个页面之间传值? session的问题 TreeView 怎么做分配权限的权限树????????????
{
this.Page.RegisterStartupScript("open","<script>
window.open('TrempMain.aspx','ATA','height=600,width=500,top=100,left=100,toolbar=no,menubor=no,scrollbars=auto,resizable=no,location=no,status=no');
</script>");
}
text = "<a href=\"#\" onclick=\"window.open('弹出页.aspx?id=" + id + "','','scrollbars=yes,width=800,height=600,resizable=yes');return false;\">文本</a>";
function OpenNewWindow(id)
{
try
{
showNewWindows("....aspx?ID=" + id );
}
catch(e)
{
showError(e);
}
finally
{
event.returnValue = false;
}
}还可以设置弹出窗体的大小以及样式...
{
showNewWindows("....aspx?ID=" + id );
}
-------------------------这改一下
try
{
window.open("....aspx?ID=" + id );
}