我想在子窗口关闭时传递一个值 [英] I want to pass a value when a child window closes

查看:74
本文介绍了我想在子窗口关闭时传递一个值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的项目中,我正在使用一个子窗口...我想在此子窗口关闭时更改数据库中的status = 0 ...我该怎么做.... am使用VS2010..sql服务器2008 ...

In my project i am using a child window...i want to change the status=0 in the database when this child window closes...how can i do it....am using VS2010..sql server 2008...

推荐答案

使用
Use the FormClosed[^] event, or maybe FormClosing.


在JavaScript中使用showmodeldialog弹出窗口,这是用户友好的
use showmodeldialog popup in javascript, this is user friendly


实际上您的主题和描述内容是不同的.

您将在关闭子窗口时在父窗口页面加载中获得子窗口值.
Actually your subject and description contents are different.

you will get child window values in parent window page load on closing child window.


这篇关于我想在子窗口关闭时传递一个值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆