please help me to combine label id, text and database content
first, i got 3 data in my database (tabel name: "mydata", content: data001, data002, data003) << [succeed]
then, in my Asp.net webpage, i put 3 Label (ID: out1, out2, out3) << [succeed]
in my .cs file, i insert
connect the database, then the myquery(select * from mydata) << [succeed]
SqlDataReader reader = myquery.ExecuteReader(); << [succeed]
while(reader.Read())
{
for(int a=0;a<4;a++)
{
"out" + a.ToString() + ".Text" = (string)reader["mydata"]; << [FAILED]
error message: "The left-hand side of an assignment must be a variable, property or indexer"
i wanna automated the label id ( ...
Go to the complete details ...