Solved

generate Password

Posted on 2010-09-17
1
383 Views
Last Modified: 2012-08-13
hi experts, ia have this code
VIEW file
as I can call me 100 times to generate 100 different pwd, the ideal would be that the result shows me in a datagrid?
CreateRandomPassword.jpg
0
Comment
Question by:enrique_aeo
1 Comment
 
LVL 41

Accepted Solution

by:
guru_sami earned 250 total points
ID: 33705385
somethiing like this:

 List<string> list = new List<string>();
        int count = 100;
        int passwordlength =6;
        for (int i = 0; i < count; i++)
        {
            list.Add(CreateRandomPassword(passwordlength));
        }
        Datagrid1.DataSource=list;
        Datagrid1.DataBind();

You can use other ways to store instead of list e.g. Collection or your custom class.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now