I made the contactform webpart without AJAX & Styling. Just a simple form with some simple validation handling. Everytime I build a customisation for a client, I always wondering if there wasn't a better (more beautiful, faster, other algorithm, etc) approach... In this case I started thinking about a nice looking contactform with AJAX validation and some nifty corners.
I gave it a try and my form looks like this:
After you have submitted the form:
How I did it...
- I downloaded & installed the ASP.NET 2.0 AJAX Extensions 1.0
- I modified my web.config
- I placed a ASP.NET AJAX Script Manager into the masterpage
- I downloaded the ASP.NET AJAX Control Toolkit
After these steps I created a webpart with the following code:
On Mike Ammerlaan's blog you'll read the following:
In my next post I'll show you a way to style the elements inside the webpart...