Hi mahesh213,
Convert to Decimal. Then use ToString method to convert the decimal value.
HTML
<asp:TextBox runat="server" ID="txtNumber" />
<asp:Button Text="Convert" runat="server" OnClick="ConvertNumber" />
<hr />
<asp:Label ID="lblNumber" runat="server" />
Code
C#
protected void ConvertNumber(object sender, EventArgs e)
{
string value = txtNumber.Text;
string updatedvalue = Convert.ToDecimal(value).ToString("N2");
lblNumber.Text = updatedvalue;
}
VB.Net
Protected Sub ConvertNumber(ByVal sender As Object, ByVal e As EventArgs)
Dim value As String = txtNumber.Text
Dim updatedvalue As String = Convert.ToDecimal(value).ToString("N2")
lblNumber.Text = updatedvalue
End Sub
Screenshot