我只是想在原来的页面上放上一个button
点击此button在原来的界面上跳出来一个asp界面,但是不是将原来的界面覆盖掉
我现在是这样写的 但是一直报错 请大神帮我看一看代码如下
<asp:Button ID="Button1" runat="server" Text="新增采购" Width="69px" OnClick="window.open('ITconPurchase.aspx','','width=500,height=300')" />
点击此button在原来的界面上跳出来一个asp界面,但是不是将原来的界面覆盖掉
我现在是这样写的 但是一直报错 请大神帮我看一看代码如下
<asp:Button ID="Button1" runat="server" Text="新增采购" Width="69px" OnClick="window.open('ITconPurchase.aspx','','width=500,height=300')" />
解决方案 »
- C# HttpWebRequest登录遇到问题了。 真的很急啊!要交差!
- 怎么样用SerialPort获取手机卡(SIM卡)的卡号
- C#字符串,字符数组,字符
- 突然发现,向线程传参数的简单方法!!!呵呵 给大家分享一下 如果早就发现这个方法的人不要笑话我哦
- ComboBox数据绑定的问题!急
- 请教大家,C#程序写完了,做安装向导时,怎么加入一个让用户输入密码的过程呢?
- 请教关于批量更新数据库的问题
- C#GDI绘图问题
- 搞不懂的委托?求一个实例学习,线程类中操作ui线程上面的listview
- 怎样可以使得listview可以根据不同的列排序?
- 继承窗体的问题
- Iframe框架下一个页面的TD的onclick事件无法触发
谢谢啦
OnClientClick=" OpenWindow();return false;"
function OpenWindow()
{}
controlWindow.focus();
windowResize(controlWindow,width,height);
return "cancel";
把页面上的onclick事件去掉,这个是后台操作的事件,不是写脚本的地方
<asp:Button ID="Button1" runat="server" Text="新增采购" Width="69px" OnClick="window.open('ITconPurchase.aspx','','width=500,height=300')" />
改为
<asp:Button ID="Button1" runat="server" Text="新增采购" Width="69px" />后台
protected void page_load()
{
if(!ispostback)
{
button1.attribute.add("onclick","javascript:window.open('ITconPurchase.aspx','','width=500,height=300')");
}
}
{
window.open('xxx.aspx');
return false;
}