Advertisement
6_2008-2009 Files/ File Controls/ Input/ Output #201718

How To: Modal Dialogs in ASP.NET

This tutorial begins with basic HTML showing how to set data on a Modal Dialog and return that data to the original page using Javascript. There are a few tricks which will be illustrated that you'll have to use if you want to get the same functionality with ASP.NET pages. I've seen similar tutorials and samples on the web. Some claim to have modal dialogs but still allow clicking on the main window. Most don't show how to return multiple values from the dialog. Included in the .zip file is a web page called Instructions.htm which (you guessed it) includes tutorial instructions. The HTML source is in the HTML directory and the ASP.NET (C#) Project is in the DialogAspx directory. I have only tested on Internet Explorer 6.0 but I believe it will also work on IE 5.0. Please rate and post comments. Enjoy!

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
Planet Source Code doesn't allow HTML tags anymore :(
See Instructions.htm
Original Comments (3)
Recovered from Wayback Machine