<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>Displaying Data</title><link>http://www.asp.net</link><pubDate>Thu, 09 May 2013 09:47:43 GMT</pubDate><generator>umbraco</generator><description>Comments for Displaying Data</description><language>en</language><atom:link href="http://www.asp.net/rss/comments/38474" rel="self" type="application/rss+xml" /><item><title>Comment Posted by bdk_wa</title><link>http://www.asp.net/web-pages/tutorials/introducing-aspnet-web-pages-2/displaying-data</link><pubDate>Wed, 06 Jun 2012 13:33:44 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000015699</guid><description><![CDATA[ <p>Hi I am new to programing and Asp.net, I was enjoying the tutorial up to this point.  However when I run the completed code above, I get the following error: Compilation Error Message CS0103: The name &#39;Database&#39; does not exist in the current context.  I have been trying to find a solution without success.  Based on my research I believe is has to do will webmatrics.data.dll.  At the suggest of other related posted I have added this file to the bin folder of the site and also try referenceing the file in the code at the top of the page with @using webmatrix.data.  I am stuck!  I would be grateful for any help you could lend.</p><p>Thanks</p><p>Bdk_wa</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/bdk_wa.jpg?forceidenticon=false&amp;dt=635045601600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by mikepope</title><link>http://www.asp.net/web-pages/tutorials/introducing-aspnet-web-pages-2/displaying-data</link><pubDate>Fri, 08 Jun 2012 01:44:24 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000015721</guid><description><![CDATA[ <p>@Bdk_wa, you&#39;re experiencing an odd problem indeed. The Database class is built into ASP.NET Web Pages, and there should be no issue with referencing it in code. For sure you should not have to add the assembly to the bin folder. I suggest that you post your query on the ASP.NET forums (<a rel="nofollow" href="http://forums.asp.net/1224.aspx/1?WebMatrix" target="_blank">forums.asp.net/</a>+and+ASP+NET+Web+Pages) and see if someone there can help figure out what the problem is. </p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/mikepope.jpg?forceidenticon=false&amp;dt=635045601600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by mikepope</title><link>http://www.asp.net/web-pages/tutorials/introducing-aspnet-web-pages-2/displaying-data</link><pubDate>Fri, 08 Jun 2012 04:36:18 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000015724</guid><description><![CDATA[ <p>Ok, I figured this out! For the RC release, they removed the data package from the Empty Site template. (It was automatically included in the template in earlier releases.) I&#39;ve added a section &quot;Adding the WebData Package&quot; that describes how to install the package. Hopefully that will solve the problem!</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/mikepope.jpg?forceidenticon=false&amp;dt=635045601600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by muralidharan.d</title><link>http://www.asp.net/web-pages/tutorials/introducing-aspnet-web-pages-2/displaying-data</link><pubDate>Mon, 11 Jun 2012 07:48:55 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000015744</guid><description><![CDATA[ <p>Mike, </p><p>Your articles are interesting to learn.</p><p>I need one clarification.</p><p>If I want to remove sorting for one or more columns, how I can do that ?</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/muralidharan.d.jpg?forceidenticon=false&amp;dt=635045601600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by mikepope</title><link>http://www.asp.net/web-pages/tutorials/introducing-aspnet-web-pages-2/displaying-data</link><pubDate>Tue, 12 Jun 2012 17:53:44 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000015755</guid><description><![CDATA[ <p>@muralidharan.d, you can set the canSort property of any individual column to false, like this:</p><p></p><p>grid.Column(&quot;Title&quot;, canSort:false)</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/mikepope.jpg?forceidenticon=false&amp;dt=635045601600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by mudasir.khan</title><link>http://www.asp.net/web-pages/tutorials/introducing-aspnet-web-pages-2/displaying-data</link><pubDate>Fri, 13 Jul 2012 14:33:52 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000015973</guid><description><![CDATA[ <p>is this sample demo application&#39;s download available ?</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/mudasir.khan.jpg?forceidenticon=false&amp;dt=635045601600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by prajithmj</title><link>http://www.asp.net/web-pages/tutorials/introducing-aspnet-web-pages-2/displaying-data</link><pubDate>Tue, 31 Jul 2012 04:18:23 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016071</guid><description><![CDATA[ <p>Sir i need to access database from ms sql server 2008 r2 i am not able to execute queries.</p><p></p><p></p><p></p><p></p><p></p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/prajithmj.jpg?forceidenticon=false&amp;dt=635045601600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by newbie_dotnet</title><link>http://www.asp.net/web-pages/tutorials/introducing-aspnet-web-pages-2/displaying-data</link><pubDate>Mon, 13 Aug 2012 01:00:05 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016157</guid><description><![CDATA[ <p>Dear sir,</p><p>I try to type your code but I got error like: Column &quot;ID&quot; does not exist. </p><p>I could not show 3 columns like you. Please show me how to fix.</p><p>Thank you so much</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/newbie_dotnet.jpg?forceidenticon=false&amp;dt=635045601600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by mrptx</title><link>http://www.asp.net/web-pages/tutorials/introducing-aspnet-web-pages-2/displaying-data</link><pubDate>Mon, 27 Aug 2012 21:20:33 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016317</guid><description><![CDATA[ <p>Extremely well done.  Your tutorials are very easy to follow.  I don&#39;t know how you&#39;re able to keep all that code in your head, though.  Thanks.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/mrptx.jpg?forceidenticon=false&amp;dt=635045601600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by cylife3556</title><link>http://www.asp.net/web-pages/tutorials/introducing-aspnet-web-pages-2/displaying-data</link><pubDate>Thu, 01 Nov 2012 06:34:00 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016722</guid><description><![CDATA[ <p>Hi. Thanks for your guide. But I also have same problem CS0103 error and I can&#39;t find your added section &quot;Adding the WebData Package&quot;. </p><p>Could you show me the link?</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/cylife3556.jpg?forceidenticon=false&amp;dt=635045601600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by Elzotech</title><link>http://www.asp.net/web-pages/tutorials/introducing-aspnet-web-pages-2/displaying-data</link><pubDate>Mon, 12 Nov 2012 07:39:27 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016789</guid><description><![CDATA[ <p>Hi,</p><p>I&#39;m working through the tutorial (its very good).</p><p>When I try to display the db in the browser I get:</p><p>HTTP Error 404.8 - Not Found</p><p>The request filtering module is configured to deny a path in the URL that contains a hiddenSegment section.</p><p></p><p>Any ideas? - googling suggests its something to do with  the App_Data folder</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/Elzotech.jpg?forceidenticon=false&amp;dt=635045601600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by Elzotech</title><link>http://www.asp.net/web-pages/tutorials/introducing-aspnet-web-pages-2/displaying-data</link><pubDate>Mon, 12 Nov 2012 13:32:49 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016791</guid><description><![CDATA[ <p>Now sorted - its taken a long time.</p><p>The problem was that the Movies.cshtml file was in the App_Data folder instead of the bin.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/Elzotech.jpg?forceidenticon=false&amp;dt=635045601600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by sleeping_dragoon</title><link>http://www.asp.net/web-pages/tutorials/introducing-aspnet-web-pages-2/displaying-data</link><pubDate>Wed, 14 Nov 2012 08:46:03 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016799</guid><description><![CDATA[ <p>GOoD day, Mike! I need to copy the first 3 of your basic tutorial. I felt i can comprehend it because of your clear explaination. You simplify and clarify Web pages 2. I always thank you.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/sleeping_dragoon.jpg?forceidenticon=false&amp;dt=635045601600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by KeithWhalen</title><link>http://www.asp.net/web-pages/tutorials/introducing-aspnet-web-pages-2/displaying-data</link><pubDate>Fri, 28 Dec 2012 11:05:11 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000017076</guid><description><![CDATA[ <p>Working through these lessons has been a joy, great introduction to Razor and C# code.  Clear, concise and productive.  Many thanks Mike.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/KeithWhalen.jpg?forceidenticon=false&amp;dt=635045601600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by blueberrytoe</title><link>http://www.asp.net/web-pages/tutorials/introducing-aspnet-web-pages-2/displaying-data</link><pubDate>Tue, 29 Jan 2013 00:50:08 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000018270</guid><description><![CDATA[ <p>Mike,</p><p>New to the tech.  Had a question.  I entered the name of a column (field) incorrectly.  Realized it after I saved the table.  I see where I can edit the record data but not able to find where I can edit the field name.  Is this possible?</p><p></p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/blueberrytoe.jpg?forceidenticon=false&amp;dt=635045601600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by blueberrytoe</title><link>http://www.asp.net/web-pages/tutorials/introducing-aspnet-web-pages-2/displaying-data</link><pubDate>Tue, 29 Jan 2013 00:57:29 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000018271</guid><description><![CDATA[ <p>Same question goes for editing field order in the table.  I know you can work around that by explicitly listing the grid colum order but I&#39;d still like to know if this is possible.  Thanks again.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/blueberrytoe.jpg?forceidenticon=false&amp;dt=635045601600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by mswhat</title><link>http://www.asp.net/web-pages/tutorials/introducing-aspnet-web-pages-2/displaying-data</link><pubDate>Wed, 06 Feb 2013 13:57:24 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000018358</guid><description><![CDATA[ <p>The method of database interaction here (connecting, querying, etc) seems very straightforward and easy to grasp as opposed to the .NET MVC Entity Framework, which seems bulky and complicated but is supposed to be more efficient</p><p></p><p>How would you determine which is better for your application, or when the simple approach such as this tutorial, is appropriate?</p><p></p><p>Mike</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/mswhat.jpg?forceidenticon=false&amp;dt=635045601600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by vikramparihar</title><link>http://www.asp.net/web-pages/tutorials/introducing-aspnet-web-pages-2/displaying-data</link><pubDate>Fri, 26 Apr 2013 09:40:36 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000018991</guid><description><![CDATA[ <p>all is fantastic really ..... thanks </p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/vikramparihar.jpg?forceidenticon=false&amp;dt=635045601600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by Chino Chan</title><link>http://www.asp.net/web-pages/tutorials/introducing-aspnet-web-pages-2/displaying-data</link><pubDate>Mon, 06 May 2013 05:12:26 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000019045</guid><description><![CDATA[ <p>Hi! I need help. I got stuck when I was trying to add data in the table. I did everything that was seen here in creating the table. When finishing the first entry to the table, I got an error that said something like:</p><p></p><p>&quot;The column cannot be modified. [Column Name = ID]&quot;</p><p></p><p>Thanks and sorry for the noob question. I am still trying to learn ASP.Net</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/Chino%20Chan.jpg?forceidenticon=false&amp;dt=635045601600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by youvere</title><link>http://www.asp.net/web-pages/tutorials/introducing-aspnet-web-pages-2/displaying-data</link><pubDate>Tue, 07 May 2013 11:50:53 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000019065</guid><description><![CDATA[ <p>Hi! I need help. I got stuck when I was trying to add data in the table. I did everything that was seen here in creating the table. When finishing the first entry to the table, I got an error that said something like:</p><p></p><p>&quot;The column cannot be modified. [Column Name = ID]&quot;</p><p></p><p>Thanks and sorry for the noob question. I am still trying to learn ASP.Net</p><p></p><p></p><p>I have the same problem.. I don&#39;t realy know how to solve this</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/youvere.jpg?forceidenticon=false&amp;dt=635045601600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by youvere</title><link>http://www.asp.net/web-pages/tutorials/introducing-aspnet-web-pages-2/displaying-data</link><pubDate>Tue, 07 May 2013 20:30:37 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000019067</guid><description><![CDATA[ <p>If someone else have the same problem, you can add data when you have finished this part : &quot;entering data&quot; by using your code.</p><p><a rel="nofollow" href="http://www.asp.net/web-pages/tutorials/introducing-aspnet-web-pages-2/entering-data" target="_blank">www.asp.net/</a></p><p></p><p>Great tuto btw!</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/youvere.jpg?forceidenticon=false&amp;dt=635045601600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by clburchard</title><link>http://www.asp.net/web-pages/tutorials/introducing-aspnet-web-pages-2/displaying-data</link><pubDate>Wed, 08 May 2013 17:21:50 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000019074</guid><description><![CDATA[ <p>I also get the error &quot;The column cannot be modified [ Column name = ID ].&quot; I&#39;m not a newbie to computing, so don&#39;t know what to think...</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/clburchard.jpg?forceidenticon=false&amp;dt=635045601600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by Midy Hui</title><link>http://www.asp.net/web-pages/tutorials/introducing-aspnet-web-pages-2/displaying-data</link><pubDate>Thu, 09 May 2013 05:41:50 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000019075</guid><description><![CDATA[ <p>Hey Mike, i am running into one problem when i was attempting to click &quot;New Database&quot; and the error message looks like:</p><p></p><p>Unable to create new database.</p><p></p><p>Exception of type &#39;Microsoft.WebMatrix.DatabaseManager.DependenciesMissingException&#39; was thrown.</p><p></p><p>Microsoft.WebMatrix.DatabaseManager.DependenciesMissingException: Exception of type &#39;Microsoft.WebMatrix.DatabaseManager.DependenciesMissingException&#39; was thrown.</p><p>   at Microsoft.WebMatrix.DatabaseManager.SqlCeDatabase.SqlCeDatabaseProvider.VerifyDependencies()</p><p>   at Microsoft.WebMatrix.DatabaseManager.DatabaseManagerProviders.InstantiateProvider(String providerType)</p><p>   at Microsoft.WebMatrix.DatabaseManager.DatabaseManagerProviders.InstantiateProvider[T](String providerType)</p><p>   at Microsoft.WebMatrix.DatabaseManager.IisDbManagerModuleService.CreateOrGet[T](String providerType)</p><p>   at Microsoft.WebMatrix.DatabaseManager.IisDbManagerModuleService.CreateSqlCeDatabase(DatabaseConnection databaseConnection, String configPathState)</p><p>   at Microsoft.WebMatrix.DatabaseManager.Client.DBManagerController.CreateSqlCeDatabase()</p><p></p><p>BTW, my client machine env. is having Win Server 2k8 R2 + SQL Server 2k8 R2 installed in place. Do you need other additional info to debug this issue? Your any ideas or suggestions would be appreciated.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/Midy%20Hui.jpg?forceidenticon=false&amp;dt=635045601600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by clburchard</title><link>http://www.asp.net/web-pages/tutorials/introducing-aspnet-web-pages-2/displaying-data</link><pubDate>Thu, 09 May 2013 09:47:43 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000019082</guid><description><![CDATA[ <p>Could it be that the &quot;The column cannot be modified [ Column name = ID ].&quot; error reported on May 6, 7, and 8 is related to the update from Webmatrix2 to Webmatrix3? </p><p></p><p>Also, I was not able to get youvere&#39;s workaround (entering database data via the AddMovie code) to work - it threw a syntax error on line 16.</p><p></p><p>Any ideas out there?</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/clburchard.jpg?forceidenticon=false&amp;dt=635045601600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item></channel></rss>