Base64 to String [C#]

In this post we will see how to convert Base64 string to string. .Net provides .FromBase64String() method in System.Convert class to convert Base64 string to string. While converting Base64 string to string it first converts base64 string to byte array...

String to Base64 [C#]

In this post we will look how to convert string to Base64 using C#. .Net provides .ToBase64String() method in System.Convert class that we can use to convert string to base64. It basically converts value of an array of 8-bit unsigned integers to its...

Write to text file [C#]

File class in System.IO Namespace also contains methods to write contents to text tile. WriteAllText() method to write string to text file. WriteAllLines() method is used to write line by line into text file. And WriteLine() method writes or appends...

C# string

C# string is a object of class String. Value of string is text, which is nothing but the collections of read-only char Objects. In C# we can do various string operations like strings splitting, string indexOf, string reverse, string format , we can...

gridview add new row

In this post we will see how to add new row to grid. Gridview have a footer template. By default the visibility is false for this footer template . On add new row button click event, we will set the visibility of Gridview footer row to true and bind the grid again. Aspx code: <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False">...