English 中文(简体)
ASP. 该网络的儿童窗口打开每台后台的新窗口
原标题:ASP.NET child window opens up on a new window on every post back

I have an asp.net page with a grid. On RowDateBound event

mybutton.Attributes.Add("onclick", "javascript:window.showModalDialog( some.aspx?ID="
                                                                    + mybutton.CommandArgument + 
                                                                    " , window.self , dialogWidth:800px; dialogHeight:800px;center:yes; status:yes; scroll:no; help:no );");

有些人。 页 次 我的降幅和牛顿是后退。 有些人背后。 整页在新窗口(Browser)上再次开放。

How to prevent this?

I appreciate your support.

最佳回答

我先与协会讨论这个问题。 NET和ModalDialog。 你们需要做的是,在网页上贴上<代码>和>;基准指标=“自我”>。 它过于简单,不能正确,而是把它留给我。

这令我感到沮丧。

如果你们需要任何帮助,那么我就问了。

<html>
<head>
  <title>My Page</title>
  <base target="_self">
</head>
<body>
<!-- Your content -->
</body>
</html>
问题回答

您可在链接/数据库后面贴上<条码>的虚假;





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签