Hi,
I want to validate a textbox based on a specific value of a RadComboBox Item.
I am able to do this ServerSide with a CustomValidator, but I'd like to know how to do this ClientSide with a CustomValidator. I'm not that good with Javascript.
This is my ServerSide code:
Thanks,
Daniel
I want to validate a textbox based on a specific value of a RadComboBox Item.
I am able to do this ServerSide with a CustomValidator, but I'd like to know how to do this ClientSide with a CustomValidator. I'm not that good with Javascript.
This is my ServerSide code:
protected
void
valGroup_ServerValidate(
object
source, ServerValidateEventArgs args)
{
try
{
if
(
this
.groups.SelectedValue ==
"*"
&&
string
.IsNullOrEmpty(
this
.group.Text))
args.IsValid =
false
;
else
args.IsValid =
true
;
}
catch
(Exception ex)
{
throw
ex;
}
}
Thanks,
Daniel