<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://www.asp.net</link><pubDate>Sun, 03 Feb 2013 03:27:21 GMT</pubDate><generator>umbraco</generator><description>Comments for Adding a Controller</description><language>en</language><atom:link href="http://www.asp.net/rss/comments/27650" rel="self" type="application/rss+xml" /><item><title>Comment Posted by shivajoon</title><link>http://www.asp.net/mvc/tutorials/getting-started-with-aspnet-mvc3/cs/adding-a-controller</link><pubDate>Fri, 25 Feb 2011 17:14:00 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000012246</guid><description><![CDATA[ <p>very usefull</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/shivajoon.jpg?forceidenticon=false&amp;dt=635045665800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by mengyuancn</title><link>http://www.asp.net/mvc/tutorials/getting-started-with-aspnet-mvc3/cs/adding-a-controller</link><pubDate>Fri, 06 May 2011 20:19:09 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000013092</guid><description><![CDATA[ <p>easy for understand</p><p>i love this way</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/mengyuancn.jpg?forceidenticon=false&amp;dt=635045665800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by joelee</title><link>http://www.asp.net/mvc/tutorials/getting-started-with-aspnet-mvc3/cs/adding-a-controller</link><pubDate>Sun, 15 May 2011 15:30:50 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000013177</guid><description><![CDATA[ <p>In the above section it is stated &quot;The first part of the URL determines the controller class to execute. So /HelloWorld maps to the HelloWorldController class&quot; ... I was initially confused as to what defines this mapping. Apparently the begining of the controller class name  is the {ActionName] implicitly i.e. the end of the name has to be Controller. Is this correct?</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/joelee.jpg?forceidenticon=false&amp;dt=635045665800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by georgehuynh</title><link>http://www.asp.net/mvc/tutorials/getting-started-with-aspnet-mvc3/cs/adding-a-controller</link><pubDate>Fri, 20 May 2011 16:24:37 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000013235</guid><description><![CDATA[ <p>This is very straightforward tutorial for a beginner leaner. Thanks </p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/georgehuynh.jpg?forceidenticon=false&amp;dt=635045665800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by ollza</title><link>http://www.asp.net/mvc/tutorials/getting-started-with-aspnet-mvc3/cs/adding-a-controller</link><pubDate>Tue, 14 Jun 2011 03:57:50 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000013502</guid><description><![CDATA[ <p>I get 404 when i type xxxxx.localhostxxx/HelloWorld</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/ollza.jpg?forceidenticon=false&amp;dt=635045665800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by geodetics</title><link>http://www.asp.net/mvc/tutorials/getting-started-with-aspnet-mvc3/cs/adding-a-controller</link><pubDate>Mon, 20 Jun 2011 02:10:06 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000013561</guid><description><![CDATA[ <p>@ollza</p><p></p><p>This is the format from above:</p><p></p><p><a rel="nofollow" href="http://localhost:xxxx/HelloWorld/Welcome." target="_blank">localhost</a></p><p></p><p>I think that&#39;s supposed to be the randomly-generated number for the development server. Check the url while the page is running. The example has 43246, but it will likely be different for each user/project. Mine was 53198.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/geodetics.jpg?forceidenticon=false&amp;dt=635045665800000000&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/getting-started-with-aspnet-mvc3/cs/adding-a-controller</link><pubDate>Tue, 28 Jun 2011 19:54:14 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000013634</guid><description><![CDATA[ <p>geodetics: thanks for helping out, you are correct. The xxx are just place holder for the random port used.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/ricka6.jpg?forceidenticon=false&amp;dt=635045665800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by shoaibmk</title><link>http://www.asp.net/mvc/tutorials/getting-started-with-aspnet-mvc3/cs/adding-a-controller</link><pubDate>Sun, 24 Jul 2011 05:26:58 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000013825</guid><description><![CDATA[ <p>nice nery easy</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/shoaibmk.jpg?forceidenticon=false&amp;dt=635045665800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by unknownx</title><link>http://www.asp.net/mvc/tutorials/getting-started-with-aspnet-mvc3/cs/adding-a-controller</link><pubDate>Sun, 31 Jul 2011 15:59:37 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000013885</guid><description><![CDATA[ <p>Make sure you are stopped the debugger, before you can edit the HelloWorldController.cs</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/unknownx.jpg?forceidenticon=false&amp;dt=635045665800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by marengga</title><link>http://www.asp.net/mvc/tutorials/getting-started-with-aspnet-mvc3/cs/adding-a-controller</link><pubDate>Mon, 15 Aug 2011 23:09:10 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000013966</guid><description><![CDATA[ <p>Hey, what&#39;s the function of  &quot;=1&quot; after numTimes param on Welcome method?</p><p>If it assign 1 to numTimes why do it display &quot;Hello Scott, numTimes is 4&quot; on browser?</p><p></p><p>public string Welcome(string name, int numTimes = 1) {</p><p>     return HttpUtility.HtmlEncode(&quot;Hello &quot; + name + &quot;, NumTimes is: &quot; + numTimes);</p><p>}</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/marengga.jpg?forceidenticon=false&amp;dt=635045665800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by Tyveil</title><link>http://www.asp.net/mvc/tutorials/getting-started-with-aspnet-mvc3/cs/adding-a-controller</link><pubDate>Thu, 18 Aug 2011 14:47:39 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000013985</guid><description><![CDATA[ <p>The =1 makes it an optional parameter.  If you pass in a value, it uses that, if you don&#39;t pass in this parameter it uses the default value of 1. </p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/Tyveil.jpg?forceidenticon=false&amp;dt=635045665800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by TheOtherSid</title><link>http://www.asp.net/mvc/tutorials/getting-started-with-aspnet-mvc3/cs/adding-a-controller</link><pubDate>Sun, 11 Sep 2011 22:00:17 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000014168</guid><description><![CDATA[ <p>Hey guys,</p><p>I just noticed something.</p><p>You&#39;ve specified that the default mapping logic used by ASP.NET MVC uses a format like [Controller]/[ActionName]/[Parameter]</p><p></p><p>However, after many tests, it appears that the format is more like this:</p><p></p><p>[Controller]/[ActionName]?[Parameters]</p><p></p><p>Am I correct?</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/TheOtherSid.jpg?forceidenticon=false&amp;dt=635045665800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by jasmine2501</title><link>http://www.asp.net/mvc/tutorials/getting-started-with-aspnet-mvc3/cs/adding-a-controller</link><pubDate>Wed, 19 Oct 2011 18:07:46 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000014455</guid><description><![CDATA[ <p>&quot;Inside the public class HelloWorldController block, create two methods that look like the following code. The controller will return a string of HTML as an example.&quot;</p><p></p><p>Should say something more like &quot;replace all this code&quot; because simply creating the two methods causes an error, conflict with the existing Index() method. Not a big deal, just lazy article-writing.</p><p></p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/jasmine2501.jpg?forceidenticon=false&amp;dt=635045665800000000&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/getting-started-with-aspnet-mvc3/cs/adding-a-controller</link><pubDate>Wed, 19 Oct 2011 20:38:55 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000014456</guid><description><![CDATA[ <p>TheOtherSid : the default mapping logic used by ASP.NET MVC uses a format like [Controller]/[ActionName]/[Parameter]</p><p>That is correct. if param is not a route value, it&#39;s added as a query string and used the query String $ in the URL. Look at any URL on the index page later in the tutorial.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/ricka6.jpg?forceidenticon=false&amp;dt=635045665800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by ziang</title><link>http://www.asp.net/mvc/tutorials/getting-started-with-aspnet-mvc3/cs/adding-a-controller</link><pubDate>Tue, 08 Nov 2011 08:58:21 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000014583</guid><description><![CDATA[ <p>hello, After creting the Hello World Controller am not bale to proceed. Can any one tell me why?</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/ziang.jpg?forceidenticon=false&amp;dt=635045665800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by BjornHjorth</title><link>http://www.asp.net/mvc/tutorials/getting-started-with-aspnet-mvc3/cs/adding-a-controller</link><pubDate>Fri, 10 Feb 2012 19:16:29 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000014810</guid><description><![CDATA[ <p>Thanks for these tutorials, so far making it easy to go from procedual PHP coding to MVC Framework. Thumbs up :)</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/BjornHjorth.jpg?forceidenticon=false&amp;dt=635045665800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by A1n4</title><link>http://www.asp.net/mvc/tutorials/getting-started-with-aspnet-mvc3/cs/adding-a-controller</link><pubDate>Sat, 17 Mar 2012 14:37:42 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000015142</guid><description><![CDATA[ <p>Nice tutorial. </p><p></p><p>i&#39;d type in th browser localhost:xxxx/HelloWorld/Welcome?name=&lt;script&gt;alert(&quot;XSS Vulnerable&quot;);&lt;/script&gt;</p><p></p><p>I hope its fixed in a later tutorial.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/A1n4.jpg?forceidenticon=false&amp;dt=635045665800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by ResidentialEvil</title><link>http://www.asp.net/mvc/tutorials/getting-started-with-aspnet-mvc3/cs/adding-a-controller</link><pubDate>Thu, 19 Apr 2012 18:50:08 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000015368</guid><description><![CDATA[ <p>When try to run http://localhost:43246/HelloWorld or http://localhost:xxxx/HelloWorld/Welcome I get the following runtime error: </p><p></p><p>Microsoft JScript runtime error: Object doesn&#39;t support property or method &#39;addEventListener&#39;</p><p></p><p>I have followed all steps correctly.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/ResidentialEvil.jpg?forceidenticon=false&amp;dt=635045665800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by mishra.bhupesh</title><link>http://www.asp.net/mvc/tutorials/getting-started-with-aspnet-mvc3/cs/adding-a-controller</link><pubDate>Sat, 12 May 2012 23:51:33 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000015491</guid><description><![CDATA[ <p>As we added  controller it has a method public ActionResult Index(){ return View();}.</p><p>It seems ActionResult is a class and View() is method. We removed that and we added our own definition.</p><p>Little confusing me to understand.</p><p></p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/mishra.bhupesh.jpg?forceidenticon=false&amp;dt=635045665800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by yasser b zamani</title><link>http://www.asp.net/mvc/tutorials/getting-started-with-aspnet-mvc3/cs/adding-a-controller</link><pubDate>Sat, 19 May 2012 02:17:08 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000015559</guid><description><![CDATA[ <p>I suggest rewriting */[Controller]/[ActionName]/[Parameters]* to **/[Controller]/[ActionName]?[Parameters]** for default mapping logic because when I used the format, it confused me with error &quot;A potentially dangerous Request.Path value was detected from the client (&amp;).&quot;</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/yasser%20b%20zamani.jpg?forceidenticon=false&amp;dt=635045665800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by chris_evan_davis</title><link>http://www.asp.net/mvc/tutorials/getting-started-with-aspnet-mvc3/cs/adding-a-controller</link><pubDate>Fri, 01 Jun 2012 17:09:19 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000015647</guid><description><![CDATA[ <p>I struggled for hours with an error trying to connect to SQL Server 2010 Express instead of CE. What a mess... the solution was I had to ensure the database did not already exist! Oy vey. That&#39;s part of logical development: build an object model, data model, then move onto business rules, etc.</p><p></p><p>Why must the Entity Framework force construction of the database? That&#39;s insane!</p><p>This really is the most convoluted and invasive solution to a problem (mechanism) I&#39;ve ever seen.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/chris_evan_davis.jpg?forceidenticon=false&amp;dt=635045665800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by bchernick</title><link>http://www.asp.net/mvc/tutorials/getting-started-with-aspnet-mvc3/cs/adding-a-controller</link><pubDate>Sun, 24 Jun 2012 13:37:51 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000015836</guid><description><![CDATA[ <p>To the best of my knowledge I have all the necessary software.  I&#39;m running VS2010 Pro.</p><p></p><p>This tutorial does not work as written.  </p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/bchernick.jpg?forceidenticon=false&amp;dt=635045665800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by pcls81</title><link>http://www.asp.net/mvc/tutorials/getting-started-with-aspnet-mvc3/cs/adding-a-controller</link><pubDate>Thu, 23 Aug 2012 12:52:18 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016266</guid><description><![CDATA[ <p>I have done the same steps, but if I use the url like the tutorial says I recieve the error that resource not encountered: HelloWorld... what problem I have?</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/pcls81.jpg?forceidenticon=false&amp;dt=635045665800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by camerontbelt</title><link>http://www.asp.net/mvc/tutorials/getting-started-with-aspnet-mvc3/cs/adding-a-controller</link><pubDate>Thu, 06 Dec 2012 19:08:22 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016954</guid><description><![CDATA[ <p>Im using Visual Studio 2010 And this code does not work. i get a 404 error and ive followed all the steps</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/camerontbelt.jpg?forceidenticon=false&amp;dt=635045665800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by shamimbd0</title><link>http://www.asp.net/mvc/tutorials/getting-started-with-aspnet-mvc3/cs/adding-a-controller</link><pubDate>Sun, 03 Feb 2013 03:27:21 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000018329</guid><description><![CDATA[ <p>good tutorial! </p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/shamimbd0.jpg?forceidenticon=false&amp;dt=635045665800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item></channel></rss>