Password Check (Capital and Small)
-
How to do that sir... Regards
Nour Abdel-Salam... A Trainer and a Web Developer in Jedda Int'l Computer Center(JICC)
Hi, I have written a Custom function for that. let me know if it work for you
public bool IsInputMatch(string UserInput, string DataBaseInput) { if(Regex.IsMatch(UserInput,DataBaseInput)) return true; else return false; }
now if you useif(IsInputMatch("AdMiN", "ADMIN")) MessageBox.Show("Valid User"); else MessageBox.Show("InValid User");
Output : InValid User and for thisif(IsInputMatch("ADMIN", "ADMIN")) MessageBox.Show("Valid User"); else MessageBox.Show("InValid User");
Output : Valid User ---- Let me know when done !!! Good luck !!!!:rose:Best Regards ----------------- Abhijit Jana Microsoft Certified Professional "Success is Journey it's not a destination"
-
Hi, I have written a Custom function for that. let me know if it work for you
public bool IsInputMatch(string UserInput, string DataBaseInput) { if(Regex.IsMatch(UserInput,DataBaseInput)) return true; else return false; }
now if you use
if(IsInputMatch("AdMiN", "ADMIN")) MessageBox.Show("Valid User"); else MessageBox.Show("InValid User");
Output : InValid User and for this
if(IsInputMatch("ADMIN", "ADMIN")) MessageBox.Show("Valid User"); else MessageBox.Show("InValid User");
Output : Valid User ---- Let me know when done !!! Good luck !!!!:rose:
Best Regards ----------------- Abhijit Jana Microsoft Certified Professional "Success is Journey it's not a destination"
THANKS YAAR! :-O
-
THANKS YAAR! :-O
you are welcome !!!!
Best Regards ----------------- Abhijit Jana Microsoft Certified Professional "Success is Journey it's not a destination"
-
Hi, I have written a Custom function for that. let me know if it work for you
public bool IsInputMatch(string UserInput, string DataBaseInput) { if(Regex.IsMatch(UserInput,DataBaseInput)) return true; else return false; }
now if you use
if(IsInputMatch("AdMiN", "ADMIN")) MessageBox.Show("Valid User"); else MessageBox.Show("InValid User");
Output : InValid User and for this
if(IsInputMatch("ADMIN", "ADMIN")) MessageBox.Show("Valid User"); else MessageBox.Show("InValid User");
Output : Valid User ---- Let me know when done !!! Good luck !!!!:rose:
Best Regards ----------------- Abhijit Jana Microsoft Certified Professional "Success is Journey it's not a destination"
-
Thanks alot... It works Love you
Nour Abdel-Salam... A Trainer and a Web Developer in Jedda Int'l Computer Center(JICC)
welcome !!! if you like the ans then you should vote for them !!!
Best Regards ----------------- Abhijit Jana Microsoft Certified Professional "Success is Journey it's not a destination"
-
welcome !!! if you like the ans then you should vote for them !!!
Best Regards ----------------- Abhijit Jana Microsoft Certified Professional "Success is Journey it's not a destination"
Thanks yaar. And let me know how to disable the "COPY" option while user select the password and right click on it?
-
Thanks yaar. And let me know how to disable the "COPY" option while user select the password and right click on it?
John Sundar wrote:
And let me know how to disable the "COPY" option while user select the password and right click on it
it is very ease in windows just set
Textbox1.ShortcutsEnabled=false
and use own ContextmenuStrip. but i am not sure about asp.net . i have to check !!!Best Regards ----------------- Abhijit Jana Microsoft Certified Professional "Success is Journey it's not a destination"
-
Thanks yaar. And let me know how to disable the "COPY" option while user select the password and right click on it?
hi jonh , if you use html passwordtext box , it should not allow copy !!!
Best Regards ----------------- Abhijit Jana Microsoft Certified Professional "Success is Journey it's not a destination"
-
hi jonh , if you use html passwordtext box , it should not allow copy !!!
Best Regards ----------------- Abhijit Jana Microsoft Certified Professional "Success is Journey it's not a destination"
S..thanks.. i implemented it.... below there are two questions posted by me... if possible, help me plz. thanks in advance..........
-
Hi, I have written a Custom function for that. let me know if it work for you
public bool IsInputMatch(string UserInput, string DataBaseInput) { if(Regex.IsMatch(UserInput,DataBaseInput)) return true; else return false; }
now if you useif(IsInputMatch("AdMiN", "ADMIN")) MessageBox.Show("Valid User"); else MessageBox.Show("InValid User");
Output : InValid User and for thisif(IsInputMatch("ADMIN", "ADMIN")) MessageBox.Show("Valid User"); else MessageBox.Show("InValid User");
Output : Valid User ---- Let me know when done !!! Good luck !!!!:rose:Best Regards ----------------- Abhijit Jana Microsoft Certified Professional "Success is Journey it's not a destination"
Very convenient. :^) You can make a password that matches many different strings... These all show "true": MessageBox.Show(IsInputMatch("Anything that you like", ".*")); MessageBox.Show(IsInputMatch("I mean anything", ".*")); MessageBox.Show(IsInputMatch("Really whatever you want", ".*")); MessageBox.Show(IsInputMatch("", "(hello)?")); MessageBox.Show(IsInputMatch("hello", "(hello)?")); MessageBox.Show(IsInputMatch("asdf", "....")); MessageBox.Show(IsInputMatch("1234", "....")); MessageBox.Show(IsInputMatch("baad", "....")); MessageBox.Show(IsInputMatch("oops", "....")); MessageBox.Show(IsInputMatch("1234", "\\d+")); MessageBox.Show(IsInputMatch("0", "\\d+")); MessageBox.Show(IsInputMatch("987489792364587634582345983745", "\\d+"));
Despite everything, the person most likely to be fooling you next is yourself.