Geeks With Blogs
Chris Breisch   .NET Data Practices
Search this Blog!

Here's a nice little sample on using modal Forms in ASP.NET.  It was written by Lou Flees for CodeProject.

From his introduction:

The ModalPopupExtender control provided by the ASP.NET AJAX Control Toolkit allows the display of content in a div panel that floats in the middle of the page and prevents the user from interacting with the rest of the page until the div panel has been closed, thus creating a modal form type of entry on a web page. This is really useful technology but I wanted to make a few improvements in this modal form-like interface.

Specifically I wanted to:

  • Create a panel like control into which I can place content which will be displayed in the modal form without having to include a separate ModalPopupExtender control on the page.
  • Standardize the look of the modal form by automatically including a form-like header when the form is displayed and allowing both the header and content to be styled using stylesheets.
  • Allow the modal form to be dragged around the page like a real modal form.
  • Provide the modal form with a more opaque drop shadow than the ModalPopupExtender normally provides.
Posted on Thursday, February 15, 2007 7:54 AM ASP.NET | Back to top


Comments on this post: Popup Modal Form in ASP.NET using AJAX

# re: Popup Modal Form in ASP.NET using AJAX
Requesting Gravatar...
Good example but mention the tool kit also
Left by Anshuman Good on May 11, 2007 1:00 AM

# re: Popup Modal Form in ASP.NET using AJAX
Requesting Gravatar...
dfgsdfg sdfg sfdg sdfg sdfg sdfgsf
sdfgsdfgsdfg sdf sd
fg sdfg sdf
sd fgs d
fg sdf
Left by ZXcZXc on Apr 05, 2008 10:32 PM

# re: Popup Modal Form in ASP.NET using AJAX
Requesting Gravatar...
Thanks for that example. i used that in my website
<a href="http://www.iva-machine.co.uk>get out of debt
Left by Derek Hosewood on Jul 31, 2008 5:00 AM

# re: Popup Modal Form in ASP.NET using AJAX
Requesting Gravatar...
Thanks for that example. i used that in my website
get out of debt
Left by Derek Hosewood on Jul 31, 2008 5:01 AM

# re: Popup Modal Form in ASP.NET using AJAX
Requesting Gravatar...
The layout of this blog page is wicked messed up in IE.
Left by Ben on Sep 22, 2008 1:42 PM

# re: Popup Modal Form in ASP.NET using AJAX
Requesting Gravatar...
The layout of this site is also trashed in Firefox 3.

Whichi I find very amusing looking at the "How To Not Suck At Design" link in the top right. haha.
Left by Layout is trashed on Nov 04, 2008 8:59 AM

# re: Popup Modal Form in ASP.NET using AJAX
Requesting Gravatar...
Really nice post it is.
Left by Vinoth Kannan S on Apr 23, 2009 5:20 AM

# re: Popup Modal Form in ASP.NET using AJAX
Requesting Gravatar...
where can i find the sample ?
Left by ShadowMan on Nov 08, 2009 8:57 AM

Your comment:
 (will show your gravatar)


Copyright © Chris J. Breisch | Powered by: GeeksWithBlogs.net