<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: ASP.NET MVC Cascading DropDownList with jQuery</title>
	<atom:link href="http://helios.ca/2009/05/30/aspnet-mvc-cascading-dropdownlist-with-jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://helios.ca/2009/05/30/aspnet-mvc-cascading-dropdownlist-with-jquery/</link>
	<description>Just another developer blog</description>
	<lastBuildDate>Mon, 23 Aug 2010 13:24:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Prashant</title>
		<link>http://helios.ca/2009/05/30/aspnet-mvc-cascading-dropdownlist-with-jquery/comment-page-1/#comment-425</link>
		<dc:creator>Prashant</dc:creator>
		<pubDate>Wed, 14 Jul 2010 14:01:51 +0000</pubDate>
		<guid isPermaLink="false">http://helios.ca/?p=64#comment-425</guid>
		<description>Hi,
I like your post.
This is exact feature that i am looking for.
I need a button on page and selected values in DDL should get access in controller side.
could you please send me update code.

Thanks,
Prashant</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I like your post.<br />
This is exact feature that i am looking for.<br />
I need a button on page and selected values in DDL should get access in controller side.<br />
could you please send me update code.</p>
<p>Thanks,<br />
Prashant</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ranjith</title>
		<link>http://helios.ca/2009/05/30/aspnet-mvc-cascading-dropdownlist-with-jquery/comment-page-1/#comment-358</link>
		<dc:creator>ranjith</dc:creator>
		<pubDate>Tue, 23 Feb 2010 01:32:52 +0000</pubDate>
		<guid isPermaLink="false">http://helios.ca/?p=64#comment-358</guid>
		<description>How to Edit or Update these cascading dropdowns.</description>
		<content:encoded><![CDATA[<p>How to Edit or Update these cascading dropdowns.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marco</title>
		<link>http://helios.ca/2009/05/30/aspnet-mvc-cascading-dropdownlist-with-jquery/comment-page-1/#comment-347</link>
		<dc:creator>marco</dc:creator>
		<pubDate>Thu, 18 Feb 2010 17:56:43 +0000</pubDate>
		<guid isPermaLink="false">http://helios.ca/?p=64#comment-347</guid>
		<description>Hello ,
thanks for the really useful code you brought us.
I&#039;ve managed to use it in my &quot;Create&quot; viewform and the data is correctly saved into my database. I would love to have some help tough , for my &quot;Edit&quot; View , cause i can&#039;t really make the cascading dropdowns get the value i pass from my dbcontext.table in the controller. Any idea on how to set the values of the 2 dropdowns ? 

Thanks , and sorry my bad english.</description>
		<content:encoded><![CDATA[<p>Hello ,<br />
thanks for the really useful code you brought us.<br />
I&#8217;ve managed to use it in my &#8220;Create&#8221; viewform and the data is correctly saved into my database. I would love to have some help tough , for my &#8220;Edit&#8221; View , cause i can&#8217;t really make the cascading dropdowns get the value i pass from my dbcontext.table in the controller. Any idea on how to set the values of the 2 dropdowns ? </p>
<p>Thanks , and sorry my bad english.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NVHien</title>
		<link>http://helios.ca/2009/05/30/aspnet-mvc-cascading-dropdownlist-with-jquery/comment-page-1/#comment-322</link>
		<dc:creator>NVHien</dc:creator>
		<pubDate>Wed, 30 Dec 2009 16:59:37 +0000</pubDate>
		<guid isPermaLink="false">http://helios.ca/?p=64#comment-322</guid>
		<description>Instead of configure router, i use $.ajax() function to fire controller action.

 $(document).ready(function() {
            $.getJSON(&quot;/Cascading/CountryList&quot;, function(data) {
                var items = &quot;---------------------&quot;;
                $.each(data, function(i, country) {
                items += &quot;&quot; + country.Text + &quot;&quot;;
                });
                $(&quot;#Countries&quot;).html(items);
            });

            $(&quot;#Countries&quot;).change(function() {
            var countryId = $(&#039;#Countries&#039;).val();
                $.ajax({
                    url: &#039;/Cascading/StateList/&#039;,
                    type: &#039;POST&#039;,
                    dataType: &#039;json&#039;,
                    data: { CountryCode: countryId },
                    success: function(data) {
                        var items = &quot;---------------------&quot;;
                        $.each(data, function(i, state) {
                            items += &quot;&quot; + state.Text + &quot;&quot;;
                        });
                        $(&quot;#States&quot;).html(items);
                    }
                });
            });

        });</description>
		<content:encoded><![CDATA[<p>Instead of configure router, i use $.ajax() function to fire controller action.</p>
<p> $(document).ready(function() {<br />
            $.getJSON(&#8220;/Cascading/CountryList&#8221;, function(data) {<br />
                var items = &#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8221;;<br />
                $.each(data, function(i, country) {<br />
                items += &#8220;&#8221; + country.Text + &#8220;&#8221;;<br />
                });<br />
                $(&#8220;#Countries&#8221;).html(items);<br />
            });</p>
<p>            $(&#8220;#Countries&#8221;).change(function() {<br />
            var countryId = $(&#8216;#Countries&#8217;).val();<br />
                $.ajax({<br />
                    url: &#8216;/Cascading/StateList/&#8217;,<br />
                    type: &#8216;POST&#8217;,<br />
                    dataType: &#8216;json&#8217;,<br />
                    data: { CountryCode: countryId },<br />
                    success: function(data) {<br />
                        var items = &#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8221;;<br />
                        $.each(data, function(i, state) {<br />
                            items += &#8220;&#8221; + state.Text + &#8220;&#8221;;<br />
                        });<br />
                        $(&#8220;#States&#8221;).html(items);<br />
                    }<br />
                });<br />
            });</p>
<p>        });</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://helios.ca/2009/05/30/aspnet-mvc-cascading-dropdownlist-with-jquery/comment-page-1/#comment-270</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Thu, 15 Oct 2009 20:30:53 +0000</pubDate>
		<guid isPermaLink="false">http://helios.ca/?p=64#comment-270</guid>
		<description>Thanks for this post Mike. To help out everyone I posted a class with (most) the countries coded up in the collection. Anyone is welcome to download it from my blog.

Chris</description>
		<content:encoded><![CDATA[<p>Thanks for this post Mike. To help out everyone I posted a class with (most) the countries coded up in the collection. Anyone is welcome to download it from my blog.</p>
<p>Chris</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: paul mumgai</title>
		<link>http://helios.ca/2009/05/30/aspnet-mvc-cascading-dropdownlist-with-jquery/comment-page-1/#comment-181</link>
		<dc:creator>paul mumgai</dc:creator>
		<pubDate>Fri, 02 Oct 2009 10:13:18 +0000</pubDate>
		<guid isPermaLink="false">http://helios.ca/?p=64#comment-181</guid>
		<description>Thank you for sharing this cool story :-)</description>
		<content:encoded><![CDATA[<p>Thank you for sharing this cool story <img src='http://helios.ca/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://helios.ca/2009/05/30/aspnet-mvc-cascading-dropdownlist-with-jquery/comment-page-1/#comment-139</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Mon, 21 Sep 2009 19:50:06 +0000</pubDate>
		<guid isPermaLink="false">http://helios.ca/?p=64#comment-139</guid>
		<description>@Miroslav Ninkovi: On the server side I usually use HTML Helpers for that, but for the AJAX calls I&#039;ve always hard coded the route. Also, I usually name all my routes in the Global.asax instead of using the usual Controller/Action route. I&#039;ve never encountered any problems this way, but I&#039;d be very interested in hearing what others do about this.</description>
		<content:encoded><![CDATA[<p>@Miroslav Ninkovi: On the server side I usually use HTML Helpers for that, but for the AJAX calls I&#8217;ve always hard coded the route. Also, I usually name all my routes in the Global.asax instead of using the usual Controller/Action route. I&#8217;ve never encountered any problems this way, but I&#8217;d be very interested in hearing what others do about this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: teatime</title>
		<link>http://helios.ca/2009/05/30/aspnet-mvc-cascading-dropdownlist-with-jquery/comment-page-1/#comment-138</link>
		<dc:creator>teatime</dc:creator>
		<pubDate>Thu, 17 Sep 2009 11:01:52 +0000</pubDate>
		<guid isPermaLink="false">http://helios.ca/?p=64#comment-138</guid>
		<description>Great post, have found it very useful!

Any chance you can suggest a simple / efficient way of having the lists loaded and Country / State selected if there are values already chosen? The change event doesn&#039;t seem to fire until a user actually selects an item

Cheers</description>
		<content:encoded><![CDATA[<p>Great post, have found it very useful!</p>
<p>Any chance you can suggest a simple / efficient way of having the lists loaded and Country / State selected if there are values already chosen? The change event doesn&#8217;t seem to fire until a user actually selects an item</p>
<p>Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Miroslav Ninkovi</title>
		<link>http://helios.ca/2009/05/30/aspnet-mvc-cascading-dropdownlist-with-jquery/comment-page-1/#comment-137</link>
		<dc:creator>Miroslav Ninkovi</dc:creator>
		<pubDate>Tue, 15 Sep 2009 08:16:33 +0000</pubDate>
		<guid isPermaLink="false">http://helios.ca/?p=64#comment-137</guid>
		<description>Hallo Mike,
I really like you post. There is one thing that is bothering me and that is hardcoding url&#039;s in jquery:

$.getJSON(&quot;/Home/Countries/List&quot;...)

When working with links and forms it is recommended to use helper methods like Html.ActionLink, Html.BeginForm so in case you change the routes you don&#039;t have to bother to change anything.
I mean, what if in some point of time you want to change that MyHome is mapped to HomeController instead of Home?
How would you solve this problem?</description>
		<content:encoded><![CDATA[<p>Hallo Mike,<br />
I really like you post. There is one thing that is bothering me and that is hardcoding url&#8217;s in jquery:</p>
<p>$.getJSON(&#8220;/Home/Countries/List&#8221;&#8230;)</p>
<p>When working with links and forms it is recommended to use helper methods like Html.ActionLink, Html.BeginForm so in case you change the routes you don&#8217;t have to bother to change anything.<br />
I mean, what if in some point of time you want to change that MyHome is mapped to HomeController instead of Home?<br />
How would you solve this problem?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vik</title>
		<link>http://helios.ca/2009/05/30/aspnet-mvc-cascading-dropdownlist-with-jquery/comment-page-1/#comment-130</link>
		<dc:creator>Vik</dc:creator>
		<pubDate>Wed, 02 Sep 2009 21:08:37 +0000</pubDate>
		<guid isPermaLink="false">http://helios.ca/?p=64#comment-130</guid>
		<description>Hi Mike,
Thanks for this post and for the updated code with the submit button. Could you a little more on it? I&#039;m trying to retain the selected values for country and state in the drop down lists after hitting the submit button but I&#039;m not sure how to do this. Would greatly appreciate your insight on this.
thanks
Vik</description>
		<content:encoded><![CDATA[<p>Hi Mike,<br />
Thanks for this post and for the updated code with the submit button. Could you a little more on it? I&#8217;m trying to retain the selected values for country and state in the drop down lists after hitting the submit button but I&#8217;m not sure how to do this. Would greatly appreciate your insight on this.<br />
thanks<br />
Vik</p>
]]></content:encoded>
	</item>
</channel>
</rss>
