Solved

generate Password

Posted on 2010-09-17
1
370 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
Comment Utility
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

762 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

11 Experts available now in Live!

Get 1:1 Help Now