Author: Giri_DOTNET | Posted on: 11/18/2010 3:14:34 AM | Views : 774

hi,
iam using regular expression in javascript function to validate email. iam calling javascriptfunction using asp.net custom validator. email validation is working. when i click the textbox the cursor is in the middle of the textbox. it's not moving to end of the text or beginning of the textbox, if the textbox is empty. do you have any idea about this error.


<asp:TextBox ID="txt_piEmail" CssClass="txtbox" runat="server" Text=""></asp:TextBox> <asp:CustomValidator ID="custom_valPatientInfoEmail" Display="None" ErrorMessage="Email" runat="server" ControlToValidate="txt_piEmail" SetFocusOnError="true" ClientValidationFunction="validEmail"> </asp:CustomValidator>


...

Go to the complete details ...