如何在子窗体的按钮单击上启用MDI Parent上的控件? [英] How can I enable controls on MDI Parent on a button click of child form?

查看:54
本文介绍了如何在子窗体的按钮单击上启用MDI Parent上的控件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

让我详细解释一下我的查询......我在windows中制作浏览器。我有一组按钮和一个Web浏览器控件放在MDI表单上。父窗体加载时禁用这些按钮和控件。当表单加载时,我有另一个(子表单)登录。现在问题在这里..我想在成功登录时启用Parent表单上的所有控件。任何人都可以尽快帮助我。

Let me explain my query in detail...I am making a browser in windows. i have a set of button and a web browser control placed on a MDI Form. These buttons and controls are disabled on Parent form load. When the form loads I have another for (a child form) Login. Now the issue is here..I want to enable all the controls on the Parent form on successful login. Can anyone help me asap.

推荐答案

System.Web.UI.UpdatePanel u = (UpdatePanel)((ContentPlaceHolder)((MasterPage)SenderPageName.Master).FindControl("ContentPlaceHolder1")).FindControl("PanelName");







使用此语法在母版页上查找控件。


这篇关于如何在子窗体的按钮单击上启用MDI Parent上的控件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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