Dear fnds,
i have 2 text boxes 1 button, my question is i am entering (example 123 or abc ) in 1st textbox, when i click button then ( 321 or cba ) will dispaly in 2nd textbox.
please tell how to write code for this.
cheers
Dear fnds,
i have 2 text boxes 1 button, my question is i am entering (example 123 or abc ) in 1st textbox, when i click button then ( 321 or cba ) will dispaly in 2nd textbox.
please tell how to write code for this.
cheers
use reverse function
I could not find the Reverse function . Though created my own function using a for loop.
private string reverse(string str)
{
string rev = string.Empty;
for (int i=str.Length-1; i>=0;i--)
{
rev += str[i];
}
return rev;
}
try using this.