Hi Amit,
Check this example. Now please take its reference and correct your code.
C#
protected void btnRemove_Click(object sender, EventArgs e)
{
char[] buffer = new char[10];
buffer[0] = '1';
buffer = buffer.Where(c => c.ToString() != "\0").ToArray();
Response.Write(new String(buffer));
}
VB.Net
Protected Sub btnRemove_Click(ByVal sender As Object, ByVal e As EventArgs)
Dim buffer As Char() = New Char(9) {}
buffer(0) = "1"c
buffer = buffer.Where(Function(c) c.ToString() <> vbNullChar).ToArray()
Response.Write(New String(buffer))
End Sub