<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: cascading dropdown lists don't show output correctly</title><link>https://www.infopathdev.com:443/forums/thread/42609.aspx</link><pubDate>Mon, 08 Jun 2009 17:24:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42609</guid><dc:creator>dvnandover</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42609.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=42609</wfw:commentRss><description>&lt;p&gt;It worked. thank you very much for your help.&lt;/p&gt;</description></item><item><title>Re: cascading dropdown lists don't show output correctly</title><link>https://www.infopathdev.com:443/forums/thread/42608.aspx</link><pubDate>Mon, 08 Jun 2009 17:13:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42608</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42608.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=42608</wfw:commentRss><description>&lt;p&gt;Between ScheduleLocation and @.&lt;/p&gt;</description></item><item><title>Re: cascading dropdown lists don't show output correctly</title><link>https://www.infopathdev.com:443/forums/thread/42606.aspx</link><pubDate>Mon, 08 Jun 2009 16:50:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42606</guid><dc:creator>dvnandover</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42606.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=42606</wfw:commentRss><description>&lt;p&gt;Here is the expression string: &lt;/p&gt;
&lt;p&gt;&amp;#39;/dfs:myFields/dfs:dataFields/d:ScheduleResource[d:ScheduleLocation@LOCATION!=&amp;#39;CHELSEA&amp;#39;]&amp;#39;&lt;/p&gt;
&lt;p&gt;where do you suggest the forward slash go?&lt;/p&gt;</description></item><item><title>Re: cascading dropdown lists don't show output correctly</title><link>https://www.infopathdev.com:443/forums/thread/42605.aspx</link><pubDate>Mon, 08 Jun 2009 16:27:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42605</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42605.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=42605</wfw:commentRss><description>&lt;p&gt;You need a forward slash either at the end of&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;nbsp;&amp;quot;/dfs:myFields/dfs:dataFields/d:ScheduleResource[d:ScheduleLocation&amp;quot;;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;or at the beginning of&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;quot;@&amp;quot;&lt;/p&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;blockquote dir="ltr" style="MARGIN-RIGHT:0px;"&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;</description></item><item><title>Re: cascading dropdown lists don't show output correctly</title><link>https://www.infopathdev.com:443/forums/thread/42603.aspx</link><pubDate>Mon, 08 Jun 2009 16:05:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42603</guid><dc:creator>dvnandover</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42603.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=42603</wfw:commentRss><description>&lt;p&gt;Yes it is frederik&amp;#39;s codes. I modified codes as suggested by you then&amp;nbsp;the event execution failed.&amp;nbsp;As&amp;nbsp;i step through the&amp;nbsp;codes in debug mode i&amp;nbsp;got the following error &amp;quot;&amp;#39;/dfs:myFields/dfs:dataFields/d:ScheduleResource[d:ScheduleLocation@LOCATION!=&amp;#39;MGH CHELSEA&amp;#39;]&amp;#39; has an invalid token&amp;quot; at this line of code: &amp;#39;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;XPathNodeIterator&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; items = xnFD.Select(xPathString,&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.NamespaceManager); The xml file created by the dataSource has something like shown below. &lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;dfs:myFields&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt; &lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;xmlns:dfs&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;\&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;http://schemas.microsoft.com/office/infopath/2003/dataFormSolution\&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt; 
&lt;p&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;dfs:dataFields&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/p&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;d:ScheduleResource&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt; &lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;xmlns:d&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;\&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;http://schemas.microsoft.com/office/infopath/2003/ado/dataFields\&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt; &lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;LocationID&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;\&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;1\&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt; &lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;Resource&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;\&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;20PR \&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt; &lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;RowVersion&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;\&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;000000000105b37b\&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt; 
&lt;p&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;d:ScheduleLocation&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt; &lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;LocationID&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;\&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;1\&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt; &lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;LOCATION&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;\&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;MGH\&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;/&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;---&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt; 
&lt;p&gt;&amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;d:ScheduleResource&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/p&gt;&amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;dfs:dataFields&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt; 
&lt;p&gt;&amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;dfs:myFields&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;</description></item><item><title>Re: cascading dropdown lists don't show output correctly</title><link>https://www.infopathdev.com:443/forums/thread/42567.aspx</link><pubDate>Sat, 06 Jun 2009 17:18:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42567</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42567.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=42567</wfw:commentRss><description>&lt;p&gt;You are using &lt;a href="http://www.silversandsassociates.com/HOW_TO_use_Cascading_Dropdown_ListBoxes_within_an_InfoPath_Web_Form.pdf"&gt;Frederik&amp;#39;s code&lt;/a&gt;, is that correct?&lt;/p&gt;
&lt;p&gt;I think that one problem you are having is that you probably have a more complex data structure than his sample does. From the looks of the SQL statement to get your Region information, I&amp;#39;d think you&amp;#39;d need to modify the following lines:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Instead of:&lt;br /&gt;&lt;/strong&gt;string repeatingNode = &amp;quot;/dfs:myFields/dfs:dataFields/d:ScheduleResource/d:ScheduleLocation&amp;quot;;&lt;br /&gt;&lt;strong&gt;Use:&lt;br /&gt;&lt;/strong&gt;string repeatingNode = &amp;quot;/dfs:myFields/dfs:dataFields/d:ScheduleResource&lt;strong&gt;[&lt;/strong&gt;d:ScheduleLocation&lt;strong&gt;/&lt;/strong&gt;&amp;quot;;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;and&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Instead of:&lt;/strong&gt;&lt;br /&gt;string xPathString = repeatingNode + &amp;quot;[@&amp;quot; + ForeignKey + &amp;quot;!=&amp;#39;&amp;quot; + selectedLocationValue + &amp;quot;&amp;#39;]&amp;quot;;&lt;br /&gt;&lt;strong&gt;Use:&lt;br /&gt;&lt;/strong&gt;string xPathString = repeatingNode + &amp;quot;@&amp;quot; + ForeignKey + &amp;quot;!=&amp;#39;&amp;quot; + selectedLocationValue + &amp;quot;&amp;#39;]&amp;quot;;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;I think that what is happening is you are removing the Schedule Location nodes when you really want to be removing the Schedule Resource nodes.&lt;/p&gt;
&lt;p&gt;Here are two suggestions that may help you work through this issue. First, drag the ScheduleResource data source onto your form somewhere and create a section with controls. This way you can see the data you have before and after the changed event. Second, try running your code in debug -- please forgive me if I&amp;#39;m telling you something you already know, but assuming you are using VSTA, in the code window, where you have your code, click in the margin at the first line in the PopulateCascadingDropDown method (XPathNavigator xnMain = this.MainDataSource.CreateNavigator();). You&amp;#39;ll see a red dot. That&amp;#39;s a break point. Now, up in the toolbar, click the green arrow button -- looks like a &amp;#39;Play&amp;#39; button. Your form will open in preview. Change the Location drop down value to trigger the Changed event. Now you should have focus returned to the code window, and you&amp;#39;ll probably see the line that you marked highlighted. &lt;/p&gt;
&lt;p&gt;You can use &lt;strong&gt;Debug / Step Over &lt;/strong&gt;(Shift + F8) to walk through the code. Hovering your mouse over initialized variables will give you more information about their current value. This will help you understand a) what the code is doing and b) what you need to change to get it to work.&lt;/p&gt;
&lt;p&gt;Hope this helps!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: cascading dropdown lists don't show output correctly</title><link>https://www.infopathdev.com:443/forums/thread/42564.aspx</link><pubDate>Sat, 06 Jun 2009 12:31:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42564</guid><dc:creator>dvnandover</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42564.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=42564</wfw:commentRss><description>&lt;p&gt;Because InfoPath Form Services doesn’t allow you to use them, like you can use the with InfoPath Client according to some of the post from the users that i read from the web. And i would like to have the form launched from using web browser.&lt;/p&gt;</description></item><item><title>Re: cascading dropdown lists don't show output correctly</title><link>https://www.infopathdev.com:443/forums/thread/42556.aspx</link><pubDate>Sat, 06 Jun 2009 05:44:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42556</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42556.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=42556</wfw:commentRss><description>&lt;p&gt;Hi -- and welcome. I&amp;#39;m not certain why you are doing this in code. You can use XPath to filter the second dropdown instead. Check out &lt;a href="http://office.microsoft.com/en-us/infopath/HA011177131033.aspx"&gt;this&lt;/a&gt; Office Online tutorial for more information.&lt;/p&gt;</description></item><item><title>cascading dropdown lists don't show output correctly</title><link>https://www.infopathdev.com:443/forums/thread/42550.aspx</link><pubDate>Fri, 05 Jun 2009 20:17:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42550</guid><dc:creator>dvnandover</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42550.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=42550</wfw:commentRss><description>&lt;p&gt;I can&amp;#39;t figure it out, so please help:&lt;/p&gt;
&lt;p&gt;&lt;u&gt;Database tables:&lt;br /&gt;&lt;/u&gt;table1 has two columns named &lt;strong&gt;id&lt;/strong&gt;, &lt;strong&gt;location&lt;/strong&gt; and location column will be display in dropdownlist1.&lt;br /&gt;table2 has many columns including a &lt;strong&gt;Resource&lt;/strong&gt; column that i want to display in dropdownlist2 when the user select a name from dropdownlist1, content of dropdownlist2 should dipslay the right choices only. The two tables are linked by &lt;strong&gt;id&lt;/strong&gt; column&lt;/p&gt;
&lt;p&gt;&lt;u&gt;D&lt;/u&gt;&lt;u&gt;ataconnections queries:&lt;br /&gt;&lt;/u&gt;1. select &amp;quot;ID&amp;quot;,&amp;quot;LOCATION&amp;quot; from &amp;quot;dbo&amp;quot;.&amp;quot;ScheduleLocation&amp;quot; as &amp;quot;Location&amp;quot;&lt;br /&gt;2. shape&lt;br /&gt;{select &amp;quot;ID&amp;quot;,&amp;quot;Resource&amp;quot; from &amp;quot;dbo&amp;quot;.&amp;quot;ScheduleResource&amp;quot; as &amp;quot;ScheduleResource&amp;quot;} as &amp;quot;ScheduleResource&amp;quot;&lt;br /&gt;append&lt;br /&gt;({select &amp;quot;ID&amp;quot;,&amp;quot;LOCATION&amp;quot; from &amp;quot;dbo&amp;quot;.&amp;quot;ScheduleLocation&amp;quot; as &amp;quot;ScheduleLocation&amp;quot;}&lt;br /&gt;relate &amp;quot;ID&amp;quot; TO &amp;quot;ID&amp;quot;) as &amp;quot;ScheduleLocation&amp;quot;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;And here are my event handler:&lt;br /&gt;&lt;/u&gt;public void Location_Changed(object sender, XmlEventArgs e)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string dataConnectionName = &amp;quot;ScheduleResource&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string dataSourceName = &amp;quot;ScheduleResource&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string ForeignKey = &amp;quot;LOCATION&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string cascadingDropDownDataSourceField = &amp;quot;/my:myFields/my:Resource&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string selectedLocationValue = e.NewValue;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string repeatingNode = &amp;quot;/dfs:myFields/dfs:dataFields/d:ScheduleResource/d:ScheduleLocation&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PopulateCascadingDropDown(selectedLocationValue, dataConnectionName, dataSourceName, repeatingNode, ForeignKey, cascadingDropDownDataSourceField);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;private void PopulateCascadingDropDown(string selectedLocationValue, string dataConnectionName, string dataSourceName, string repeatingNode,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string ForeignKey, string cascadingDropDownDataSourceField)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XPathNavigator xnMain = this.MainDataSource.CreateNavigator();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xnMain.SelectSingleNode(cascadingDropDownDataSourceField,this.NamespaceManager).SetValue(string.Empty);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DataConnection dcSecond = this.DataConnections[dataConnectionName];&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dcSecond.Execute();&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XPathNavigator xnFD =this.DataSources[dataSourceName].CreateNavigator();&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string xPathString = repeatingNode + &amp;quot;[@&amp;quot; + ForeignKey + &amp;quot;!=&amp;#39;&amp;quot; + selectedLocationValue + &amp;quot;&amp;#39;]&amp;quot;;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XPathNodeIterator items = xnFD.Select(xPathString,this.NamespaceManager);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while (items.Count != 0)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xnFD.SelectSingleNode(xPathString,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;this.NamespaceManager).DeleteSelf();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;items = xnFD.Select(xPathString, this.NamespaceManager);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;The problem was, dropdownlist2 always display the entire content regardless what selected in dropdownlist1. Can someone help pointing out the issue? did I implemented correctly? Thank you in advance.&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>