如何在工具提示中显示ASP.NET错误消息 [英] How to display ASP.NET error message in tooltip

查看:98
本文介绍了如何在工具提示中显示ASP.NET错误消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



i我的asp.net应用程序。我正在尝试在工具提示中显示错误消息。但它不适用于我。可以帮助解决它的任何帮助



我尝试过:



< asp:TextBox ID =TextBox1runat = server>

< asp:RequiredFieldValidator ID =RequiredFieldValidator1runat =serverToolTip =Required

ControlToValidate =TextBox1ErrorMessage =* >

解决方案

使用TextBox的ToolTip,或者在验证器的ErrorMessage属性中写入消息。



但是根据你的尝试,我认为你需要看到下面答案中列出的演示。

jquery - 显示工具提示等验证错误消息 - Stack Overflow [ ^ ]

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="*">

解决方案

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[^]


这篇关于如何在工具提示中显示ASP.NET错误消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆