AntonioVino
Programmer
Anyone an idea how to list ALL the html or pageobjects from codebehind.
i want to find controls with a tooptip.
I've got a recursive loop going through me.controls but that just does not get all controls
[tt]
Public adss As String = "| | | | | | | | | "
Public adder As Integer = 0
Public sb As String
Protected Sub GetAllObjects(ByVal ctrl As Object)
sb += Left(adss,(adder*2)+1)&CType(ctrl.id,String)&"<br/>"
Try
If ctrl.tooltip<>"" Then sb+="HIT-"&ctrl.tooltip&"<br/>"
Catch ex As Exception
End Try
adder += 1
For Each c In ctrl.Controls
If c.controls.count > 0 Then GetAllObjects(c)
Next
adder -= 1
End Sub
response.write(sb):response.end
[/tt]
i want to find controls with a tooptip.
I've got a recursive loop going through me.controls but that just does not get all controls
[tt]
Public adss As String = "| | | | | | | | | "
Public adder As Integer = 0
Public sb As String
Protected Sub GetAllObjects(ByVal ctrl As Object)
sb += Left(adss,(adder*2)+1)&CType(ctrl.id,String)&"<br/>"
Try
If ctrl.tooltip<>"" Then sb+="HIT-"&ctrl.tooltip&"<br/>"
Catch ex As Exception
End Try
adder += 1
For Each c In ctrl.Controls
If c.controls.count > 0 Then GetAllObjects(c)
Next
adder -= 1
End Sub
response.write(sb):response.end
[/tt]