hi
I used belwo code to display number to persian language...
public 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;
}
AND
LblTsh.Text = toPersianNumber(_dr["Phone"].ToString());
now I used below code to display remainng character into label
<script type="text/javascript">
$(function () {
var i = 0;
$('[id*=TxtSMS]').keydown(function (e) {
var ctrlKey = 67, vKey = 86;
if (e.keyCode != ctrlKey && e.keyCode != vKey) {
$('[id*=LblCount]').html($(this).val().length);
if ($(this).val().length % 70 == 0) {
i = $(this).val().length / 70;
$('.MessageCount').html(i);
}
}
});
$("[id*=TxtSMS]").bind('paste', function (e) {
setTimeout(function () {
$('[id*=LblCount]').html($("[id*=TxtSMS]").val().length);
var msgCount = $("[id*=TxtSMS]").val().length / 70;
$('.MessageCount').html(Math.floor(msgCount));
}, 100);
});
});
</script>
now how I can use topersiannumber metod for above label to display number of character in persian number?
Best regards
neda