Simple C#.Net Encryption and Decryption for String

There are many ways is there to encrypt and decrypt the data in c#.Net. In this post we have simple sample code to implement the cryptography algorithm in C#.Net to encrypt and decrypt information, either passwords or connection strings. This code uses the System.Security.Cryptography namespace to do the encryption and decryption. Please find the code […]

C#.Net convert date to string and string formatting

It’s very easy to convert date time to string in C#.Net. To convert DateTime into string you can use String.Format function in C# ASP.Net. And to convert string into DateTime you can use Convert.ToDateTime function this post will show how to do this conversion. If you have Date Time value in the Data table and […]

String Format in C#.Net – Add zeroes before number

In dot net we can format the numbers in easy way. We can use the static method (String.Format) or instance method (int.Tostring). Please find the below example to format the numbers with spaces or zeroes . Add zeroes before number To add zeroes before a number, use colon separator “:” and write as many zeroes […]

Proudly powered by WordPress   Premium Style Theme by www.gopiplus.com