验证c#asp.net 2.0中的文本框 [英] validation for a textbox in c# asp.net 2.0

查看:58
本文介绍了验证c#asp.net 2.0中的文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在c#asp.net 2.0中,当我没有在文本框中输入文本,如果我移动到下一个文本框,它应该显示错误消息..如何做到这一点......任何人都可以帮助我..

解决方案

您好,

您只需在文本框TextChanged事件上编写代码。



谢谢

Abhimanyu Rawat


您好,



您可以使用RequiredFieldvalidator控件


< blockquote>尝试这个 [ ^ ]



希望它帮助:)


in c# asp.net 2.0 when i did not enter text in textbox and if i move to next textbox it should display error message..how to do that..can anyone help me..

解决方案

Hello,
You just write code on text box TextChanged event.

Thanks
Abhimanyu Rawat


Hi,

you can use RequiredFieldvalidator controls


Try This[^]

hope it helps :)


这篇关于验证c#asp.net 2.0中的文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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