<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>Adding a Controller</title><link>http://asp.net</link><pubDate>Tue, 04 Jan 2011 07:08:40 GMT</pubDate><generator>umbraco</generator><description>Comments for Adding a Controller</description><language>en</language><atom:link href="http://asp.net/rss/comments/33027" rel="self" type="application/rss+xml" /><item><title>Comment Posted by sudipta k paik</title><link>http://asp.net/mvc/tutorials/older-versions/getting-started-with-mvc/getting-started-with-mvc-part2</link><pubDate>Mon, 30 Aug 2010 01:51:03 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010040</guid><description><![CDATA[ <p>I like it.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/sudipta%20k%20paik.jpg?forceidenticon=false&amp;dt=635048796600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by johnson768</title><link>http://asp.net/mvc/tutorials/older-versions/getting-started-with-mvc/getting-started-with-mvc-part2</link><pubDate>Mon, 30 Aug 2010 12:39:34 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010048</guid><description><![CDATA[ <p>For a complete Novice we need the completed code shown. You say add a method where in the given script? Mine fails and I don&#39;t understand the terminology. As a beginner I need the completed code and it explained for idiots.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/johnson768.jpg?forceidenticon=false&amp;dt=635048796600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by brundaban</title><link>http://asp.net/mvc/tutorials/older-versions/getting-started-with-mvc/getting-started-with-mvc-part2</link><pubDate>Tue, 31 Aug 2010 05:09:35 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010067</guid><description><![CDATA[ <p>Really A good article to start with MVC.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/brundaban.jpg?forceidenticon=false&amp;dt=635048796600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by charles.f.phillips</title><link>http://asp.net/mvc/tutorials/older-versions/getting-started-with-mvc/getting-started-with-mvc-part2</link><pubDate>Tue, 07 Sep 2010 08:21:11 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010150</guid><description><![CDATA[ <p>I love how the url params are automatically translated to method params.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/charles.f.phillips.jpg?forceidenticon=false&amp;dt=635048796600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by crazy7th</title><link>http://asp.net/mvc/tutorials/older-versions/getting-started-with-mvc/getting-started-with-mvc-part2</link><pubDate>Thu, 16 Sep 2010 00:16:34 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010249</guid><description><![CDATA[ <p>why its says : Error! Default parameter specifiers are not permitted, code higlight is int numTimes = 1. im still newbie sorry. thx for help</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/crazy7th.jpg?forceidenticon=false&amp;dt=635048796600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by Murtaza_BusinessMan</title><link>http://asp.net/mvc/tutorials/older-versions/getting-started-with-mvc/getting-started-with-mvc-part2</link><pubDate>Sat, 18 Sep 2010 03:16:29 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010277</guid><description><![CDATA[ <p>For Me I also same error showing Error! Default parameter specifiers are not permitted, code higlight is int numTimes = 1. Thankyou</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/Murtaza_BusinessMan.jpg?forceidenticon=false&amp;dt=635048796600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by aspbot</title><link>http://asp.net/mvc/tutorials/older-versions/getting-started-with-mvc/getting-started-with-mvc-part2</link><pubDate>Wed, 22 Sep 2010 13:23:09 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010339</guid><description><![CDATA[ <p>Don&#39;t specify the default value as 1. Simply pass the int.</p><p></p><p>public string Welcome(string name, int numTimes)</p><p></p><p>On a sidenote C# 3.0 doesn&#39;t support optional parameters. That is a new feature in C# 4.0, so it will only work in VS 2010.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/aspbot.jpg?forceidenticon=false&amp;dt=635048796600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by aspbot</title><link>http://asp.net/mvc/tutorials/older-versions/getting-started-with-mvc/getting-started-with-mvc-part2</link><pubDate>Wed, 22 Sep 2010 13:25:21 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010340</guid><description><![CDATA[ <p>If you are using VS 2008 then this won&#39;t work. Just pass the integer in your method for the time being.</p><p>public string Welcome(string name, int numTimes)</p><p>C# 3.0 doesn&#39;t support optional parameters. That is a new feature in C# 4.0, so it will only work in VS 2010.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/aspbot.jpg?forceidenticon=false&amp;dt=635048796600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by crazy7th</title><link>http://asp.net/mvc/tutorials/older-versions/getting-started-with-mvc/getting-started-with-mvc-part2</link><pubDate>Thu, 23 Sep 2010 04:56:10 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010352</guid><description><![CDATA[ <p>how to make that default variable as 1? so if write in browser like this : <a rel="nofollow" href="http://localhost:xx/HelloWorld/Welcome?name=Scott" target="_blank">localhost</a> still can be running well</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/crazy7th.jpg?forceidenticon=false&amp;dt=635048796600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by glucose</title><link>http://asp.net/mvc/tutorials/older-versions/getting-started-with-mvc/getting-started-with-mvc-part2</link><pubDate>Tue, 12 Oct 2010 19:14:05 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010586</guid><description><![CDATA[ <p>Yes, this is a 2010 specific tutorial.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/glucose.jpg?forceidenticon=false&amp;dt=635048796600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by turinmachine</title><link>http://asp.net/mvc/tutorials/older-versions/getting-started-with-mvc/getting-started-with-mvc-part2</link><pubDate>Thu, 21 Oct 2010 19:03:50 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010703</guid><description><![CDATA[ <p>Thanks for this tutorial. It helps to solve my frustation with MVC.</p><p></p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/turinmachine.jpg?forceidenticon=false&amp;dt=635048796600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by hehf</title><link>http://asp.net/mvc/tutorials/older-versions/getting-started-with-mvc/getting-started-with-mvc-part2</link><pubDate>Sat, 06 Nov 2010 00:30:02 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010843</guid><description><![CDATA[ <p>A good article to start with MVC. thanks</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/hehf.jpg?forceidenticon=false&amp;dt=635048796600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by myousuf</title><link>http://asp.net/mvc/tutorials/older-versions/getting-started-with-mvc/getting-started-with-mvc-part2</link><pubDate>Tue, 09 Nov 2010 16:22:39 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010896</guid><description><![CDATA[ <p>Nice Article to start MVC with</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/myousuf.jpg?forceidenticon=false&amp;dt=635048796600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by JomyKanjal</title><link>http://asp.net/mvc/tutorials/older-versions/getting-started-with-mvc/getting-started-with-mvc-part2</link><pubDate>Wed, 10 Nov 2010 09:44:41 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010902</guid><description><![CDATA[ <p>Nice, very simple to understand..</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/JomyKanjal.jpg?forceidenticon=false&amp;dt=635048796600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by bluedolphin2311</title><link>http://asp.net/mvc/tutorials/older-versions/getting-started-with-mvc/getting-started-with-mvc-part2</link><pubDate>Thu, 18 Nov 2010 10:21:16 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010991</guid><description><![CDATA[ <p>My code bombs at public class HelloWorldController : Controller.  It says &quot;Declaration expected&quot;.  I choose to program in VB instead of C#, don&#39;t think that would be what is causing the error.  It would be extremely helpful to review the exact code for this tutorial.  </p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/bluedolphin2311.jpg?forceidenticon=false&amp;dt=635048796600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by jwpjr765</title><link>http://asp.net/mvc/tutorials/older-versions/getting-started-with-mvc/getting-started-with-mvc-part2</link><pubDate>Wed, 24 Nov 2010 16:12:02 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000011046</guid><description><![CDATA[ <p>@bluedolphin2311: have you figured out the issue for the error? Did you start your project as VB or C# project? If VB your class declaration should be: &#39;Public Class hellWorldController Inherits System.Web.Mvc.Controller&#39;.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/jwpjr765.jpg?forceidenticon=false&amp;dt=635048796600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by ZebraNasty</title><link>http://asp.net/mvc/tutorials/older-versions/getting-started-with-mvc/getting-started-with-mvc-part2</link><pubDate>Fri, 26 Nov 2010 17:14:21 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000011060</guid><description><![CDATA[ <p>This wasn&#39;t helpful at all. I have a total of 13 errors and I don&#39;t understand any of this termonology. This definitely isn&#39;t a beginners tutorial. I have no MVC knowledge and I&#39;m trying to learn this stuff and it doesn&#39;t help if I can&#39;t get anything to work. I don&#39;t know if I&#39;m forgetting to add code, or something but it&#39;s having all kinds of errors. This tutorial needs to be more extensive.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/ZebraNasty.jpg?forceidenticon=false&amp;dt=635048796600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by blahhumbug</title><link>http://asp.net/mvc/tutorials/older-versions/getting-started-with-mvc/getting-started-with-mvc-part2</link><pubDate>Fri, 03 Dec 2010 06:00:08 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000011120</guid><description><![CDATA[ <p>When I added the controller, the Index method defaulted to returning an ActionResult. I had to change the return type to string in order to follow the example. Has the default changed?</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/blahhumbug.jpg?forceidenticon=false&amp;dt=635048796600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by rhether</title><link>http://asp.net/mvc/tutorials/older-versions/getting-started-with-mvc/getting-started-with-mvc-part2</link><pubDate>Fri, 10 Dec 2010 09:05:49 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000011172</guid><description><![CDATA[ <p>I slightly modified the code adding a for loop to repeat the output by numTimes</p><p></p><p> public string Welcome(string name, int numTimes=1)</p><p>        {                     </p><p>                string message = &quot;Hello &quot; + name + &quot;, numTimes is: &quot; + numTimes;</p><p>                for (int i = 0; i &lt; numTimes; i++)</p><p>                {</p><p>                    return &quot;&quot; + Server.HtmlEncode(message) + &quot;&quot;;</p><p>                }     </p><p>        }</p><p></p><p>I am getting an error message: not all code paths return a value</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/rhether.jpg?forceidenticon=false&amp;dt=635048796600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by Petter Skodvin-Hvammen</title><link>http://asp.net/mvc/tutorials/older-versions/getting-started-with-mvc/getting-started-with-mvc-part2</link><pubDate>Tue, 04 Jan 2011 07:08:40 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000011407</guid><description><![CDATA[ <p>That is because you have a return statement inside the for loop and only the first iteration will be executed before method exits.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/Petter%20Skodvin-Hvammen.jpg?forceidenticon=false&amp;dt=635048796600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item></channel></rss>