如何使用标准功能检查文本框为空 [英] How to check the textbox empty using standared function
本文介绍了如何使用标准功能检查文本框为空的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用标准函数检查文本框为空
How to check the textbox empty using standared function
推荐答案
如果您正在寻找服务器端功能,那么您可以使用它来解决您的问题。
string.IsNullOrEmpty();
快乐编码:)
If you are looking for Server side function then you can use this to solve you problem.
string.IsNullOrEmpty();
Happy Coding :)
你也可以使用下面的代码
you can also use the following code
if (textBox1.Text == DBNull.Value.ToString())
{
your message
}
使用jQuery你可以做像这样....
by using jQuery you can do like this....
这篇关于如何使用标准功能检查文本框为空的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文