1
Reply

C# error please rectify

Ask a question
abdur rehman

abdur rehman

10 years ago
655
1
s = txt.Text.ToUpper();
n=s.Length;
for (int i = 0; i <n; i++)
{
s = s[i].ToString();
lbl.Text = s;
Response.Write(lbl.Text);
Response.Write("\n");
txt.text="answer"(I am giving)
 
i am getting index was outside the bounds of the array 

Answers (1)