Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

generate Password

Posted on 2010-09-17
1
395 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

856 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