Advertisement
Create one method and call that method in Insert mode or update mode. It generate random password.
Check the below code Example How to use.
public static string CreateRandomPassword(int PasswordLength) { string _allowedChars = "0123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNOPQRSTUVWXYZ"; Random randNum = new Random(); char[] chars = new char[PasswordLength]; int allowedCharCount = _allowedChars.Length; for (int i = 0; i < PasswordLength; i++) { chars[i] = _allowedChars[(int)((_allowedChars.Length) * randNum.NextDouble())]; } return new string(chars); }
call this method in Insert mode or update mode,based upon your requirement.
If you give 8 meants it will show like this ZeXdjOdx
string pwd = CreateRandomPassword(8);
Good one, very informative.. thanks for sharing your views and ideas.. it is very useful to me.. thanks once again.
ReplyDeleteDot Net Training in chennai | Dot Net Training institute in chennai
Inspiring writings and I greatly admired what you have to say , I hope you continue to provide new ideas for us all and greetings success always for you..
ReplyDeletewhite label website builder
Thanks for posting this info. I just want to let you know that I just check out your site and I find it very interesting and informative. I can't wait to read lots of your posts
ReplyDeletepython training institute in marathahalli | python training institute in btm
Great post! I am actually getting ready to across this information, It’s very helpful for this blog.Also great with all of the valuable information you have Keep up the good work you are doing well.
ReplyDeleteexcel advanced excel training in bangalore | Devops Training in Chennai
I read this post two times, I like it so much, please try to keep posting & Let me introduce other material that may be good for our community.
ReplyDeleteJava training in Bangalore | Java training in Marathahalli
Java training in Bangalore | Java training in Btm layout
Java training in Bangalore |Java training in Rajaji nagar
Nice blog
ReplyDeletejava training in Marathahalli
spring training in Marathahalli
java training institute in Marathahalli
spring and hibernate training in Marathahalli
Nice post..
ReplyDeleteDOT NET training in btm
dot net training institute in btm
dot net course in btm
best dot net training institute in btm
ReplyDeleteExcellent blog..! This is the best for my development and keep updating...
JMeter Training in Chennai
Appium Training in Chennai
Appium Online Training
Appium Training in Coimbatore
JMeter Training in Coimbatore
Soft Skills Training in Chennai
Đặt vé tại phòng vé Aivivu, tham khảo
ReplyDeletevé máy bay đi Mỹ hạng thương gia
đặt vé máy bay đi hà nội vietnam airline
vé máy bay đà lạt hồ chí minh
giá vé máy bay hà nội nhatrang
vietnam airlines quốc tế
taxi sân bay trọn gói
combo quy nhơn bamboo