Setting button text

  • Thread starter Thread starter Chris
  • Start date Start date
C

Chris

Hi,
I store a button ID in my database, then when the aspx page is loaded
I want to make the caption (text) of said button read something other
than the default.
How can I do this ? obviously I cannot do myreader("buttonid").text =
"xxx"
I tried looping through the controls but can't seem to do it that way
either:

dim c as control
for each c in me.controls
if c.id = myreader("buttonid") then c.text = "xxx"
next

anybody help me ?
cheers
 
Back
Top