Disabling parent page
-
Hi I have a button that open a child webform. Is it possible to disable the parent page while the child webform is open Thanks
-
Hi I have a button that open a child webform. Is it possible to disable the parent page while the child webform is open Thanks
yes, it is possible. System.Web.UI.WebControls.WebControl has "Enabled" property and System.Web.UI.HtmlControls.HtmlControl has "Disabled" property and those classes and page class have the child control collection. You can try to do the following: 1. you press a button 2. page reloads. and all controls are disables. 3. parent page opens the child webform using JS code 4. you close the child form and that reloads the parent page 5. parent page is reloaded and all controls are enabled. I guess it the easiest way to implement otherwise you should try to write JS code(I think that should take more time to implement)