I'm glad you solved your problem...
A Web Application does not use Windows Forms.
There is no "Form.Hide()" method in web applications.
I find it very very strange that you didn't know what type of application you were developing.
The other thing is that the Dispose method is used for cleaning up any resources that the object uses. You aren't supposed to be doing any sort of "saving" in the dispose method because it isn't meant for this purpose....it's supposed to clean up resources like database connections etc.
A better solution would have been to have an exit button on the page (disable the X in the corner)...
- You would create a custom class used to contain the information gathered on the form.
- You would create a custom EventArgs class that would have a property that takes the custom class I mentioned above.
- You would raise an event in the "exit button" code that would indicate that the form is closing.
- You would use the custom EventArgs class to pass the custom class containing the information as the "e" parameter when you raised the event.
- You would handle the custom event thrown in the parent page..where you could retrieve the custom object containing the information gathered on the form.
-Frinny