Getting text of a label in a datalist.

  • Thread starter Thread starter Onur Bozkurt
  • Start date Start date
O

Onur Bozkurt

I have a label in a datalist. I can reach it by controls collection of
datalist. I can get its ID or change its visible property but I can't get
its text.
Anybody has an idea why..?
 
Yes I tried...

alien2_51 said:
This may be a dumb question.. Have you tried casting it as a label..?
CType(Page.Controls(0), Label).Text = ""
 

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

Back
Top