Validating checkboxes in asp net updating a dell optiplex gx1 os

Also I would try a compare Validator rather than a requiredfield validator (you want the value to be true, "on" or whatever else is used for a checked box, if the box is unchecked it doesn't mean IMO that a value hasn't been provided but that the value provided by the user is just "false").

validating checkboxes in asp net-28validating checkboxes in asp net-45validating checkboxes in asp net-33

NET with the Custom Validator class Steven Cheng Microsoft MSDN Online Support Lead This posting is provided "AS IS" with no warranties, and confers no rights.

-------------------- is fine but AFAIK you have to provide client side validation code if youwant to validate this client side (server side code runs server side andcan't be run or won't be transformed automatically for the client sidehandling).--Patrice "mc" I've not been able to get a Check box to client side validated onpostback.

Finally if you have to create your own validator, see for example

Servervalidation is fine but AFAIK you have to provide client side validationcode if you want to validate this client side (server side code runsserver side and can't be run or won't be transformed automatically forthe client side handling).--Patrice "mc" I've not been able to get a Check box to client side validated onpostback.

Here is my code from my custom validator can you spot any errors?

protected void Page_Load(object sender, Event Args e) protected void cv Agree_Server Validate(object source, Server Validate Event Args args) Patrice wrote: Well a checkbox is basically either checked or unchecked so having the special case were the user has to check the checkbox were likely not MS top priority (my understainding is that you want to display a checkbox that is necessarily checked).Value, and have clean generic functions is there not anything I could do with my inherited control to make it correctly validatable?Is there a bug or issue within which means the "Team" couldn't make the Check Box validatable?I have created a new control as below:- [Validation Property("Validation Value")] public class Validifiable Check Box: Check Box this gives me a Check Box that the Validators will except (rather than throwing an exception about not being able to validate them), If I use it with a Required Field Validator, the Serverside events valdiation works however it doesn't seem to trap it on the client, my page code is bellow: - Thanks for your response, Whilst waiting for a response I've already investigated the custom validator, however, when I try to get the "args.Value" in my clientside code I always get the value "on" regardless of state.I have created a new control as below:-[Validation Property("Validation Value")]public class Validifiable Check Box: Check Boxthis gives me a Check Box that the Validators will except (rather thanthrowing an exception about not being able to validate them), If I use itwith a Required Field Validator, the Serverside events valdiation workshowever it doesn't seem to trap it on the client, my page code isbellow: - Hi MC, As for ASP.

Tags: , ,