English 中文(简体)
如何在关闭人口窗口时取消可使用的会议?
原标题:How to remove sessionvariable when closing popup window?

我有一个人满为患的窗口,一把一个阵列清单储存在可届会中,在近丁顿(右上角的X)上点击,或以希望删除含有我阵列清单的可变会议表的形式点击。 如何做到这一点?

登革窗目前用 j子关闭:

function cmdClose_onclick() {
    self.close();
}
最佳回答

届会的变量储存在服务器上,因此,你需要告知服务器客户发生的事情,并称职消除会议变量。

你可以采取两种办法。

  1. 您可向网页、网页方法HTTPHandler。 如果你撰写了一本习俗文件,你可以简单地向它提出统一法律的要求,并删除会议内容。

  2. 在你关闭窗户时,使你的网页出现倒退。 您可以通过打字“<>_doPostBack()”打字,或只是执行点击或提交的形式,以人工方式触发背后。

如果能够,我可以选择第1号。

问题回答

d 我建议打字,向以下网站打电话:WebMethod,其中明确了会议变量。





相关问题
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!

热门标签