News


Popup Modal Form in ASP.NET using AJAX

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.
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati
Thursday, February 15, 2007 7:54 AM

Feedback

# re: Popup Modal Form in ASP.NET using AJAX

Good example but mention the tool kit also 5/11/2007 1:00 AM | Anshuman Good

# re: Popup Modal Form in ASP.NET using AJAX

dfgsdfg sdfg sfdg sdfg sdfg sdfgsf
sdfgsdfgsdfg sdf sd
fg sdfg sdf
sd fgs d
fg sdf 4/5/2008 10:32 PM | ZXcZXc

# re: Popup Modal Form in ASP.NET using AJAX

Thanks for that example. i used that in my website
<a href="http://www.iva-machine.co.uk>get out of debt 7/31/2008 5:00 AM | Derek Hosewood

# re: Popup Modal Form in ASP.NET using AJAX

Thanks for that example. i used that in my website
get out of debt 7/31/2008 5:01 AM | Derek Hosewood

# re: Popup Modal Form in ASP.NET using AJAX

The layout of this blog page is wicked messed up in IE. 9/22/2008 1:42 PM | Ben

# re: Popup Modal Form in ASP.NET using AJAX

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. 11/4/2008 8:59 AM | Layout is trashed

# re: Popup Modal Form in ASP.NET using AJAX

Really nice post it is. 4/23/2009 5:20 AM | Vinoth Kannan S

# re: Popup Modal Form in ASP.NET using AJAX

where can i find the sample ? 11/8/2009 8:57 AM | ShadowMan

Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification: