37 sites, 19,912 entries and counting...     Get a free blog; Join a Weblog Network!
Top

ASP.NET: ValidationSummary For A CreateUserWizard Control

January 9, 2009

ASP.NET provides a control that uses the Membership API to create users on the fly via the CreateUserWizard control. The only drawback with this control is that you cannot include any other details like first name, last name, address and others. You would have to place all other details as a separate page, called a Wizard Step. When you use forms, naturally, you would have to use validation in order to have the correct data that will be stored in your database.

ASP.NET also has a nifty control called ValidationSummary that collects all errors of controls found in the tag and displays them as either a List or a Bulleted List. I typically got stuck for half a day looking for a solution because my ValidationSummary control does not display when it is in the CreateUserStep of my wizard. You can use a property called ValidationGroup to specify which set of controls will be collected by the ValidationSummary control for display. You do this by giving the ValidationGroup a name, which is case-sensitive by the way. My problem persisted because the ValidationSummary control for my CreateUserStep has a different name. I later found out that you would have to use the CreateUserWizard’s ID as the ValidationSummary’s ValidationGroup’s name for this to work. See the sample code below.

<asp:ValidationSummary runat=”server” ID=”InfoVS”
ShowSummary=”true” DisplayMode=”BulletList” ValidationGroup=”PersonalVG”
HeaderText=”Please review the following errors:
/>
<asp:ValidationSummary runat=”server” ID=”AddUserVS”
ShowSummary=”true” DisplayMode=”BulletList” ValidationGroup=”AddUserWizard”
HeaderText=”Please review the following errors:
/>

first name
username
password
confirm password
email

Your account has been successfully created.

I specifically added a StartNavigationTemplate tag and overrode the asp:Button and its properties because the validation does not work if you do not set the button’s CausesValidation property to true. Hence, your ValidationSummary control would show nothing since no validation took place. Notice that my ValidationSummary’s ValidationGroup is called PersonalVG. You can name it any way you want but to use the ValidationSummary’s ValidationGroup for the CreateUserStep, you would have to use the CreateUserWizard’s ID for this to work. Otherwise, no validation error messages will be displayed and you will just be stuck on the CreateUserStep page.

ASP.NET: Get Access Of Control Within A CreateUserWizard

January 9, 2009

Getting access to a control from within c# is straightforward. You just call the ID name and call the method or property that you want to use. If you are going to get access to a control from within a CreateUserWizard control and your code may look something like

you call the Label control by

Label lbl = (Label) RegisterUserWizard.CreateUserStep.ContentTemplate.label;

Practical Javascript, DOM Scripting, and Ajax Projects

December 20, 2007

Practical Javascript, DOM Scripting, and Ajax Projects picks up where Beginning JavaScript with DOM Scripting and Ajax left off.

Frank Zammetti’s practical guide to real-world JavaScript and Ajax will have you developing actual client-side apps in no time. As more of a hacker than a theoretician, this kind of guide appeals to me. Usually when I start developing my own apps, some of the code used previously (in building sample apps) will be adapted and tweaked for my own purposes.

Some of the projects you’ll learn how to build in Practical Javascript:
* JSDigester - a library that simplifies (takes away the pain) of parsing XML on the client side
* Mashing up a list of hotels + a Yahoo Map for a user-entered zipcode
* Client-side persistence techniques
* A JavaScript validation framework
* Building widgets and working with UI widget frameworks
* Building a JavaScript mini-game (cool!)
* An Ajax-based client-server chat pplication

You can pick up a copy of Practical Javascript, DOM Scripting, and Ajax Projects at Amazon.com (avg. review score is 4.5 stars).

Beginning JavaScript with DOM Scripting and Ajax

December 15, 2007

Beginning JavaScript with DOM Scripting and Ajax will take you from knowing absolutely nothing about JavaScript to being able to manipulate the DOM, build basic Ajax applications and more.

Most of us who have been building websites since the pre-Ajax days learned JavaScript through a mish-mash of one-off scripts, validations, etc. If a book like this had been around, it surely would’ve offered a nice clean overview of the techniques available to the JavaScript programmer.

Luckily for the novice JavaScript programmer (or intermediate developer wishing to hone his craft), Beginning Javascript with DOM Scripting and Ajax does exist now and is the perfect way to learn the fundamentals from the ground up. The 2nd part of the book also focuses on Ajax and some of the interesting hacks one can use in that realm.

The author, Christian Heilmann, has a geeky sense of humor that keeps the reading light — for eaxmple Et Tu, Cache? (pg. 309):

Safari is the main offender as it caches the response status and does not trigger the changes (remember that the status returns the HTTP code 200, 304 or 404) any longer.

Adding this snippet tells the browser to test whether the data has changed since a certain date, i.e.:

request.setRequestHeader( ‘If-Modified-Since’, ‘Thu, 06 Apr 2006 00:00:00 GMT’);
request.send( null );

A bit out of context here, but just one example of the kind of thing you’ll find in Beginning JavaScript with DOM Scripting and Ajax.

Review: Beginning Ajax with PHP

December 15, 2007

Free Image Hosting at allyoucanupload.com

Beginning Ajax with PHP (by Lee Babin) is a good introduction to learning JavaScript client-server techniques on the PHP platform.

Some of the scenarios Lee walks you through:
* Sexy client-side Calendars (that can be built / communicate with the server)
* Auto-completion (a la GMail’s compose recipient, etc)
* Form validation (that leverages Ajax)
* Dynamic thumbnail generation
* etc

The book then walks one through creating a real-world Ajax-powered photo gallery app. Lee also touches on interacting with SOAP web services and the Google Maps API.

All in all, definitely worth a read if you are a PHP developer and are looking for a good primer on Ajax-based technologies.

Beginning Ajax with PHP (Amazon)

MODx : CMS

June 22, 2006

MODx is a content management system with AJAX goodness (or Web 2.0 as they say). The code is neat and gives a true CMS feel. Though I liked the admin Interface more, the panel offers a wide range of options , Tools, extra plugins , stats checking etc. like a true CMS .

I should say it does a lot more than other AJAX based scripts like AJAXpress and AJAX Portal . But still it needs a lot more to get into high level category of scripts like Joomla and Wordpress.

Wufoo

June 21, 2006

Wufoo is a web-based tool to help you build and host amazing online forms. In only a few short minutes, you can create a mailing list, a marketing survey or even a complete customer management system. In other words, Wufoo is an Internet application that helps anybody build amazing online forms. When you design a form with Wufoo, it automatically builds the database, backend and scripts needed to make collecting and understanding your data easy, fast and fun. Because we host everything, all you need is a browser, an Internet connection and a few minutes to build a form and start using it right away. As it is beta stage right now, its tough to see how it would compete with JotForm.

Ajax script resources

May 15, 2006

Working with Ajax? (Asynchronous Javascript and XML) Especially in web applications? Check out the web applications and scripts, coding secrets, and tips on the following web sites. As Ajax grows, so will these resources, so its highly recommended to bookmark them:  (also great sites for HTML codes, CGI, Perl, Javascript, XML, and other coding scripts)

The Javascript Source:  http://javascript.internet.com/ajax/

The Javascript Forum: http://www.webdeveloper.com/forum/forumdisplay.php?s=&forumid=3

Ajaxed: http://www.ajaxed.com/

Ajax.net: http://www.ajaxpro.info/default.aspx?old=ajax&ref=http%3a%2f%2fwww.google.com%2fsearch%3fhl%3den%26q%3dFree%2bAjax%2bscripts

Open Cube: www.opencube.com

Javascript Kit: www.javascriptkit.com

and don’t forget my Yahoogroups web-design support group at www.yahoogroups.com/ “web-design”

 

 

 

ROTC - AJAX STATS checking PHP script

April 26, 2006

RTOC is a free statistics script that uses flatfiles to store data.
It includes an onine users counter aswell as a unique hits counter that stores unique hits for that day aswell as a total. It uses JavaScript to update itself dynamicly, so that all stats are in real-time!
It has been tested and working on both Firefox 1.5 and Internet Explorer 6 web browsers.

Lace - AJAX Chat

April 8, 2006

AJAX is getting popular, so is the database of cool PHP scripts. Recently I had written about a simple stat checker and a completely AJAXed CMS & AJAXpress Blog. Lace is yet another AJAX Chat PHP script but with few good features. Unlike Meebo, Lace is PHP script for running a simple chat on your own website.

Lace is a free Ajax chat application. It takes advantage of Ajax (XMLHttpRequest) if present, and degrades gracefully if it is not.

Changes in Lace 0.1.4

  • Scrollable message history
  • Basic anti-flood protection
  • Basic nickname hijack protection
  • System messages now optional
  • Unicode fixes
  • “Line 655″ bug fix
  • Many speed improvements

Next Page »

Credit Counseling - Credit Consolidation - Credit Card Consolidation - Phoenix Landscaping
Bottom