<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Part 2: Controllers</title><link>http://www.asp.net</link><pubDate>Thu, 02 May 2013 16:28:30 GMT</pubDate><generator>umbraco</generator><description>Comments for Part 2: Controllers</description><language>en</language><atom:link href="http://www.asp.net/rss/comments/27626" rel="self" type="application/rss+xml" /><item><title>Comment Posted by haplvs</title><link>http://www.asp.net/mvc/tutorials/mvc-music-store/mvc-music-store-part-2</link><pubDate>Sat, 17 Jul 2010 11:39:16 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000009492</guid><description><![CDATA[ <p>thanks a lot,i have got a lot</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/haplvs.jpg?forceidenticon=false&amp;dt=635045529000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by lchan</title><link>http://www.asp.net/mvc/tutorials/mvc-music-store/mvc-music-store-part-2</link><pubDate>Mon, 02 Aug 2010 12:07:18 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000009719</guid><description><![CDATA[ <p>Is there any tutorial like this but written in VB?</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/lchan.jpg?forceidenticon=false&amp;dt=635045529000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by GregHan</title><link>http://www.asp.net/mvc/tutorials/mvc-music-store/mvc-music-store-part-2</link><pubDate>Mon, 23 Aug 2010 09:09:12 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000009946</guid><description><![CDATA[ <p>Good</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/GregHan.jpg?forceidenticon=false&amp;dt=635045529000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by lobaxud</title><link>http://www.asp.net/mvc/tutorials/mvc-music-store/mvc-music-store-part-2</link><pubDate>Sat, 16 Oct 2010 09:14:48 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010643</guid><description><![CDATA[ <p>no way to find these tutorial in vb?</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/lobaxud.jpg?forceidenticon=false&amp;dt=635045529000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by JomyKanjal</title><link>http://www.asp.net/mvc/tutorials/mvc-music-store/mvc-music-store-part-2</link><pubDate>Fri, 12 Nov 2010 15:17:50 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010931</guid><description><![CDATA[ <p>Everything works fine. Great...</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/JomyKanjal.jpg?forceidenticon=false&amp;dt=635045529000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by lanxiaowo</title><link>http://www.asp.net/mvc/tutorials/mvc-music-store/mvc-music-store-part-2</link><pubDate>Fri, 10 Dec 2010 03:55:22 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000011169</guid><description><![CDATA[ <p>I LIKE THIS ,BUT SOMETIMES I DON&#39;T KNOW HOW TO USE,I WANT TO HAVE A VIDEO ,SOMEONE WHO CAN HELP?</p><p></p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/lanxiaowo.jpg?forceidenticon=false&amp;dt=635045529000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by vishalsharma3105</title><link>http://www.asp.net/mvc/tutorials/mvc-music-store/mvc-music-store-part-2</link><pubDate>Thu, 10 Mar 2011 02:36:00 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000012419</guid><description><![CDATA[ <p>its really great and told in such good detail, really helpful for a beginner</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/vishalsharma3105.jpg?forceidenticon=false&amp;dt=635045529000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by camcombs</title><link>http://www.asp.net/mvc/tutorials/mvc-music-store/mvc-music-store-part-2</link><pubDate>Fri, 22 Apr 2011 17:02:15 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000012937</guid><description><![CDATA[ <p>lobaxud, I&#39;m doing mine in VB, just converting on the fly.  So far it hasn&#39;t been that difficult</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/camcombs.jpg?forceidenticon=false&amp;dt=635045529000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by Cogito</title><link>http://www.asp.net/mvc/tutorials/mvc-music-store/mvc-music-store-part-2</link><pubDate>Sat, 21 May 2011 12:42:12 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000013239</guid><description><![CDATA[ <p>Do I need to HttpUtility.HtmlEncode in controller, while razor view does that later by default ?</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/Cogito.jpg?forceidenticon=false&amp;dt=635045529000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by ldsouza</title><link>http://www.asp.net/mvc/tutorials/mvc-music-store/mvc-music-store-part-2</link><pubDate>Mon, 22 Aug 2011 10:21:35 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000014009</guid><description><![CDATA[ <p>I have a question about the last bit of code, as I get an error message if i use it - </p><p></p><p>public string Details(int id) </p><p> { </p><p>    string message = &quot;Store.Details, ID = &quot; + id; </p><p>      return message; </p><p> }</p><p></p><p>So &quot;id&quot; is declared as an integer and we are trying to represent it as a string - this is how I am reading it. Sorry if i sound stupid, I&#39;m new to the Development world.</p><p></p><p>So, instead of the above code, this is what I did and converted the integer to string before displaying:</p><p></p><p>        public string Details(int id)</p><p>        { </p><p>         string message = &quot;Store.Details, ID = &quot; + (id.ToString());</p><p></p><p>         return message;</p><p>        }</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/ldsouza.jpg?forceidenticon=false&amp;dt=635045529000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by ldsouza</title><link>http://www.asp.net/mvc/tutorials/mvc-music-store/mvc-music-store-part-2</link><pubDate>Mon, 22 Aug 2011 11:23:00 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000014010</guid><description><![CDATA[ <p>Never mind, the original code just worked out of the blue - I commented it out and un-commented it, weird!</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/ldsouza.jpg?forceidenticon=false&amp;dt=635045529000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by ricka6</title><link>http://www.asp.net/mvc/tutorials/mvc-music-store/mvc-music-store-part-2</link><pubDate>Tue, 27 Sep 2011 21:34:22 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000014287</guid><description><![CDATA[ <p>For a VB tutorial see <a rel="nofollow" href="http://www.asp.net/mvc/tutorials/getting-started-with-mvc3-part1-vb" target="_blank">www.asp.net/</a></p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/ricka6.jpg?forceidenticon=false&amp;dt=635045529000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by samarmir</title><link>http://www.asp.net/mvc/tutorials/mvc-music-store/mvc-music-store-part-2</link><pubDate>Thu, 06 Oct 2011 15:17:43 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000014346</guid><description><![CDATA[ <p>Thanks again for another part in this excellent serie</p><p></p><p>Mohammad</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/samarmir.jpg?forceidenticon=false&amp;dt=635045529000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by tarun n juneja</title><link>http://www.asp.net/mvc/tutorials/mvc-music-store/mvc-music-store-part-2</link><pubDate>Thu, 03 Nov 2011 05:42:58 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000014552</guid><description><![CDATA[ <p>nice startup</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/tarun%20n%20juneja.jpg?forceidenticon=false&amp;dt=635045529000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by captain60s</title><link>http://www.asp.net/mvc/tutorials/mvc-music-store/mvc-music-store-part-2</link><pubDate>Sun, 06 Nov 2011 00:43:19 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000014564</guid><description><![CDATA[ <p>Nice. So far, so good.  Glad to see you ricka6.  You were very insightful in the ASP movie tutorial. </p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/captain60s.jpg?forceidenticon=false&amp;dt=635045529000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by stevensrf2</title><link>http://www.asp.net/mvc/tutorials/mvc-music-store/mvc-music-store-part-2</link><pubDate>Sat, 09 Jun 2012 12:26:08 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000015734</guid><description><![CDATA[ <p>Error occurs in browser when both browse methods are used when mapping to  /Store/Browse or /Store/Browse?Genre=Disco</p><p></p><p>How come when both Browse methods are used in the Store controller class that when mapping to Store/Browse or /Store/Browse?Genre=Disco exception error is thrown in the browser.</p><p></p><p>        // GET: /Store/Browse </p><p>        public string Browse()</p><p>        {</p><p>           return &quot;Hello from Store.Browse()&quot;;</p><p></p><p>        }</p><p></p><p>        // </p><p>        // GET: /Store/Browse?genre=Disco </p><p>        public string Browse(string genre)</p><p>        {</p><p></p><p>            string message = HttpUtility.HtmlEncode(&quot;Store.Browse, Genre = &quot; + genre);</p><p></p><p>            return message;</p><p>        } </p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/stevensrf2.jpg?forceidenticon=false&amp;dt=635045529000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by stevensrf2</title><link>http://www.asp.net/mvc/tutorials/mvc-music-store/mvc-music-store-part-2</link><pubDate>Sat, 09 Jun 2012 12:35:54 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000015735</guid><description><![CDATA[ <p></p><p>If I chage the input parameter name in the Details method to idd the browser throwns exception when mapping to /Store/Details/5</p><p></p><p>public string Details(int idd) </p><p> { </p><p>    string message = &quot;Store.Details, ID = &quot; + idd; </p><p>  </p><p>    return message; </p><p> }</p><p></p><p>It works though if the input variable is named id.  How come the input variable has to be named id and not idd to work when mapping to  /Store/Details/5</p><p></p><p></p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/stevensrf2.jpg?forceidenticon=false&amp;dt=635045529000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by anilbabu</title><link>http://www.asp.net/mvc/tutorials/mvc-music-store/mvc-music-store-part-2</link><pubDate>Tue, 31 Jul 2012 08:10:04 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016074</guid><description><![CDATA[ <p>What is URLREDIRECTION in .net?</p><p>how can i implement this concept?</p><p></p><p>My URL is <a rel="nofollow" href="http://example.com" target="_blank">example.com</a></p><p>I have to add one pearameter <a rel="nofollow" href="http://example.com/Empno=1" target="_blank">example.com/</a></p><p>i want to display &quot;ename&quot; in the emp database table corresponding &quot;Empno&quot;</p><p></p><p>plz give me one simple example</p><p>send source code to </p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/anilbabu.jpg?forceidenticon=false&amp;dt=635045529000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by fshy</title><link>http://www.asp.net/mvc/tutorials/mvc-music-store/mvc-music-store-part-2</link><pubDate>Mon, 27 Aug 2012 00:48:37 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016297</guid><description><![CDATA[ <p>Helpful for beginners like me!</p><p>I tried in VB.</p><p></p><p>&#39;====================================================</p><p>Namespace MvcMusicStore</p><p>    Public Class StoreController</p><p>        Inherits System.Web.Mvc.Controller</p><p>        &#39;</p><p>        &#39; GET: /Store</p><p>        Function Index() As String</p><p>            Return &quot;Hello from Store.Index()&quot;</p><p>        End Function</p><p>        &#39;GET:/Store/Browse?genre=Disco</p><p>        Function Browse(ByVal genre As String) As String</p><p>            Dim message As String = HttpUtility.HtmlEncode(&quot;Store.Browse, Genre = &quot; &amp; genre)</p><p>            Return message</p><p>        End Function</p><p>        &#39;GET:/Store/Details</p><p>        Function Details(ByVal id As Integer) As String</p><p>            Dim message As String = &quot;Store.Details, ID = &quot; &amp; id.ToString</p><p>            Return message</p><p>        End Function</p><p>    End Class</p><p>End Namespace</p><p></p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/fshy.jpg?forceidenticon=false&amp;dt=635045529000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by janilane</title><link>http://www.asp.net/mvc/tutorials/mvc-music-store/mvc-music-store-part-2</link><pubDate>Wed, 19 Sep 2012 00:17:29 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016467</guid><description><![CDATA[ <p>// GET: /Store/Details/5 </p><p></p><p>Why is this not working for string, like if I change the argument to string type and do this?</p><p></p><p>/store/Browse/TheQuickBrownFox</p><p></p><p>Thanks</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/janilane.jpg?forceidenticon=false&amp;dt=635045529000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by Long Phan</title><link>http://www.asp.net/mvc/tutorials/mvc-music-store/mvc-music-store-part-2</link><pubDate>Tue, 09 Apr 2013 23:39:41 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000018885</guid><description><![CDATA[ <p>@Janilane: the reason it is not working with the string is the definition of parameter ID. It was &#39;int&#39;, if you want to work with string, just change the type to &#39;string&#39;.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/Long%20Phan.jpg?forceidenticon=false&amp;dt=635045529000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by payini</title><link>http://www.asp.net/mvc/tutorials/mvc-music-store/mvc-music-store-part-2</link><pubDate>Thu, 02 May 2013 16:28:30 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000019025</guid><description><![CDATA[ <p>Great tutorial. Thank you.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/payini.jpg?forceidenticon=false&amp;dt=635045529000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item></channel></rss>