C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Resources » Code Snippets » General »

How to generate SecurityBot Text using C#


Posted Date: 18 Sep 2008    Resource Type: Code Snippets    Category: General
Author: raviMember Level: Gold    
Rating: 1 out of 5Points: 10



Console Application using C# to show how th generate secrutybot text

try
{
Random rnd=new Random();

const string Alphabets="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
string stest=Alphabets.Substring(rnd.Next(1,26));
string sTest=stest.Substring(0,1);
string stest1=Alphabets.Substring(rnd.Next(16,52));
string sTest1=stest1.Substring(0,1);
txtShow.Text= rnd.Next(10,99).ToString()+sTest1.ToString()+rnd.Next(2,9)+sTest.ToString();
string s="";
}
catch(Exception ex)
{
txtShow.Text= ex.Message.ToString();
}




Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Sign In to add tags.
Securitybot  .  Generation  .  Console application  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Dynamic Safe array
Previous Resource: Reading value from App.Config C# Windows Application - Winforms
Return to Discussion Resource Index
Post New Resource
Category: General


Post resources and earn money!
 
Related Resources



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use