PC Review


Reply
Thread Tools Rate Thread

Composite Control Client-Side Validation

 
 
drop
Guest
Posts: n/a
 
      28th Aug 2006
Hi,

I'm using a Composite Date Control that I want to be able to validate
Client-Side with the ASP RegularExpression Validator. I want the
validator to be outside of the Composite Control so I can easily move
it around.

Right now, I can make Server-Side validation by using
ValidationPropertyAttribute. The problem is i can't seem to make it
work Client-Side.

I found this article (see the section : Which Controls Can Be
Validated?):

http://msdn.microsoft.com/library/de...pplusvalid.asp

According to it, I can enable client-side validation by making the
property I defined in ValidationPropertyAttribute correspond to the
value attribute of the HTML element that gets rendered on the client.

I have no idea how to do this and wasn't able to find any example of
this be searching on the Net. Could anyone give me a quick example or a
link to an example of how this is done? It seems pretty simple, but I
just can't find out how to do it.

Thank You
Simon Picard

 
Reply With Quote
 
 
 
 
drop
Guest
Posts: n/a
 
      28th Aug 2006
BTW, I forgot to mention that I am using ASP .Net 1.1 right now.

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Run client side javascript with Validation Control goscottie@gmail.com Microsoft ASP .NET 2 21st Oct 2008 08:10 PM
Client-side validation on user control =?Utf-8?B?RGF2aWQgRGF2aXM=?= Microsoft ASP .NET 3 11th May 2006 02:09 PM
client side validation for custom composite control Lisa Calla Microsoft ASP .NET 3 22nd Oct 2004 06:45 PM
How to cancel client side validation control from server when page loads moondaddy Microsoft ASP .NET 7 19th Mar 2004 07:02 PM
ASP.NET Web Forms Validation Controls are Server-Side or Client-Side Validation? Matt Microsoft ASP .NET 14 30th Jan 2004 09:15 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:27 PM.