单击链接按钮,打开新的弹出窗口 [英] Open new popup window while click on link button
本文介绍了单击链接按钮,打开新的弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在弹出的新窗口中打开。在下面的代码中,它在新的标签中打开。我不想在新标签中打开。它应该打开弹出窗口。怎么办。
if(e.CommandName ==Update)
{
回复。写(< script type =' text / javascript' > window.open('ProductsList.aspx?ID =+ e.Item.Cells [2] .Text +','_ blank'); < / script > );
}
解决方案
试试这个,这链接了很多知识如何打开窗户。可以使用这个。
使用子窗口访问父窗口,反之亦然JavaScript [ ^ ]
它正在我的系统上工作,Response.Write( < script type ='text / javascript'> window.open('../ Job-Seeker / details-job.aspx?ID = + mylink.CommandName + ','_ blank');< / script>);
查看你的浏览器弹出窗口没有被阻止。如果弹出窗口是块改变设置允许弹出窗口。
快乐编码
jsb
Hi,
I want to open in new window like popup. in this below code, its opening in new tab. i dont want to open in new tab. it should open popup window. how to do.
if (e.CommandName == "Update")
{
Response.Write("<script type='text/javascript'>window.open('ProductsList.aspx?ID=" + e.Item.Cells[2].Text + "','_blank');</script>");
}
解决方案
try this, this link a lot of knowledge how to window's open. may be use full this.
Accessing parent window from child window or vice versa using JavaScript[^]
it's working on my system,Response.Write("<script type='text/javascript'>window.open('../Job-Seeker/details-job.aspx?ID=" + mylink.CommandName + "','_blank');</script>");
check out your browser pop windows not blocked.if pop window is block change the setting allow pop windows.
happy coding
jsb
这篇关于单击链接按钮,打开新的弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文