6
Answers

How to get asp textbox values by loop



Suppose I have 5 textbox named  txtRate1,txtRate2,txtRate3,txtRate3,txtRate3

all are asp control. 
I want to get values using for loop .

for(int i=1; i<=5; i++)
{
string s= ("txtRate"+i).Text;


}

it gives error .

Answers (6)