M
mosscliffe
I am still very new to all this, so please bear with me.
I am trying to create a debugButton, which when pressed would give me a
list of all the controls on a page and their attributes, but I just
can't work out the syntax. I have tried lots of combinations of the
code below, but rather than show that I will show it in pseudo code
dim cntrl as control
dim attr as attribute
for each cntrl in page.controls
response.write("Control: " & cntrl.name & "Type: " & control.type &
"<BR>")
for each attr in cntrl.attributes
if not isnothing(cntrl.attibute) then
response.write(attr.name & " = " & attr.value)
next
next
You will see from the above how naive I am in VB OOP syntax
Thanks
Tim
I am trying to create a debugButton, which when pressed would give me a
list of all the controls on a page and their attributes, but I just
can't work out the syntax. I have tried lots of combinations of the
code below, but rather than show that I will show it in pseudo code
dim cntrl as control
dim attr as attribute
for each cntrl in page.controls
response.write("Control: " & cntrl.name & "Type: " & control.type &
"<BR>")
for each attr in cntrl.attributes
if not isnothing(cntrl.attibute) then
response.write(attr.name & " = " & attr.value)
next
next
You will see from the above how naive I am in VB OOP syntax
Thanks
Tim