.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month

Home >> Code Snippets >> OOPS >> Post New Resource Bookmark and Share   

 Subscribe to Code Snippets

Generate random string using c#

Posted By:Dhivakaran       Posted Date: November 30, 2010    Points: 15    Category: OOPS    URL: http://www.dotnetspark.com  

below methods provides random string

 public static string RandomString()
            string strResponse = string.Empty;
                strResponse = DateTime.Now.ToString("ddMMyyyyHHmmss");
            catch (Exception ex)
                strResponse = ex.Message.ToString();
            return strResponse;


Further Readings:


No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More code samples in C#, ASP.Net, Vb.Net and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend