| re: In ASP.NET calling Child form Event from parent form?
Um, this is not possible in ASP.NET
In ASP.NET there are no mdi forms.
ASP.NET is a web technology that lets you create dynamic HTML pages based on some server-side .NET code.
Server-side .NET code is executed which results in HTML that is sent to a web browser to be rendered and shown to the user. Once the HTML has been sent to the web browser the server-side code is finished executing (all objects etc used for this are destroyed).
In other words ASP.NET executes in a "stateless" environment. There is no connection to the server code...the HTML is sent to the browser and the server just waits until the user clicks a button/link/image/etc that makes a new request to the server to do some execution....then the server-side code does some execution and sends the HTML result back to the browser.
As you can see there are 2 basic components here: Server-Side and Client-Side.
Client-side is what happens in the web browser. If the user opens a new browser window, it's done client-side. If the user closes a child browser window, it's done client side. The server-side code is completely unaware of what happens client side. You need to control things client-side using a client-side language like JavaScript.
JavaScript can monitor child web-browsers and for the most part can tell when windows are being opened or closed or about to close....
I hope I've clarified the basics of ASP.NET for you,
-Frinny
|