ASP.NET Regular Expression for Password Field to not contain Username?

No need for a regular expression:!password.Text. Contains(userName. Text).

Thx Oded. I was trying to use a regular expression validator to do it. Guess I forgot about Custom Field Validator.

– softwaredeveloper Nov 15 at 20:03.

I would use a separate CompareValidator to make sure that they're not the same.

Nope. This will only work if the values in both controls are identical, not if passwrod contains username. – Oded Nov 15 at 20:04 You're right.

I didn't see that you were looking for whether the username was contained in the password. – Garrett Vlieger Nov 15 at 20:06.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions