Hi nedash,
Refer the below code. As per your requirement
<asp:Label ID="lblKol" runat="server" CssClass="Mkol3">12345</asp:Label>
Code
protected void Page_Load(object sender, EventArgs e)
{
string value = lblKol.Text.Trim();
char[] charArray = value.ToCharArray();
Array.Reverse(charArray);
lblKol.Text = toPersianNumber(new string(charArray));
}
private string toPersianNumber(string input)
{
string[] persian = new string[10] { "۰", "۱", "۲", "۳", "۴", "۵", "۶", "۷", "۸", "۹" };
for (int j = 0; j < persian.Length; j++)
{
input = input.Replace(j.ToString(), persian[j]);
}
return input;
}
Output
12345 -> ۵۴۳۲۱