# Sdkcontrols inside a page or tabpanel are not available with webpage.controls iterator

**URL:** <https://forum.xojo.com/t/sdkcontrols-inside-a-page-or-tabpanel-are-not-available-with-webpage-controls-iterator/66300>\
**Category:** Web SDK\
**Created:** [October 27, 2021, 9:56pm UTC](https://forum.xojo.com/t/sdkcontrols-inside-a-page-or-tabpanel-are-not-available-with-webpage-controls-iterator/66300 "2021-10-27T21:56:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jean-Yves\_Pochez](https://forum.xojo.com/user_avatar/forum.xojo.com/jean-yves_pochez/32/21769_2.png) [@Jean-Yves\_Pochez](https://forum.xojo.com/u/Jean-Yves_Pochez)\
**Post date:** [October 27, 2021, 9:56pm UTC](https://forum.xojo.com/t/sdkcontrols-inside-a-page-or-tabpanel-are-not-available-with-webpage-controls-iterator/66300/1 "2021-10-27T21:56:20Z")

</div>

see \<[https://xojo.com/issue/66350](https://xojo.com/issue/66350)\> and attached project  
the visualcontrol (sdk) inside the tabpanel is not listed.

 ![Capture d’écran 2021-10-27 à 23.55.04](https://forum.xojo.com/uploads/default/original/2X/b/bafc1785df06cd65f947894098c4e0b32dc675aa.png)  
 ![Capture d’écran 2021-10-27 à 23.55.41](https://forum.xojo.com/uploads/default/original/2X/5/5248b714ce08c95c683ddc34a5a218f2f28cca43.png)

---

<div class="post-metadata">

**Author:** ![Greg\_O\_Lone](https://forum.xojo.com/user_avatar/forum.xojo.com/greg_o_lone/32/49_2.png) [@Greg\_O\_Lone](https://forum.xojo.com/u/Greg_O_Lone)\
**Post date:** [October 28, 2021, 3:15am UTC](https://forum.xojo.com/t/sdkcontrols-inside-a-page-or-tabpanel-are-not-available-with-webpage-controls-iterator/66300/2 "2021-10-28T03:15:12Z")

</div>

Yeah it wouldn’t be. Non WebSDK controls that are on the tab panel don’t show up in that iterator either.

What’s missing here is that the tab panel (and other controls that can contain other controls) don’t have a control iterator or a ControlCount method so you’d have to use a loop wrapped in a try-catch to access those controls right now using their ControlAt method.

---

<div class="post-metadata">

**Author:** ![Jean-Yves\_Pochez](https://forum.xojo.com/user_avatar/forum.xojo.com/jean-yves_pochez/32/21769_2.png) [@Jean-Yves\_Pochez](https://forum.xojo.com/u/Jean-Yves_Pochez)\
**Post date:** [October 28, 2021, 5:53pm UTC](https://forum.xojo.com/t/sdkcontrols-inside-a-page-or-tabpanel-are-not-available-with-webpage-controls-iterator/66300/3 "2021-10-28T17:53:29Z")

</div>

yes with something like this it’s now working.

```auto
For Each c As WebControl In Me.Page.Controls
  TextAreaListControls.Text = TextAreaListControls.Text + c.Name+EndOfLine
  If c IsA WebPagePanel Then
    Dim wp As WebPagePanel = WebPagePanel(c)
    If wp<>Nil Then
      For i As Integer=0 To wp.LastControlIndex
        Dim cc As WebControl = wp.ControlAt( i)
        If cc<>Nil Then
          TextAreaListControls.Text = TextAreaListControls.Text + cc.Name+EndOfLine
        End If
      Next i
    End If
  End If
Next c

```

 ![Capture d’écran 2021-10-28 à 19.53.08](https://forum.xojo.com/uploads/default/original/2X/0/0eff8b81f580690091010882dc6c6e0a2625322a.png)  
 ![Capture d’écran 2021-10-28 à 19.51.43](https://forum.xojo.com/uploads/default/original/2X/f/fbad92decb6266cb2d6ac7876b71ada25b62a881.png)
