Hi,
This is the first time that i used Telerik Rad Controls, so i'm quite confused with some features.
What i want to do is :
I have 3 asp:TextBox, let's say, tbUserName, tbPostalCode and tbEmail.
And i would like to do a validation through 2 web services :
CheckUserNameExist(string email, string userName) and CheckUserRight(string email, string postalCode, string userName)
Actually i want to do it onBlur event, and call the web service only if the textboxes have values. I mean if the user enter email and username, it will call the first web service and if the user enter all the values in textboxes, then it will call the second web service.
I'm quite confuse on how i can achieve it ?
How can i pass the required parameters (email, username and postalcode) to my web service ? Must i do it through javascript ?
I'm thinking about this code.
Thanks in advance, i hope you can help me out with this.
Regards,
Al
This is the first time that i used Telerik Rad Controls, so i'm quite confused with some features.
What i want to do is :
I have 3 asp:TextBox, let's say, tbUserName, tbPostalCode and tbEmail.
And i would like to do a validation through 2 web services :
CheckUserNameExist(string email, string userName) and CheckUserRight(string email, string postalCode, string userName)
Actually i want to do it onBlur event, and call the web service only if the textboxes have values. I mean if the user enter email and username, it will call the first web service and if the user enter all the values in textboxes, then it will call the second web service.
I'm quite confuse on how i can achieve it ?
How can i pass the required parameters (email, username and postalcode) to my web service ? Must i do it through javascript ?
I'm thinking about this code.
<
telerik:RadInputManager
ID
=
"radManager"
runat
=
"server"
>
<
telerik:TextBoxSetting
Validation-IsRequired
=
"true"
Validation-Location
=
"UserService.asmx"
Validation-Method
=
"CheckUserNameExist"
Validation-ValidateOnEvent
=
"Blur"
BehaviorID
=
"tbBehavior1"
>
<
TargetControls
>
<
telerik:TargetInput
ControlID
=
"tbEmail"
/>
<
telerik:TargetInput
ControlID
=
"tbUserName"
/>
</
TargetControls
>
</
telerik:TextBoxSetting
>
<
telerik:TextBoxSetting
Validation-IsRequired
=
"true"
Validation-Location
=
"UserService.asmx"
Validation-Method
=
"CheckUserRight"
Validation-ValidateOnEvent
=
"Blur"
BehaviorID
=
"tbBehavior2"
>
<
TargetControls
>
<
telerik:TargetInput
ControlID
=
"tbEmail"
/>
<
telerik:TargetInput
ControlID
=
"tbUserName"
/>
<
telerik:TargetInput
ControlID
=
"tbPostalCode"
/>
</
TargetControls
>
</
telerik:TextBoxSetting
>
</
telerik:RadInputManager
>
<
asp:TextBox
ID
=
"tbEmail"
runat
=
"server"
></
asp:TextBox
>
<
asp:TextBox
ID
=
"tbUserName"
runat
=
"server"
></
asp:TextBox
>
<
asp:TextBox
ID
=
"tbPostalCode"
runat
=
"server"
></
asp:TextBox
>
Thanks in advance, i hope you can help me out with this.
Regards,
Al