<?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: ViewData does not exist... in a ViewPage?</title><link>http://forums.asp.net/thread/3411836.aspx</link><pubDate>Fri, 18 Sep 2009 01:19:07 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3411836</guid><dc:creator>xsdf</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3411836.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=3411836</wfw:commentRss><description>&lt;p&gt;I have the same problem . And I confirm that I have complied the solution . &lt;/p&gt;&lt;p&gt;There stilll have a warning that &amp;quot;ViewData&amp;quot; does not exist in current context . &lt;/p&gt;&lt;p&gt;How can I figure it out . ?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: ViewData does not exist... in a ViewPage?</title><link>http://forums.asp.net/thread/2596161.aspx</link><pubDate>Tue, 02 Sep 2008 20:52:54 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2596161</guid><dc:creator>ScottGu</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2596161.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=2596161</wfw:commentRss><description>&lt;p&gt;Have you tried compiling the project?&amp;nbsp; It could be that you haven&amp;#39;t done a compile since you added the page, and so intellisense with C# hasn&amp;#39;t picked up that you are deriving from a base-class yet.&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Scott &lt;br /&gt;&lt;/p&gt;</description></item><item><title>ViewData does not exist... in a ViewPage?</title><link>http://forums.asp.net/thread/2595533.aspx</link><pubDate>Tue, 02 Sep 2008 16:19:51 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2595533</guid><dc:creator>Emyr</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2595533.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=2595533</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;In the Index.aspx view of my controller, I&amp;#39;ve done this, and it works:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;pre class="coloredcode"&gt;&lt;span class="dir"&gt;&amp;lt;% &lt;/span&gt;foreach (MyClass item in (IEnumerable)ViewData.Model) { &lt;span class="dir"&gt;%&amp;gt;&lt;/span&gt;
                &amp;lt;&lt;span class="tag"&gt;tr&lt;/span&gt;&amp;gt;
                    &amp;lt;&lt;span class="tag"&gt;td&lt;/span&gt;&amp;gt;
                        &amp;lt;&lt;span class="tag"&gt;a&lt;/span&gt;&lt;span class="attr"&gt; href=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;/MyController/Edit/&lt;span class="dir"&gt;&amp;lt;%=&lt;/span&gt; item.Id &lt;span class="dir"&gt;%&amp;gt;&lt;/span&gt;&amp;quot;&lt;/span&gt;&amp;gt;
                            &lt;span class="dir"&gt;&amp;lt;%=&lt;/span&gt; item.GUID &lt;span class="dir"&gt;%&amp;gt;&lt;/span&gt;
                        &amp;lt;/&lt;span class="tag"&gt;a&lt;/span&gt;&amp;gt;
                    &amp;lt;/&lt;span class="tag"&gt;td&lt;/span&gt;&amp;gt;
                    &amp;lt;&lt;span class="tag"&gt;td&lt;/span&gt;&amp;gt;
                        &amp;lt;&lt;span class="tag"&gt;a&lt;/span&gt;&lt;span class="attr"&gt; href=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;/MyController/Edit/&lt;span class="dir"&gt;&amp;lt;%=&lt;/span&gt; item.Id &lt;span class="dir"&gt;%&amp;gt;&lt;/span&gt;&amp;quot;&lt;/span&gt;&amp;gt;
                            &lt;span class="dir"&gt;&amp;lt;%=&lt;/span&gt; item.Description &lt;span class="dir"&gt;%&amp;gt;&lt;/span&gt;
                        &amp;lt;/&lt;span class="tag"&gt;a&lt;/span&gt;&amp;gt;
                    &amp;lt;/&lt;span class="tag"&gt;td&lt;/span&gt;&amp;gt;
                &amp;lt;/&lt;span class="tag"&gt;tr&lt;/span&gt;&amp;gt;
            &lt;span class="dir"&gt;&amp;lt;% &lt;/span&gt;} &lt;span class="dir"&gt;%&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&amp;nbsp;However, having attempted a copy&amp;amp;paste into a new action&amp;#39;s ViewPage, I&amp;#39;m getting&lt;/p&gt;&lt;p&gt;The name &amp;#39;ViewData&amp;#39; does not exist in the current context&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;WTF?!? &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>