Click here to Skip to main content
15,892,809 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
i am asp.net application.I am trying to display error message in tool tip.but its not working for me.can any help to work it out

What I have tried:

<asp:TextBox ID="TextBox1" runat="server">
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ToolTip="Required"
ControlToValidate="TextBox1" ErrorMessage="*">
Posted
Updated 26-Mar-16 9:06am
Comments
aarif moh shaikh 26-Mar-16 2:57am    
why you doing this?
Tooltip will show when you hover to that particular control. but requireField Validator will show after error rise.

1 solution

Either use the ToolTip of TextBox, else write the message in ErrorMessage property of validator.

But from what you are trying, I think you need to see the demos listed in the below answer.
jquery - showing validation error message like tooltip - Stack Overflow[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900