<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/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>ASP.NET MVC</title><link>http://forums.asp.net/1146.aspx</link><description>Discussions regarding Model-View-Controller (MVC) support in ASP.NET.  &lt;a href="http://forums.asp.net/1215.aspx"&gt;T4MVC subforum&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: MVCToolkit URL Bugs</title><link>http://forums.asp.net/thread/2182334.aspx</link><pubDate>Tue, 19 Feb 2008 15:45:22 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2182334</guid><dc:creator>mrfleck</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2182334.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=2182334</wfw:commentRss><description>&lt;p&gt;One of these bugs is killing me right now. The one where it tacks on stuff from the URL even though you do not include that information in your Url.ActionLink or Url.Action. I have hardcoded links everywhere in the app I am working on now. I m hoping to get rid of that about Mix08 time. Any word if this is getting fixed in the next release?&lt;/p&gt;</description></item><item><title>Re: MVCToolkit URL Bugs</title><link>http://forums.asp.net/thread/2181810.aspx</link><pubDate>Tue, 19 Feb 2008 11:01:20 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2181810</guid><dc:creator>styx31</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2181810.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=2181810</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;tgmdbm:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;/p&gt;
&lt;p&gt;Yes that is precisely it.&lt;br /&gt;&lt;/p&gt;I&amp;#39;ve written a one liner for each of the individual bugs (Going by the order of the comment in the sample code)&lt;br /&gt;
&lt;p&gt;1, RouteCollection.GetUrl: extra defaults in the Route brake URL resolution. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;i&gt;[check the way RouteCollection.GetUrl handles parsedRoute.OtherDefaultValues]&lt;/i&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;2, RouteCollection.GetUrl: &lt;b&gt;if it&amp;#39;s not a mapped argument, querystring it&lt;/b&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;3, i don&amp;#39;t consider this a bug. &lt;/p&gt;&lt;p&gt;4, pass all argument name/value pairs to the call to Url.Action(object)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;i&gt;[this will be a no brainer when the MVC Framework accepts dictionaries as well as objects]&lt;/i&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;5a, RouteCollection.GetUrl: Don&amp;#39;t include parameters that we didn&amp;#39;t pass.&lt;/p&gt;
&lt;p&gt;5b, same as 4. simply delegate to Url.Action, don&amp;#39;t build the URL yourself.&lt;/p&gt;&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;+1&lt;/p&gt;&lt;p&gt;Just to precise that ScottGu, in &lt;a href="http://weblogs.asp.net/scottgu/archive/2007/12/03/asp-net-mvc-framework-part-2-url-routing.aspx"&gt;the Part 2 Tutorial&lt;/a&gt;, in &amp;quot;Constructing Outgoing URLs from the Routing System&amp;quot;, explain in the &amp;quot;DRY&amp;quot; paragraph that :&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;font&gt;&lt;font face="arial" size="2"&gt;The beauty of all of the above helper
methods is that they enable us to avoid having to hard-code in URL
paths within our Controller and View Logic.&amp;nbsp; If at a later point we
decide to change the search URL route mapping rule back from
&amp;quot;/Search/[query]/[page]&amp;quot; to &amp;quot;/Search/Results/[query]/[page]&amp;quot; or
&lt;b&gt;&amp;quot;/Search/Results?query=[query]&amp;amp;page=[page]&amp;quot;&lt;/b&gt; we can easily do so by
editing it in one place (our route registration code).&amp;nbsp; We don&amp;#39;t need
to change any code within our views or controllers to pick up the new
URL (this maintaining the &lt;a href="http://en.wikipedia.org/wiki/Don%27t_repeat_yourself" target="_blank"&gt;&amp;quot;DRY principle&amp;quot;&lt;/a&gt;).&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;In his sample, he clearly explain that the RoutingEngine should use querystring formatted format when a specific route is not available.&lt;/p&gt;&lt;p&gt;Next build ? Should be integrated in the base code ?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: MVCToolkit URL Bugs</title><link>http://forums.asp.net/thread/2166952.aspx</link><pubDate>Tue, 12 Feb 2008 00:52:13 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2166952</guid><dc:creator>Alexey.Kouzmitch</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2166952.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=2166952</wfw:commentRss><description>&lt;p&gt;Wanted to weigh in:&lt;/p&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;[&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;ControllerAction&lt;/font&gt;&lt;font color="#808080" size="2"&gt;]&lt;/font&gt;&lt;/font&gt;&lt;font color="#5151ff" size="2"&gt;&lt;br /&gt;public&lt;/font&gt;&lt;font color="#808080" size="2"&gt; &lt;/font&gt;&lt;font color="#5151ff" size="2"&gt;void&lt;/font&gt;&lt;font color="#808080" size="2"&gt; &lt;/font&gt;&lt;font color="#808000" size="2"&gt;List&lt;/font&gt;&lt;font color="#808080" size="2"&gt;(&lt;/font&gt;&lt;font color="#5151ff" size="2"&gt;int&lt;/font&gt;&lt;font color="#808080" size="2"&gt; &lt;/font&gt;&lt;font color="#808000" size="2"&gt;page&lt;/font&gt;&lt;font color="#808080" size="2"&gt;, &lt;/font&gt;&lt;font color="#5151ff" size="2"&gt;int&lt;/font&gt;&lt;font color="#808080" size="2"&gt; &lt;/font&gt;&lt;font color="#808000" size="2"&gt;pageSize&lt;/font&gt;&lt;font color="#808080" size="2"&gt;, &lt;/font&gt;&lt;font color="#5151ff" size="2"&gt;string&lt;/font&gt;&lt;font color="#808080" size="2"&gt; &lt;/font&gt;&lt;font color="#808000" size="2"&gt;sortBy&lt;/font&gt;&lt;font color="#808080" size="2"&gt;, &lt;/font&gt;&lt;font color="#5151ff" size="2"&gt;string&lt;/font&gt;&lt;font color="#808080" size="2"&gt; &lt;/font&gt;&lt;font color="#808000" size="2"&gt;gameFilter&lt;/font&gt;&lt;font color="#808080" size="2"&gt;, &lt;/font&gt;&lt;font color="#5151ff" size="2"&gt;string&lt;/font&gt;&lt;font color="#808080" size="2"&gt; &lt;/font&gt;&lt;font color="#808000" size="2"&gt;mediaTypeFilter&lt;/font&gt;&lt;font color="#808080" size="2"&gt;) {&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#808080" size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&amp;nbsp;also poses an issue.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s the routing rule:&lt;/p&gt;&lt;font color="#808080" size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;RouteTable&lt;/font&gt;&lt;font color="#008080" size="2"&gt;.&lt;/font&gt;&lt;font color="#808000" size="2"&gt;Routes&lt;/font&gt;&lt;font color="#008080" size="2"&gt;.&lt;/font&gt;&lt;font color="#808000" size="2"&gt;Add&lt;/font&gt;&lt;font color="#808080" size="2"&gt;(&lt;/font&gt;&lt;font color="#5151ff" size="2"&gt;new&lt;/font&gt;&lt;font color="#808080" size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;Route&lt;br /&gt;&lt;/font&gt;&lt;font color="#808080" size="2"&gt;{&lt;br /&gt;&lt;/font&gt;&lt;font color="#808000" size="2"&gt;Url&lt;/font&gt;&lt;font color="#808080" size="2"&gt; &lt;/font&gt;&lt;font color="#008080" size="2"&gt;=&lt;/font&gt;&lt;font color="#808080" size="2"&gt; &lt;/font&gt;&lt;font color="#008000" size="2"&gt;&amp;quot;marketplace/[action]&amp;quot;&lt;/font&gt;&lt;font color="#808080" size="2"&gt;,&lt;br /&gt;&lt;/font&gt;&lt;font color="#808000" size="2"&gt;Defaults&lt;/font&gt;&lt;font color="#808080" size="2"&gt; &lt;/font&gt;&lt;font color="#008080" size="2"&gt;=&lt;/font&gt;&lt;font color="#808080" size="2"&gt; &lt;/font&gt;&lt;font color="#5151ff" size="2"&gt;new&lt;br /&gt;&lt;/font&gt;&lt;font color="#808080" size="2"&gt;{&lt;br /&gt;&lt;/font&gt;&lt;font color="#808000" size="2"&gt;controller&lt;/font&gt;&lt;font color="#808080" size="2"&gt; &lt;/font&gt;&lt;font color="#008080" size="2"&gt;=&lt;/font&gt;&lt;font color="#808080" size="2"&gt; &lt;/font&gt;&lt;font color="#008000" size="2"&gt;&amp;quot;Marketplace&amp;quot;&lt;/font&gt;&lt;font color="#808080" size="2"&gt;,&lt;br /&gt;&lt;/font&gt;&lt;font color="#808000" size="2"&gt;action&lt;/font&gt;&lt;font color="#808080" size="2"&gt; &lt;/font&gt;&lt;font color="#008080" size="2"&gt;=&lt;/font&gt;&lt;font color="#808080" size="2"&gt; &lt;/font&gt;&lt;font color="#008000" size="2"&gt;&amp;quot;List&amp;quot;&lt;/font&gt;&lt;font color="#808080" size="2"&gt;,&lt;br /&gt;&lt;/font&gt;&lt;font color="#808000" size="2"&gt;page&lt;/font&gt;&lt;font color="#808080" size="2"&gt; &lt;/font&gt;&lt;font color="#008080" size="2"&gt;=&lt;/font&gt;&lt;font color="#808080" size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;0&lt;/font&gt;&lt;font color="#808080" size="2"&gt;,&lt;br /&gt;&lt;/font&gt;&lt;font color="#808000" size="2"&gt;pageSize&lt;/font&gt;&lt;font color="#808080" size="2"&gt; &lt;/font&gt;&lt;font color="#008080" size="2"&gt;=&lt;/font&gt;&lt;font color="#808080" size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;12&lt;/font&gt;&lt;font color="#808080" size="2"&gt;,&lt;br /&gt;&lt;/font&gt;&lt;font color="#808000" size="2"&gt;sortBy&lt;/font&gt;&lt;font color="#808080" size="2"&gt; &lt;/font&gt;&lt;font color="#008080" size="2"&gt;=&lt;/font&gt;&lt;font color="#808080" size="2"&gt; &lt;/font&gt;&lt;font color="#008000" size="2"&gt;&amp;quot;Date&amp;quot;&lt;/font&gt;&lt;font color="#808080" size="2"&gt;,&lt;br /&gt;&lt;/font&gt;&lt;font color="#808000" size="2"&gt;gameFilter&lt;/font&gt;&lt;font color="#808080" size="2"&gt; &lt;/font&gt;&lt;font color="#008080" size="2"&gt;=&lt;/font&gt;&lt;font color="#808080" size="2"&gt; (&lt;/font&gt;&lt;font color="#5151ff" size="2"&gt;string&lt;/font&gt;&lt;font color="#808080" size="2"&gt;)&lt;/font&gt;&lt;font color="#5151ff" size="2"&gt;null&lt;/font&gt;&lt;font color="#808080" size="2"&gt;,&lt;br /&gt;&lt;/font&gt;&lt;font color="#808000" size="2"&gt;mediaTypeFilter&lt;/font&gt;&lt;font color="#808080" size="2"&gt; &lt;/font&gt;&lt;font color="#008080" size="2"&gt;=&lt;/font&gt;&lt;font color="#808080" size="2"&gt; (&lt;/font&gt;&lt;font color="#5151ff" size="2"&gt;string&lt;/font&gt;&lt;font color="#808080" size="2"&gt;)&lt;/font&gt;&lt;font color="#5151ff" size="2"&gt;null&lt;br /&gt;&lt;/font&gt;&lt;font color="#808080" size="2"&gt;},&lt;br /&gt;&lt;/font&gt;&lt;font color="#808000" size="2"&gt;RouteHandler&lt;/font&gt;&lt;font color="#808080" size="2"&gt; &lt;/font&gt;&lt;font color="#008080" size="2"&gt;=&lt;/font&gt;&lt;font color="#808080" size="2"&gt; &lt;/font&gt;&lt;font color="#5151ff" size="2"&gt;typeof&lt;/font&gt;&lt;font color="#808080" size="2"&gt;(&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;MvcRouteHandler&lt;/font&gt;&lt;font color="#808080" size="2"&gt;)&lt;br /&gt;&lt;font color="#808080" size="2"&gt;});&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;going to a url such as /marketplace/List?pageSize=5 doesn&amp;#39;t override the default (so 12 is still passed to the controller).That behavior is evident from the Reflector view of Controller.InvokeActionMethod(MethodInfo methodInfo)&lt;/font&gt;&lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: MVCToolkit URL Bugs</title><link>http://forums.asp.net/thread/2113246.aspx</link><pubDate>Wed, 16 Jan 2008 17:07:42 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2113246</guid><dc:creator>Dokie</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2113246.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=2113246</wfw:commentRss><description>&lt;p&gt;In my Create action I was using RenderView to go back to the same View post-validation when the information was invalid - I will now try Redirect instead. I will also look to change the Html.Form&amp;lt;T&amp;gt; to another alternative and see if that helps too - Thanks&lt;/p&gt;</description></item><item><title>Re: MVCToolkit URL Bugs</title><link>http://forums.asp.net/thread/2113214.aspx</link><pubDate>Wed, 16 Jan 2008 16:50:14 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2113214</guid><dc:creator>tgmdbm</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2113214.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=2113214</wfw:commentRss><description>&lt;p&gt;This is a bug, not expected behaviour!&lt;/p&gt;&lt;p&gt;You shouldn&amp;#39;t be rendering anything in the Create action, you should be redirecting to a Show or Edit action, that way this problem won&amp;#39;t arise.&lt;/p&gt;&lt;p&gt;for the Html.ActionLink&amp;lt;T&amp;gt;() method, the only work around is to not use parameters on your actions or not to use that method.&lt;/p&gt;</description></item><item><title>Re: MVCToolkit URL Bugs</title><link>http://forums.asp.net/thread/2113017.aspx</link><pubDate>Wed, 16 Jan 2008 15:33:55 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2113017</guid><dc:creator>Dokie</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2113017.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=2113017</wfw:commentRss><description>&lt;p&gt;I too am getting a repeated part to the URL when I am already on the View, e.g. I navigate to &lt;a href="http://.../Registration/Create/Basic"&gt;http://.../Registration/Create/Basic&lt;/a&gt;&amp;nbsp;and on that View I have the following&lt;/p&gt;&lt;pre class="coloredcode"&gt;Html.Form(action=&amp;gt;action.Create(&lt;span class="st"&gt;&amp;quot;Basic&amp;quot;&lt;/span&gt;), FormExtensions.FormMethod.post)&lt;/pre&gt;but my submit button has the URL &lt;a href="http://.../Registration/Create/Basic/Basic"&gt;http://.../Registration/Create/Basic/Basic&lt;/a&gt; and if I go there it becomes &lt;a href="http://localhost:64701/Registration/Create/Basic/Basic/Basic"&gt;http://localhost:64701/Registration/Create/Basic/Basic/Basic&lt;/a&gt;. My routes I added in Global.asax are &lt;pre class="coloredcode"&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre class="coloredcode"&gt;            RouteTable.Routes.Add(&lt;span class="kwd"&gt;new&lt;/span&gt; Route
            {
                Url = &lt;span class="st"&gt;&amp;quot;Login&amp;quot;&lt;/span&gt;,
                Defaults = &lt;span class="kwd"&gt;new&lt;/span&gt;
                {
                    controller = &lt;span class="st"&gt;&amp;quot;Security&amp;quot;&lt;/span&gt;,
                    action = &lt;span class="st"&gt;&amp;quot;Login&amp;quot;&lt;/span&gt;
                },
                RouteHandler = &lt;span class="kwd"&gt;typeof&lt;/span&gt; (MvcRouteHandler)
            });

            RouteTable.Routes.Add(&lt;span class="kwd"&gt;new&lt;/span&gt; Route
            {
                Url = &lt;span class="st"&gt;&amp;quot;[controller]/[action]/[category]/[id]&amp;quot;&lt;/span&gt;,
                Defaults = &lt;span class="kwd"&gt;new&lt;/span&gt;
                {
                    action = &lt;span class="st"&gt;&amp;quot;Index&amp;quot;&lt;/span&gt;,
                    category = &lt;span class="st"&gt;&amp;quot;Basic&amp;quot;&lt;/span&gt;,
                    id = (&lt;span class="kwd"&gt;string&lt;/span&gt;)&lt;span class="kwd"&gt;null&lt;/span&gt;
                },
                RouteHandler = &lt;span class="kwd"&gt;typeof&lt;/span&gt;(MvcRouteHandler)
            });

            RouteTable.Routes.Add(&lt;span class="kwd"&gt;new&lt;/span&gt; Route
            {
                Url = &lt;span class="st"&gt;&amp;quot;[controller]/[action]/[id]&amp;quot;&lt;/span&gt;,
                Defaults = &lt;span class="kwd"&gt;new&lt;/span&gt;
                {
                    action = &lt;span class="st"&gt;&amp;quot;Index&amp;quot;&lt;/span&gt;,
                    id = (&lt;span class="kwd"&gt;string&lt;/span&gt;) &lt;span class="kwd"&gt;null&lt;/span&gt;
                },
                RouteHandler = &lt;span class="kwd"&gt;typeof&lt;/span&gt; (MvcRouteHandler)
            });

            RouteTable.Routes.Add(&lt;span class="kwd"&gt;new&lt;/span&gt; Route
            {
                Url = &lt;span class="st"&gt;&amp;quot;Default.aspx&amp;quot;&lt;/span&gt;,
                Defaults = &lt;span class="kwd"&gt;new&lt;/span&gt;
                {
                    controller = &lt;span class="st"&gt;&amp;quot;Home&amp;quot;&lt;/span&gt;,
                    action = &lt;span class="st"&gt;&amp;quot;Index&amp;quot;&lt;/span&gt;,
                    id = (&lt;span class="kwd"&gt;string&lt;/span&gt;) &lt;span class="kwd"&gt;null&lt;/span&gt;
                },
                RouteHandler = &lt;span class="kwd"&gt;typeof&lt;/span&gt; (MvcRouteHandler)
 &lt;/pre&gt;Can anyone confirm that this is expected behaviour or a bug and any guidance as to how to workaround would be useful. Thanks in advance</description></item><item><title>Re: MVCToolkit URL Bugs</title><link>http://forums.asp.net/thread/2100419.aspx</link><pubDate>Wed, 09 Jan 2008 23:46:16 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2100419</guid><dc:creator>Shiznitt</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2100419.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=2100419</wfw:commentRss><description>&lt;p&gt;Any news on these bugs? I am running into the last one, &lt;/p&gt;
&lt;p&gt;using URL.Action:&lt;br /&gt;&amp;lt;%= Url.Action(new { action = &amp;quot;Index&amp;quot;, controller = &amp;quot;Goals&amp;quot;, id = ViewData[&amp;quot;NickName&amp;quot;].ToString() }) %&amp;gt;&lt;br /&gt;I correctly get:&lt;br /&gt;/Profiles/Testing123/Goals.mvc&lt;br /&gt;&lt;br /&gt;using Html.ActionLink&amp;lt;&amp;gt;&lt;br /&gt;&amp;lt;%= Html.ActionLink&amp;lt;GoalsController&amp;gt;(x =&amp;gt; x.Index(ViewData[&amp;quot;NickName&amp;quot;].ToString()), &amp;quot;test&amp;quot;) %&amp;gt;&lt;br /&gt;I incorrectly get:&lt;br /&gt;/Profiles/Testing123/Goals.mvc/Testing123&lt;br /&gt;If I am already on that page!&lt;/p&gt;</description></item><item><title>Re: MVCToolkit URL Bugs</title><link>http://forums.asp.net/thread/2084408.aspx</link><pubDate>Tue, 01 Jan 2008 07:06:40 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2084408</guid><dc:creator>tgmdbm</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2084408.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=2084408</wfw:commentRss><description>&lt;p&gt;You&amp;#39;re very welcome. I&amp;#39;m glad I could help.&amp;nbsp;&lt;/p&gt;&lt;p&gt;And a happy new year to all!&lt;/p&gt;</description></item><item><title>Re: MVCToolkit URL Bugs</title><link>http://forums.asp.net/thread/2084392.aspx</link><pubDate>Tue, 01 Jan 2008 06:49:02 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2084392</guid><dc:creator>robconery</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2084392.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=2084392</wfw:commentRss><description>&lt;p&gt;Good stuff - thanks for your patience. Queued this up for next week and I&amp;#39;ll make sure it gets into the Toolkit.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: MVCToolkit URL Bugs</title><link>http://forums.asp.net/thread/2080679.aspx</link><pubDate>Fri, 28 Dec 2007 13:37:23 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2080679</guid><dc:creator>tgmdbm</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2080679.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=2080679</wfw:commentRss><description>&lt;p&gt;Yes that is precisely it.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;I&amp;#39;ve written a one liner for each of the individual bugs (Going by the order of the comment in the sample code)&lt;br /&gt;
&lt;p&gt;1, RouteCollection.GetUrl: extra defaults in the Route brake URL resolution. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;i&gt;[check the way RouteCollection.GetUrl handles parsedRoute.OtherDefaultValues]&lt;/i&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;2, RouteCollection.GetUrl: &lt;b&gt;if it&amp;#39;s not a mapped argument, querystring it&lt;/b&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;3, i don&amp;#39;t consider this a bug. &lt;/p&gt;&lt;p&gt;4, pass all argument name/value pairs to the call to Url.Action(object)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;i&gt;[this will be a no brainer when the MVC Framework accepts dictionaries as well as objects]&lt;/i&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;5a, RouteCollection.GetUrl: Don&amp;#39;t include parameters that we didn&amp;#39;t pass.&lt;/p&gt;
&lt;p&gt;5b, same as 4. simply delegate to Url.Action, don&amp;#39;t build the URL yourself.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: MVCToolkit URL Bugs</title><link>http://forums.asp.net/thread/2080171.aspx</link><pubDate>Fri, 28 Dec 2007 06:15:43 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2080171</guid><dc:creator>robconery</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2080171.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=2080171</wfw:commentRss><description>&lt;p&gt;This is where I thought you were going with it, but then again I was confused between what you were calling &amp;quot;right&amp;quot; and what you were defining in your routes. If I can boil down what you&amp;#39;re saying to &amp;quot;if it&amp;#39;s not a mapped argument, querystring it&amp;quot; then yes - that does make sense.&lt;/p&gt;
&lt;p&gt;I want to be sure I get this right - to elevate this I need a one sentence bug description that I can throw the core team. Sound fair?&lt;/p&gt;</description></item><item><title>Re: MVCToolkit URL Bugs</title><link>http://forums.asp.net/thread/2079183.aspx</link><pubDate>Thu, 27 Dec 2007 15:13:23 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2079183</guid><dc:creator>tgmdbm</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2079183.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=2079183</wfw:commentRss><description>&lt;p&gt;Thanks for the positive feedback. Much appreciated.&lt;/p&gt;&lt;p&gt;Rob, did you get chance to test the sample code i posted?&lt;/p&gt;&lt;p&gt;If anybody else has tested it, I wouldn&amp;#39;t mind a discussion on the individual bugs, if you have views on them.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: MVCToolkit URL Bugs</title><link>http://forums.asp.net/thread/2078663.aspx</link><pubDate>Thu, 27 Dec 2007 09:01:08 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2078663</guid><dc:creator>rjcox</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2078663.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=2078663</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;abombss:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;+1... That makes sense, extra params should be query string.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;+2&lt;/p&gt;&lt;p&gt;This then matches the request processing logic where query parameters are mapped to named parameters of the action method.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: MVCToolkit URL Bugs</title><link>http://forums.asp.net/thread/2076702.aspx</link><pubDate>Tue, 25 Dec 2007 21:07:08 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2076702</guid><dc:creator>abombss</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2076702.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=2076702</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;+1... That makes sense, extra params should be query string.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: MVCToolkit URL Bugs</title><link>http://forums.asp.net/thread/2076681.aspx</link><pubDate>Tue, 25 Dec 2007 20:42:32 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2076681</guid><dc:creator>tgmdbm</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2076681.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=2076681</wfw:commentRss><description>&lt;p&gt;/Products/List?category=apples&amp;amp;page=5&lt;/p&gt;&lt;p&gt;Simply put, if it&amp;#39;s not matched in the Url of the Route then it&amp;#39;s part of the querystring.&lt;/p&gt;&lt;p&gt;If i&amp;#39;m not mistaken, that is how the arguments of the Action are generated. This just makes complete sense to me.&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>