C#3.5中的区分大小写的属性 [英] case sensitive property in c# 3.5
本文介绍了C#3.5中的区分大小写的属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的asp.net项目中,使用C#从SQL Server数据库中密码匹配时,如何以登录形式实现区分大小写的属性.我还需要代码.
how can i implement case sensitive property in login form in case of password match from database of sql server in my project of asp.net with c#. I need also the code .
推荐答案
如果您实际上是针对数据库检查密码,则可以使用 ^ ]属性,位于string.Compare
^ ].尝试将值设置为None
.
If you are actually checking the password against the database, you can use the CompareOptions[^] property in thestring.Compare
method[^]. Try by setting the value toNone
.
这篇关于C#3.5中的区分大小写的属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文