Hi R.Jayakumar ,
Instend of using RequiredFieldValidator Use the JavaScript Validation
for using the validation of control.
Like this way.
Java Script Code
function txtlblTo() {
//
var RetValue = true;
var txtTo = document.getElementById('<% = txtTo.ClientID %>');
if (txtTo.value == '') {
document.getElementById('<%= rfvFirstname.ClientID %>').innerHTML = "Please Enter Email ID";
document.getElementById('<%= rfvFirstname.ClientID %>').style.display = "block";
changeBorderToOrange(txtTo, "Error")
RetValue = false;
}
else {
changeBorderToOrange(txtTo, '')
document.getElementById('<%= rfvFirstname.ClientID %>').style.display = "none";
RetValue = true;
}
return RetValue;
}
---------------------------
aspx Code.
<asp:TextBox ID="txtTo" runat="server" onblur="return txtlblTo()" onkeypress="return charEntered();"
CssClass="TextBox1 TypeWidth3"></asp:TextBox>
I hope You will get help from this.
Sushilkumar Shinde
Jayakumars, if this helps please login to Mark As Answer. | Alert Moderator