<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Browser Forms</title><link>https://www.infopathdev.com:443/forums/40.aspx</link><description>For browser form specific questions</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>yet another cascading dropdown post</title><link>https://www.infopathdev.com:443/forums/thread/41582.aspx</link><pubDate>Tue, 12 May 2009 13:33:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:41582</guid><dc:creator>mantisory</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/41582.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=41582</wfw:commentRss><description>Hi there,
I have two dropdowns on my browser based form, one that is a static list of all the sites on my sharepoint server. I would like to bind the second dropdownlist to the subsites for the selected site. I am thinking I can use the GetAllSubWebCollection webservice but am unsure how to bind my second dropdown to it...&lt;br /&gt;
I can retrieve the nodelist on the ddlSite_Changed event, and iterate through them to filter them (and create a nodelist or something?) based on the selection...but what do i need to do after that?&lt;br /&gt;
Any suggestions would be greatly appreciated.&lt;br /&gt;
Byron&lt;br /&gt;
p.s. - here is the code I have so far for the site_changed event:&lt;br /&gt;&lt;br /&gt;

 Dim dataSourceName As String = &amp;quot;GetAllSubWebCollection&amp;quot;&lt;br /&gt;
            Dim curNav As XPathNavigator&lt;br /&gt;
            Dim xnMain As XPathNavigator = Me.DataSources(dataSourceName).CreateNavigator&lt;br /&gt;
            Dim nm As XmlNamespaceManager = New XmlNamespaceManager(New NameTable)&lt;br /&gt;
            nm.AddNamespace(&amp;quot;dfs&amp;quot;, &amp;quot;http://schemas.microsoft.com/office/infopath/2003/dataFormSolution&amp;quot;)&lt;br /&gt;
            nm.AddNamespace(&amp;quot;def&amp;quot;, &amp;quot;http://schemas.microsoft.com/sharepoint/soap/&amp;quot;)&lt;br /&gt;
            nm.AddNamespace(&amp;quot;tns&amp;quot;, &amp;quot;http://schemas.microsoft.com/sharepoint/soap/&amp;quot;)&lt;br /&gt;
            nm.AddNamespace(&amp;quot;my&amp;quot;, &amp;quot;http://schemas.microsoft.com/office/infopath/2003/myXSD/2009-05-11T16:04:09&amp;quot;)&lt;br /&gt;
            nm.AddNamespace(&amp;quot;xsi&amp;quot;, &amp;quot;http://www.w3.org/2001/XMLSchema-instance&amp;quot;)&lt;br /&gt;
            Dim xxx As XPathNodeIterator = xnMain.Select(&amp;quot;/dfs:myFields/dfs:dataFields/def:GetAllSubWebCollectionResponse/def:GetAllSubWebCollectionResult/def:Webs/def:Web&amp;quot;, nm)&lt;br /&gt;
            Dim s As String&lt;br /&gt;
            While xxx.MoveNext()&lt;br /&gt;
                s = xxx.Current.GetAttribute(&amp;quot;Url&amp;quot;, nm.DefaultNamespace)&lt;br /&gt;
                If s.Contains(e.NewValue) Then&lt;br /&gt;
                   &amp;#39;what do I do Here?&lt;br /&gt;
                End If&lt;br /&gt;
            End While&lt;br /&gt;</description></item></channel></rss>