Great Ideas. Always Flowing.

We are not happy until you are happy. Client satisfaction guaranteed. Whatever your needs and requirements, we have the skills and resources for the job!

Quick login...


Or... now make it easy with Facebook Integration
Connect via Facebook



Top Sellers

Frustrated over the lack of customization for your user's registration fields? Dynamically setup your DNN Portal with custom registration fields, layout, questions, and other core integration options......

Ultra Video Gallery is a brother product of Ultra Media Gallery, UVG allows you to upload videos in various format and automatically encode them to flv or H264 format, you also can add videos from internet or record live videos from your webcam.

Build high performance, completely customizable data-entry forms and views driven by your DNN and external databases. New built-in tools make it a snap to quickly create data entry forms, data views, and even database tables. Plus, add your own HTML, CSS, Javascript, SQL commands, stored procedures,

The most advanced DotNetNuke shopping cart on the planet. Easy to use e-Commerce, Secure Shopping Cart Software and SEO friendly. B2C / B2B Ecommerce Sites.

One stop solution for events calendar and events registration! FREE DOWNLOAD is available now!

Birthday field - validation
Last Post 12-18-2009 07:28 AM by David To. 1 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Eric WoodUser is Offline
skipping stones
skipping stones
Posts:5
Avatar

--
12-18-2009 06:59 AM

    Created a birthday field that I want to validate to ensure that the birthday is before a certain date such as '01/01/1990'.  What is the best way to do this?

    David ToUser is Offline
    river guide
    river guide
    Posts:2719
    Avatar

    --
    12-18-2009 07:28 AM
    HI, you can use javascript or SQL Validation, whichever way you want to code it. I think SQL validation on the field would be simpler.

    Let's say your birthday field shortname is called "birthday". Under Validation / SQL Validation, call the store procedure:

    usp_validateBirthday '$(birthday)'

    Under Host / SQL, type in the following:

    create procedure usp_validateBirthday(@birthday nvarchar(50))
    as
    begin
    declare @ValidEntry int
    if (datediff(dd,'01/01/1990',@birthday)) < 0 set @ValidEntry = 1
    else
    set @ValidEntry = 0
    select @ValidEntry as IsValid
    end

    NOTE: SQL Validation must return an IsValid entry with value 0 (for invalid response) or 1 (for valid response). -- David
    You are not authorized to post a reply.


     
     

    Join our mailing list...

    Get current news and events the easy way
    Subscribe Me

    Recent Blogs...

     
    Copyright 2005 - 2011 by Data Springs, Inc.
     
  • film izle
  • 720 izle
  • film
  • sinema izle
  • film makinesi
  • T�rk�e dublaj film
  • film izle
  • film izle
  • baglan film izle
  • sinema izle
  • 1080 film izle
  • film mercegi