如何使用C#验证在asp.net中Web服务的Web方法中输入的字符长度? [英] How to validate the length of characters entered in a web method of Web service in asp.net with C#?
本文介绍了如何使用C#验证在asp.net中Web服务的Web方法中输入的字符长度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用C#验证在asp.net中Web服务的Web方法中输入的字符长度?
我们正在使用VS 2005和c#2.0。
解决方案
您可以在这里使用正则表达式。请查看以下链接了解更多信息。
RegEx Max和Min length characters
How to validate the length of character entered in a web method of Web service in asp.net with C#?
We are using VS 2005 and c# 2.0.
解决方案
You can use Regular Expression here.Please check below link for more info.
RegEx Max and Min length characters
这篇关于如何使用C#验证在asp.net中Web服务的Web方法中输入的字符长度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文