Hi,
I have a VB.net web application with a RadInputManager validation on 2 fields (email address & password). Both these fields must be completed.
When the user click on the login button, I check if the email address supplied is in fact of a valid domain using DNS lookup.
How do I return to the RadInputManage that the validation failed as I dont use any Error messages but rather the yellow warning sign error indicator on the textbox itself.
Keep in mind that if the email is correctly confirmed in the database & the password is wrong, I just want to warn the user regarding the password not the email address also.
Thanx
I have a VB.net web application with a RadInputManager validation on 2 fields (email address & password). Both these fields must be completed.
<
asp:TextBox
ID
=
"txtEMail"
MaxLength
=
"100"
runat
=
"server"
Width
=
"250px"
/>
<
asp:TextBox
ID
=
"txtPassword"
MaxLength
=
"50"
runat
=
"server"
Width
=
"250px"
TextMode
=
"Password"
/>
<
asp:Button
ID
=
"cmdLogin"
runat
=
"server"
Text
=
"Login"
/>
<
telerik:RadInputManager
ID
=
"RadScreenValidator"
runat
=
"server"
>
<
telerik:TextBoxSetting
BehaviorID
=
"IsRequired"
Validation-IsRequired
=
"true"
>
<
TargetControls
>
<
telerik:TargetInput
ControlID
=
"txtPassword"
/>
</
TargetControls
>
</
telerik:TextBoxSetting
>
<
telerik:RegExpTextBoxSetting
BehaviorID
=
"ValidateEMail"
Validation-IsRequired
=
"true"
ValidationExpression
=
"^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$"
>
<
TargetControls
>
<
telerik:TargetInput
ControlID
=
"txtEMail"
/>
</
TargetControls
>
</
telerik:RegExpTextBoxSetting
>
</
telerik:RadInputManager
>
When the user click on the login button, I check if the email address supplied is in fact of a valid domain using DNS lookup.
How do I return to the RadInputManage that the validation failed as I dont use any Error messages but rather the yellow warning sign error indicator on the textbox itself.
Keep in mind that if the email is correctly confirmed in the database & the password is wrong, I just want to warn the user regarding the password not the email address also.
Thanx