<script language=JavaScript>
window.open('xxx.aspx','yellowwee','scrollbars=no,left=40,top=40,width=400,height=325')
</script>
window.open('xxx.aspx','yellowwee','scrollbars=no,left=40,top=40,width=400,height=325')
</script>
解决方案 »
- 时间存储问题
- ASP.NET用DataTable直接Response流中导出EXCEL遇到的疑问~
- datagrid "删除" 弹出对话框的问题
- sina 博客的登陆是怎么做出来的啊
- [馨郁星愿]象elong.com那样的酒店查询系统是怎么设计数据库的?
- 如何设置本页,让自己在以运行就变成没有toolbar,location,status,menubar,titlebar样式的窗体呢?
- win2003下asp.net调用使用ssl证书webservice的问题
- 请问怎样控制变量名?
- 如何设置select选中的option项置顶
- 熟悉ssi 的#exec命令的帮下忙啊。
- 高手指路:在ASP.NET中怎么通过代码得到当前页的URL(网址)
- 求教
window.open('xxx.aspx,'yellowwee','scrollbars=no,left=40,top=40,width=400,height=325')
</script>
private void Button1_Click(object sender, System.EventArgs e)
{
//opens form with information related to the pid number passed to the page...
OpenWindow("newWindow.aspx?pid=" + "20","toolbar=no,addressbar=no,menubar=no");
}public void OpenWindow(string redirect /* in */, string attributes /* in */)
{
StringBuilder txtScript = new StringBuilder();
txtScript.Append("<script language=javascript>\n");
txtScript.Append(" window.open ('" + redirect + "', null , '" + attributes + " ');" + "\n");
txtScript.Append("</script>");
this.Page.RegisterStartupScript("MsgBox", txtScript.ToString());
}
======================
- 微软全球技术中心本贴子仅供CSDN的用户作为参考信息使用。其内容不具备任何法律保障。您需要考虑到并承担使用此信息可能带来的风险。具体事项可参见使用条款(http://support.microsoft.com/directory/worldwide/zh-cn/community/terms_chs.asp)。
为了为您创建更好的讨论环境,请参加我们的用户满意度调查(http://support.microsoft.com/directory/worldwide/zh-cn/community/survey.asp?key=(S,49854782))。
======================