Solved

generate Password

Posted on 2010-09-17
1
410 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
[X]
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
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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

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 article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

717 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