making a label variable

J

Johan

Hello,

I have to following problem

normal situation
label.text = "blablabla"

What I would like to do, is make the label variable.

eg.

Dim currentLbl As New Label()

For Each ftranslationrec In ftranslation.Tables(0).Rows

lbl = ftranslationrec("label")

LBL_FROM.Text = ftranslationrec("translation") --> THIS WORKS !!!!

currentLbl.FindControl(ftranslationrec("label")) --> THIS DOES NOT WORK
!!!

currentLbl.Text = ftranslationrec("translation")

Next

Is this possible in vb dot net ?


Thanks in advance,
Johan Van Loo
 
H

Herfried K. Wagner [MVP]

* "Johan @ pandora.Be said:
normal situation
label.text = "blablabla"

What I would like to do, is make the label variable.

eg.

Dim currentLbl As New Label()

For Each ftranslationrec In ftranslation.Tables(0).Rows

lbl = ftranslationrec("label")

LBL_FROM.Text = ftranslationrec("translation") --> THIS WORKS !!!!

currentLbl.FindControl(ftranslationrec("label")) --> THIS DOES NOT WORK
!!!

currentLbl.Text = ftranslationrec("translation")

Next

Is this possible in vb dot net ?

Are you talking about Windows Forms or Web Forms?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top