<?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.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>ADO.NET Entity Framework vs Dataset desinger</title><link>http://forums.asp.net/thread/3530723.aspx</link><pubDate>Tue, 24 Nov 2009 19:19:45 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3530723</guid><dc:creator>polynaux</dc:creator><author>polynaux</author><slash:comments>2</slash:comments><comments>http://forums.asp.net/thread/3530723.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=3530723</wfw:commentRss><description>&lt;p&gt;&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;Hi Guys,
&lt;br /&gt;I am having trouble grasping the differences
&lt;br /&gt;between the ADO.NET Entity Framework and
&lt;br /&gt;the Dataset designer.
&lt;br /&gt;
&lt;br /&gt;According to microsoft:
&lt;br /&gt;The Dataset Designer is a set of visual tools for creating and
editing typed datasets and the individual items that make up datasets.
&lt;br /&gt;The Dataset Designer provides visual representations of the
objects contained in typed datasets. You create and modify
TableAdapters, TableAdapter Queries, DataTables, DataColumns, and
DataRelations with the Dataset Designer.
&lt;br /&gt;
&lt;br /&gt;Well, does the same thing not happen when
&lt;br /&gt;I use the ADO.NET Entity Framework to &amp;quot;mirror&amp;quot; my
&lt;br /&gt;database structures?&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Microsoft Entity Framework
&lt;br /&gt;

&lt;br /&gt;
&lt;a href="http://www.asp.net/learn/mvc/tutorial-21-vb.aspx"&gt;http://www.asp.net/learn/mvc/tutorial-21-vb.aspx&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Using Try/UpdateModel to convert currency to decimal?</title><link>http://forums.asp.net/thread/3528881.aspx</link><pubDate>Mon, 23 Nov 2009 22:28:03 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3528881</guid><dc:creator>cadmium48</dc:creator><author>cadmium48</author><slash:comments>3</slash:comments><comments>http://forums.asp.net/thread/3528881.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=3528881</wfw:commentRss><description>&lt;p&gt;Is there any way to get UpdateModel or TryUpdateModel to parse a money
or currency formatted value such as $1,200.00 into a decimal without blowing chunks?&lt;/p&gt;</description></item><item><title>mvc: updating a List</title><link>http://forums.asp.net/thread/3529325.aspx</link><pubDate>Tue, 24 Nov 2009 05:46:02 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3529325</guid><dc:creator>DocEnriM</dc:creator><author>DocEnriM</author><slash:comments>5</slash:comments><comments>http://forums.asp.net/thread/3529325.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=3529325</wfw:commentRss><description>&lt;p&gt;Hi all.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve spent ages searching the web, and cannot find code/how to &amp;nbsp;for this simple&amp;nbsp;problem:&lt;/p&gt;
&lt;p&gt;I have a List&amp;lt;MyObject&amp;gt;. &lt;/p&gt;
&lt;p&gt;I have a strongly type view: inherits...... .ViewPage&amp;lt;List&amp;lt;MyObject&amp;gt;&amp;gt;&lt;/p&gt;
&lt;p&gt;In the code I have (inside a using Html.BeginForm):&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;% foreach&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;var&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; item &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;in&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; Model) { %&amp;gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;tr&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &amp;lt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;td&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &amp;lt;%&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; Html.TextBox(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;ID&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, item.ID) %&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt; &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;
&lt;p&gt;&amp;lt;% } %&amp;gt;&lt;/p&gt;
&lt;p&gt;I pass a list, it shows it ok (the Edit /get method).&lt;/p&gt;
&lt;p&gt;However, in the post version :&lt;/p&gt;&lt;/p&gt;
&lt;p&gt;
&lt;p&gt;&lt;font size="2"&gt;
&lt;p&gt;[&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;AcceptVerbs&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;(&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;HttpVerbs&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Post)]&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/p&gt;
&lt;p&gt;
&lt;p&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;ActionResult&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; Edit(&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;List&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;MyObject&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; listOfIds)&lt;/font&gt;&lt;/p&gt;&lt;/p&gt;
&lt;p&gt;
&lt;p&gt;the&amp;nbsp;listOfIds is always null.&lt;/p&gt;
&lt;p&gt;Am I missing something obvious? I saw Phil Haack&amp;#39;s article about &amp;quot;Model Binding to a List&amp;quot; and it says it is &lt;/p&gt;
&lt;p&gt;outdated (from 2008), plus the example is actually not very real world (a list hard coded?).&lt;/p&gt;
&lt;p&gt;Has anybody used something like this? Does anybody know if this can work?&lt;/p&gt;
&lt;p&gt;TIA,&lt;/p&gt;
&lt;p&gt;DocE&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Controller.ViewEngine missing from assembly</title><link>http://forums.asp.net/thread/3530851.aspx</link><pubDate>Tue, 24 Nov 2009 20:50:12 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3530851</guid><dc:creator>jurrinus</dc:creator><author>jurrinus</author><slash:comments>3</slash:comments><comments>http://forums.asp.net/thread/3530851.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=3530851</wfw:commentRss><description>&lt;p&gt;This one has me stumped. I&amp;#39;m attempting to set up a&amp;nbsp;controller test and mock out the view but when I create the controller and attempt to assign the ViewEngine it is not in the assembly.&lt;/p&gt;
&lt;p&gt;I have used the Relector to look inside the assembly and sure enough it does not exist. Is this part of an extension.&lt;/p&gt;
&lt;p&gt;Any help on this matter would be appreciated.&lt;/p&gt;
&lt;p&gt;I have ASP.NET MVC 1.0 installed.&lt;/p&gt;
&lt;p&gt;Jerry&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>System.Web.HttpException in System.Web.MVC</title><link>http://forums.asp.net/thread/3529318.aspx</link><pubDate>Tue, 24 Nov 2009 05:40:54 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3529318</guid><dc:creator>N!cky</dc:creator><author>N!cky</author><slash:comments>3</slash:comments><comments>http://forums.asp.net/thread/3529318.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=3529318</wfw:commentRss><description>&lt;p&gt;Could this be why my MVC app is not working on GoDaddy?&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Here is the error &lt;/p&gt;&lt;p&gt;...&lt;/p&gt;&lt;p&gt;A first chance exception of
type &amp;#39;System.Web.HttpException&amp;#39; occurred in System.Web.dll&lt;/p&gt;
&lt;p&gt;A first chance exception of
type &amp;#39;System.Web.HttpException&amp;#39; occurred in System.Web.dll&lt;/p&gt;
&lt;p&gt;A first chance exception of
type &amp;#39;System.Web.HttpException&amp;#39; occurred in System.Web.dll&lt;/p&gt;
&lt;p&gt;A first chance exception of
type &amp;#39;System.Web.HttpException&amp;#39; occurred in System.Web.Mvc.dll&lt;/p&gt;
&lt;p&gt;A first chance exception of
type &amp;#39;System.Web.HttpException&amp;#39; occurred in System.Web.Mvc.dll&lt;/p&gt;
&lt;p&gt;The thread 0xac has exited
with code 0 (0x0).&lt;/p&gt;&lt;p&gt;
The
program &amp;#39;[3368] WebDev.WebServer.EXE: Managed&amp;#39; has exited with code 0 (0x0).&lt;/p&gt;</description></item><item><title>How to use ScriptManager.RegisterClientScriptBlock in asp.net mvc?</title><link>http://forums.asp.net/thread/3530149.aspx</link><pubDate>Tue, 24 Nov 2009 14:13:13 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3530149</guid><dc:creator>Juliana Machado</dc:creator><author>Juliana Machado</author><slash:comments>3</slash:comments><comments>http://forums.asp.net/thread/3530149.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=3530149</wfw:commentRss><description>&lt;p&gt;Sorry my poor english ...&lt;/p&gt;
&lt;p&gt;I need to use the ScriptManager.RegisterClientScriptBlock to display messages in my application when necessary, but I can not use the asp.net mvc as used in asp.net web form:&lt;/p&gt;
&lt;p&gt;System.Web.UI.ScriptManager.RegisterClientScriptBlock (Me, [GetType] (), &amp;quot;script&amp;quot;, &amp;quot;&amp;lt;script&amp;gt; alert ( &amp;#39;My Message&amp;#39;) &amp;lt;/ script&amp;gt;&amp;quot;, False)&lt;/p&gt;
&lt;p&gt;Does anyone have a hint of what is needed?&lt;/p&gt;</description></item><item><title>MVC Ajax / Sys Failure in IIS7</title><link>http://forums.asp.net/thread/3530525.aspx</link><pubDate>Tue, 24 Nov 2009 17:37:49 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3530525</guid><dc:creator>liaothomas</dc:creator><author>liaothomas</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3530525.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=3530525</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I am encountering a problem with the Sys object when I move an MVC application from the dev web server to IIS 7 proper.&amp;nbsp; I get the error, &amp;quot;Microsoft JScript runtime error: &amp;#39;Sys&amp;#39; is undefined&amp;quot; on the statement, &amp;quot;Sys.Application.add_init(pageInit); in the Contact Manager tutorial 7 project as the published source.&amp;nbsp; This is not a problem when launched from VS2008 into the development web server.&amp;nbsp; The error occurs 100% of the time when served from IIS7 (localhost).&lt;/p&gt;
&lt;p&gt;I have encountered the same&amp;nbsp;behavior with the Ajax.ActionLink helper in NerdDinner 1.0&amp;nbsp;and my own MVC program that uses the Ajax.ActionLink helper.&lt;/p&gt;
&lt;p&gt;My search has turned up the report of an intermittent issue with the same error reported where repeated refreshes of the page makes the problem go away.&amp;nbsp; This does not work in my case.&amp;nbsp; I have checked the web.config to make sure it matches all of the configuration recommendation.&amp;nbsp; Everything that should be in place in the http handler, assembly, http module, etc. sections conform to the recommendations.&lt;/p&gt;
&lt;p&gt;I am running IIS7 in Vista Ultimate SP2.&amp;nbsp; I am using VS2008:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Microsoft Visual Studio 2008&lt;br /&gt;Version 9.0.30729.1 SP&lt;br /&gt;Microsoft .NET Framework&lt;br /&gt;Version 3.5 SP1&lt;/p&gt;
&lt;p&gt;.NET 3.5 SP1&lt;/p&gt;
&lt;p&gt;What is different about the run time environment of IIS7 and the development web server?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;</description></item><item><title>Problem with jquery ui and Create page but not Edit page</title><link>http://forums.asp.net/thread/3530648.aspx</link><pubDate>Tue, 24 Nov 2009 18:49:52 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3530648</guid><dc:creator>ChrisNicola</dc:creator><author>ChrisNicola</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3530648.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=3530648</wfw:commentRss><description>&lt;p&gt;I have two nearly identical pages, one for creating an entity and another for editing.&amp;nbsp; The jquery ui elements for datepicker and an html textarea editor work on the edit but not on the create page.&amp;nbsp; I can&amp;#39;t figure this out.&amp;nbsp; I am running it localling on XP (which I believe means IIS 5.1)&lt;/p&gt;&lt;p&gt;Edit page:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;pre name="code" class="xhtml:collapse"&gt;&amp;lt;%@ Page Title=&amp;quot;&amp;quot; Language=&amp;quot;C#&amp;quot; MasterPageFile=&amp;quot;~/Views/Shared/Site.Master&amp;quot; Inherits=&amp;quot;System.Web.Mvc.ViewPage&amp;lt;Marketing.Web.Data.HomepageResource&amp;gt;&amp;quot; %&amp;gt;

&amp;lt;asp:Content ID=&amp;quot;Title&amp;quot; ContentPlaceHolderID=&amp;quot;TitleContent&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;
	Edit
&amp;lt;/asp:Content&amp;gt;

&amp;lt;asp:Content ID=&amp;quot;Main&amp;quot; ContentPlaceHolderID=&amp;quot;MainContent&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;

    &amp;lt;h2&amp;gt;Edit&amp;lt;/h2&amp;gt;

    &amp;lt;%= Html.ValidationSummary(&amp;quot;Edit was unsuccessful. Please correct the errors and try again.&amp;quot;) %&amp;gt;

    &amp;lt;% using (Html.BeginForm()) {%&amp;gt;

        &amp;lt;fieldset&amp;gt;
            &amp;lt;legend&amp;gt;Fields&amp;lt;/legend&amp;gt;
            &amp;lt;p&amp;gt;
                &amp;lt;label for=&amp;quot;title&amp;quot;&amp;gt;Title:&amp;lt;/label&amp;gt;
                &amp;lt;%= Html.TextBox(&amp;quot;title&amp;quot;) %&amp;gt;
                &amp;lt;%= Html.ValidationMessage(&amp;quot;title&amp;quot;, &amp;quot;*&amp;quot;) %&amp;gt;
            &amp;lt;/p&amp;gt;
           &amp;lt;p&amp;gt;
                &amp;lt;img alt=&amp;quot;image&amp;quot; src=&amp;quot;&amp;lt;%= Model.image %&amp;gt;&amp;quot; /&amp;gt;
            &amp;lt;/p&amp;gt;
            &amp;lt;p&amp;gt;
                &amp;lt;label for=&amp;quot;summary&amp;quot;&amp;gt;summary:&amp;lt;/label&amp;gt;
                &amp;lt;%= Html.TextArea(&amp;quot;summary&amp;quot;, Model.summary, 15, 50, new { @class = &amp;quot;textarea&amp;quot; })%&amp;gt;
                &amp;lt;%= Html.ValidationMessage(&amp;quot;summary&amp;quot;, &amp;quot;*&amp;quot;) %&amp;gt;
            &amp;lt;/p&amp;gt;
           &amp;lt;p&amp;gt;
                &amp;lt;a href=&amp;quot;&amp;lt;%= Model.link %&amp;gt;&amp;quot;&amp;gt;&amp;lt;%= Model.link%&amp;gt;&amp;lt;/a&amp;gt;
            &amp;lt;/p&amp;gt;
            &amp;lt;p&amp;gt;
                &amp;lt;label for=&amp;quot;start_date&amp;quot;&amp;gt;Display From:&amp;lt;/label&amp;gt;
                &amp;lt;%= Html.TextBox(&amp;quot;start_date&amp;quot;, Model.start_date, new { @class=&amp;quot;date&amp;quot;}) %&amp;gt;
                &amp;lt;%= Html.ValidationMessage(&amp;quot;start_date&amp;quot;, &amp;quot;*&amp;quot;) %&amp;gt;
            &amp;lt;/p&amp;gt;
            &amp;lt;p&amp;gt;
                &amp;lt;label for=&amp;quot;expiry_date&amp;quot;&amp;gt;Display Until:&amp;lt;/label&amp;gt;
                &amp;lt;%= Html.TextBox(&amp;quot;expiry_date&amp;quot;, Model.expiry_date, new { @class = &amp;quot;date&amp;quot; })%&amp;gt;
                &amp;lt;%= Html.ValidationMessage(&amp;quot;expiry_date&amp;quot;, &amp;quot;*&amp;quot;) %&amp;gt;
            &amp;lt;/p&amp;gt;
            &amp;lt;p&amp;gt;
                &amp;lt;label for=&amp;quot;priority&amp;quot;&amp;gt;Set Priority:&amp;lt;/label&amp;gt;
                &amp;lt;%= Html.TextBox(&amp;quot;priority&amp;quot;) %&amp;gt;
                &amp;lt;%= Html.ValidationMessage(&amp;quot;priority&amp;quot;, &amp;quot;*&amp;quot;) %&amp;gt;
            &amp;lt;/p&amp;gt;
            &amp;lt;p&amp;gt;
                &amp;lt;input type=&amp;quot;submit&amp;quot; value=&amp;quot;Save&amp;quot; /&amp;gt;
            &amp;lt;/p&amp;gt;
        &amp;lt;/fieldset&amp;gt;

    &amp;lt;% } %&amp;gt;

    &amp;lt;div&amp;gt;
        &amp;lt;%=Html.ActionLink(&amp;quot;Back to List&amp;quot;, &amp;quot;Index&amp;quot;) %&amp;gt;
    &amp;lt;/div&amp;gt;

&amp;lt;/asp:Content&amp;gt;&lt;/pre&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; And here is the create page:&lt;/p&gt;&lt;p&gt;&lt;pre name="code" class="c-sharp"&gt;&amp;lt;%@ Page Title=&amp;quot;&amp;quot; Language=&amp;quot;C#&amp;quot; MasterPageFile=&amp;quot;~/Views/Shared/Site.Master&amp;quot; Inherits=&amp;quot;System.Web.Mvc.ViewPage&amp;lt;Marketing.Web.Data.HomepageResource&amp;gt;&amp;quot; %&amp;gt;
&amp;lt;asp:Content ID=&amp;quot;Content1&amp;quot; ContentPlaceHolderID=&amp;quot;TitleContent&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;
	Create
&amp;lt;/asp:Content&amp;gt;

&amp;lt;asp:Content ID=&amp;quot;Content2&amp;quot; ContentPlaceHolderID=&amp;quot;MainContent&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;

    &amp;lt;h2&amp;gt;Create&amp;lt;/h2&amp;gt;

    &amp;lt;%= Html.ValidationSummary(&amp;quot;Create was unsuccessful. Please correct the errors and try again.&amp;quot;) %&amp;gt;

    &amp;lt;% using (Html.BeginForm(&amp;quot;Create&amp;quot;,&amp;quot;HomePage&amp;quot;, null, FormMethod.Post, new {enctype=&amp;quot;multipart/form-data&amp;quot;})) {%&amp;gt;
        &amp;lt;fieldset&amp;gt;
            &amp;lt;legend&amp;gt;Fields&amp;lt;/legend&amp;gt;
            &amp;lt;p&amp;gt;
                &amp;lt;label for=&amp;quot;title&amp;quot;&amp;gt;Title:&amp;lt;/label&amp;gt;
                &amp;lt;%= Html.TextBox(&amp;quot;title&amp;quot;) %&amp;gt;
                &amp;lt;%= Html.ValidationMessage(&amp;quot;title&amp;quot;, &amp;quot;*&amp;quot;) %&amp;gt;
            &amp;lt;/p&amp;gt;
            &amp;lt;p&amp;gt;
                &amp;lt;label for=&amp;quot;image&amp;quot;&amp;gt;Upload Image:&amp;lt;/label&amp;gt;
                &amp;lt;input type=&amp;quot;file&amp;quot; name=&amp;quot;image&amp;quot; id=&amp;quot;image&amp;quot; /&amp;gt;
            &amp;lt;/p&amp;gt;
            &amp;lt;p&amp;gt;
                &amp;lt;label for=&amp;quot;summary&amp;quot;&amp;gt;summary:&amp;lt;/label&amp;gt;
                &amp;lt;%= Html.TextArea(&amp;quot;summary&amp;quot;, null, 15, 50, new { @class = &amp;quot;textarea&amp;quot; })%&amp;gt;
                &amp;lt;%= Html.ValidationMessage(&amp;quot;summary&amp;quot;, &amp;quot;*&amp;quot;) %&amp;gt;
            &amp;lt;/p&amp;gt;
            &amp;lt;p&amp;gt;
                Upload File:
                &amp;lt;input type=&amp;quot;file&amp;quot; name=&amp;quot;file&amp;quot; id=&amp;quot;file&amp;quot; /&amp;gt;
            &amp;lt;/p&amp;gt;
            &amp;lt;p&amp;gt;
                &amp;lt;label for=&amp;quot;link&amp;quot;&amp;gt;HTTP Link (has no effect if file is selected):&amp;lt;/label&amp;gt;
                &amp;lt;%= Html.TextBox(&amp;quot;link&amp;quot;) %&amp;gt;
            &amp;lt;/p&amp;gt;
            &amp;lt;p&amp;gt;
                &amp;lt;label for=&amp;quot;start_date&amp;quot;&amp;gt;Display From:&amp;lt;/label&amp;gt;
                &amp;lt;%= Html.TextBox(&amp;quot;start_date&amp;quot;, null, new { @class = &amp;quot;date&amp;quot; })%&amp;gt;
                &amp;lt;%= Html.ValidationMessage(&amp;quot;start_date&amp;quot;, &amp;quot;*&amp;quot;) %&amp;gt;
            &amp;lt;/p&amp;gt;
            &amp;lt;p&amp;gt;
                &amp;lt;label for=&amp;quot;expiry_date&amp;quot;&amp;gt;Display Until:&amp;lt;/label&amp;gt;
                &amp;lt;%= Html.TextBox(&amp;quot;expiry_date&amp;quot;, null, new { @class = &amp;quot;date&amp;quot; })%&amp;gt;
                &amp;lt;%= Html.ValidationMessage(&amp;quot;expiry_date&amp;quot;, &amp;quot;*&amp;quot;) %&amp;gt;
            &amp;lt;/p&amp;gt;
            &amp;lt;p&amp;gt;
                &amp;lt;label for=&amp;quot;priority&amp;quot;&amp;gt;Set Priority:&amp;lt;/label&amp;gt;
                &amp;lt;%= Html.TextBox(&amp;quot;priority&amp;quot;) %&amp;gt;
                &amp;lt;%= Html.ValidationMessage(&amp;quot;priority&amp;quot;, &amp;quot;*&amp;quot;) %&amp;gt;
            &amp;lt;/p&amp;gt;
            &amp;lt;p&amp;gt;
                &amp;lt;input type=&amp;quot;submit&amp;quot; value=&amp;quot;Create&amp;quot; /&amp;gt;
            &amp;lt;/p&amp;gt;
        &amp;lt;/fieldset&amp;gt;

    &amp;lt;% } %&amp;gt;

    &amp;lt;div&amp;gt;
        &amp;lt;%=Html.ActionLink(&amp;quot;Back to List&amp;quot;, &amp;quot;Index&amp;quot;) %&amp;gt;
    &amp;lt;/div&amp;gt;

&amp;lt;/asp:Content&amp;gt;

&lt;/pre&gt;&lt;/p&gt;&lt;p&gt;The only difference is that on create there are file upload controls available to the user.&amp;nbsp; Before anyone asks, yes I have tried making the Create page completely &lt;i&gt;identical&lt;/i&gt; to the Edit page code.&amp;nbsp; Still the same result.&lt;/p&gt;&lt;p&gt;It almost seems as if it has something to do with the fact that Create is getting a new entity and Edit is getting one via linq2sql but that seems ridiculous:&lt;/p&gt;&lt;p&gt;&lt;pre name="code" class="c-sharp"&gt;    public ActionResult Edit(int id) { return View(Table.FirstOrDefault(e =&amp;gt; e.id == id)); }
    public override ActionResult Create() { return View(new HomepageResource()); }&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Editing Views in MVC Project locks up VS 2008</title><link>http://forums.asp.net/thread/3530672.aspx</link><pubDate>Tue, 24 Nov 2009 18:58:40 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3530672</guid><dc:creator>jeffdfrench</dc:creator><author>jeffdfrench</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3530672.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=3530672</wfw:commentRss><description>&lt;p&gt;When I open a&amp;nbsp;View in an&amp;nbsp;MVC project, as soon as I&amp;nbsp;try to click or type anywhere in the editor VS locks up and I have to use task manager to end the process. I noticed this problem after&amp;nbsp;upgrading&amp;nbsp;from MVC 2 Preview 2 to the Beta release (Uninstalled&amp;nbsp;Preview 2 and Preview Tools for VS then&amp;nbsp;installed Beta and Beta tools).&amp;nbsp;I went back to Preview 2 and the problem&amp;nbsp; persists so I&amp;#39;m not sure if it is related to the Beta install or not. I can edit regular web forms in&amp;nbsp;a&amp;nbsp; web&amp;nbsp; app project no problem and I can even add a regular web form to my MVC app and edit it with no problems. This only occurs on pages / controls that inherit from objects in the System.Web.Mvc namespace. The problem occurs my existing application as well as a brand new MVC app (File &amp;gt; New). I do not have MVC 1.0 installed and I do not have VS2010 installed. I&amp;#39;m running out of ideas. Any help will be greatly appreciated.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Jeff French&lt;/p&gt;</description></item><item><title>mvc error???????????</title><link>http://forums.asp.net/thread/3527738.aspx</link><pubDate>Mon, 23 Nov 2009 11:49:40 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3527738</guid><dc:creator>Ritzie</dc:creator><author>Ritzie</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3527738.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=3527738</wfw:commentRss><description>&lt;p&gt;hello all,i am getting an error in my mvc application please help me.&lt;br /&gt; &lt;br /&gt; The error I am getting is following:&lt;br /&gt; &lt;br /&gt; The entity or complex type &amp;#39;Northwind Model.Products&amp;#39; cannot be constructed in a LINQ to Entities query.&lt;br /&gt; &lt;br /&gt; i am getting this error in my class file :&lt;br /&gt; public IList&amp;lt;Products&amp;gt; fetchAllFeaturedProducts()&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; using (NorthwindEntities modelObject = new NorthwindEntities())&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt; &lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IQueryable&amp;lt;Products&amp;gt; currentFeaturedProducts = (from currentFeaturs in modelObject.Products&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select new Products ()&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //image_name = currentFeaturs.image_name,&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProductName = currentFeaturs.ProductName,&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UnitPrice = currentFeaturs.UnitPrice.Value&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt; &lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ).AsQueryable ();&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return currentFeaturedProducts.ToList();&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt; whichj i am calling in my controller class:&lt;br /&gt; &lt;br /&gt; &amp;nbsp;public ActionResult showFeaturedProducts(string sidx, string sord, int page, int rows)&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return
Content(JsonHelper.JsonForJqgrid(getFeaturedProducts(sidx, sord, page,
rows), rows, 0, page), &amp;quot;application/json&amp;quot;);&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt; &lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //code to fetch shopping cart with paging&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public DataTable getFeaturedProducts(string sidx, string sord, int page, int pageSize)&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt; &lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; productrepository objProductRep = new productrepository();&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DataTable tblFeaturedProducts = new DataTable();&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DataRow catRow;&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //tblFeaturedProducts.Columns.Add(&amp;quot;imagename&amp;quot;, Type.GetType(&amp;quot;System.String&amp;quot;));&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tblFeaturedProducts.Columns.Add(&amp;quot;productName&amp;quot;, Type.GetType(&amp;quot;System.String&amp;quot;));&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tblFeaturedProducts.Columns.Add(&amp;quot;productPrice&amp;quot;, Type.GetType(&amp;quot;System.String&amp;quot;));&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IList&amp;lt;Products&amp;gt; allFeaturedProducts = objProductRep.fetchAllFeaturedProducts();&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; foreach (Products&amp;nbsp; oneFeaturedProduct in allFeaturedProducts)&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; catRow = tblFeaturedProducts.NewRow();&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //catRow[&amp;quot;imagename&amp;quot;] = oneFeaturedProduct.image_name.ToString();&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; catRow[&amp;quot;productName&amp;quot;] = oneFeaturedProduct.ProductName.ToString();&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; catRow[&amp;quot;productPrice&amp;quot;] = Convert.ToDouble(oneFeaturedProduct.UnitPrice.ToString());&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tblFeaturedProducts.Rows.Add(catRow);&lt;br /&gt; &lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return tblFeaturedProducts;&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt; &lt;br /&gt; and this I am passing to the jquery grid&lt;br /&gt; &amp;nbsp;jQuery(document).ready(function() {&lt;br /&gt; &lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; jQuery(&amp;quot;#editgrid&amp;quot;).jqGrid({&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; url: &amp;#39;/Home/showFeaturedProducts/&amp;#39;,&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; datatype: &amp;#39;json&amp;#39;,&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mtype: &amp;#39;GET&amp;#39;,&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; colNames: [ &amp;#39;Name&amp;#39;, &amp;quot;UnitPrice&amp;quot;],&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; colModel: [&lt;br /&gt; //&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { name: &amp;#39;Id&amp;#39;, index: &amp;#39;Id&amp;#39;, width: 40, align: &amp;#39;left&amp;#39; },&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { name: &amp;#39;Name&amp;#39;, index: &amp;#39;Name&amp;#39;, width: 40, align: &amp;#39;left&amp;#39; },&lt;br /&gt; //&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { name: &amp;#39;QuantityPerUnit&amp;#39;, index: &amp;#39;QuantityPerUnit&amp;#39;, width: 200, align: &amp;#39;left&amp;#39; },&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { name: &amp;#39;UnitPrice&amp;#39;, index: &amp;#39;UnitPrice&amp;#39;, width: 200, align: &amp;#39;left&amp;#39;}],&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rowNum: 10,&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rowList: [5, 10, 20, 50],&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sortname: &amp;#39;Id&amp;#39;,&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sortorder: &amp;quot;desc&amp;quot;,&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; viewrecords: true,&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; caption: &amp;#39;My first grid&amp;#39;&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; }); &lt;br /&gt; &lt;br /&gt; &lt;br /&gt; Please help me what shall I do and I am using the Entity data model as the model of my database&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; Please help me&lt;br /&gt; &lt;br /&gt; Thanks in advance&lt;br /&gt; Ritzie&lt;/p&gt;</description></item><item><title>retrieving routeData values in global.asax</title><link>http://forums.asp.net/thread/3526497.aspx</link><pubDate>Sun, 22 Nov 2009 18:01:24 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3526497</guid><dc:creator>sadegh-shad</dc:creator><author>sadegh-shad</author><slash:comments>6</slash:comments><comments>http://forums.asp.net/thread/3526497.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=3526497</wfw:commentRss><description>&lt;p&gt;how can i retrieve language and country segment in global.asax for using this as culture and uiculture&lt;br /&gt;&lt;/p&gt;</description></item><item><title>How to force T4 generated files saves as UTF-8 with BOM when using Add View</title><link>http://forums.asp.net/thread/3524120.aspx</link><pubDate>Fri, 20 Nov 2009 14:51:05 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3524120</guid><dc:creator>Doggy8088</dc:creator><author>Doggy8088</author><slash:comments>3</slash:comments><comments>http://forums.asp.net/thread/3524120.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=3524120</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I was modified the *.tt files under &amp;quot;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\ItemTemplates\CSharp\Web\MVC\CodeTemplates\AddView&amp;quot; folder. Everytime I Add a new View, the output file encoding are just UTF-8 without BOM. Even I specify encoding as &amp;quot;ASCII&amp;quot; or &amp;quot;BIG5&amp;quot;, the output file encoding still UTF-8 without BOM.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is that a MVC T4 Host&amp;#39;s problem?&lt;/p&gt;</description></item><item><title>new to MVC</title><link>http://forums.asp.net/thread/3530417.aspx</link><pubDate>Tue, 24 Nov 2009 16:37:17 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3530417</guid><dc:creator>gissah</dc:creator><author>gissah</author><slash:comments>3</slash:comments><comments>http://forums.asp.net/thread/3530417.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=3530417</wfw:commentRss><description>&lt;p&gt;I&amp;nbsp;just changed my startup to create.aspx just to test it and change it right back to my index but I&amp;nbsp;keeping on getting error like. is this error coming from&amp;nbsp; my webconfig? because my masterpage and global.asx remain unchanged.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; 
&lt;h1&gt;Server Error in &amp;#39;/&amp;#39; Application. 
&lt;hr /&gt;
&lt;/h1&gt;
&lt;h2&gt;&lt;i&gt;The resource cannot be found.&lt;/i&gt; &lt;/h2&gt;&lt;/span&gt;&lt;font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;&lt;b&gt;Description: &lt;/b&gt;HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. &amp;nbsp;Please review the following URL and make sure that it is spelled correctly. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Requested URL: &lt;/b&gt;/Views/Home/Index.aspx&lt;br /&gt;&lt;/font&gt;&lt;/p&gt;</description></item><item><title>The ASP.NET MVC 2 Beta for VS2008 bug report</title><link>http://forums.asp.net/thread/3529032.aspx</link><pubDate>Tue, 24 Nov 2009 01:51:10 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3529032</guid><dc:creator>Doggy8088</dc:creator><author>Doggy8088</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3529032.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=3529032</wfw:commentRss><description>&lt;p&gt;When the strong-typed Model passed to the View, and the Model Type name contains non-ASCII characters.&amp;nbsp; e.g. Chinese characters.&amp;nbsp; The View will not able to rendered due to C# compilation error.&amp;nbsp; That&amp;#39;s because the C# compiler doesn&amp;#39;t recognize the file encoding with &amp;quot;UTF-8 without BOM&amp;quot; when View file content contains UTF-8 characters ( non-ASCII parts ).&amp;nbsp; The C# compiler just treat &amp;quot;UTF-8 without BOM&amp;quot; file as &amp;quot;ASCII&amp;quot; or &amp;quot;Default&amp;quot; encoding, so that the compilation failed.&lt;/p&gt;
&lt;p&gt;All these problems comes from the default MVC T4 Host write all output as UTF-8 without BOM.&amp;nbsp; I think it&amp;#39;s a bug for non-English people.&lt;/p&gt;
&lt;p&gt;There is a workaround of mine that is modify the View file they generated every times when run &amp;quot;Add View&amp;quot; command within the Controller in the VS2008.&lt;/p&gt;
&lt;p&gt;I was tried to modify the *.tt files under &amp;quot;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\ItemTemplates\CSharp\Web\MVC\CodeTemplates\AddView&amp;quot; folder.&amp;nbsp; Even I modified the &amp;lt;#@ output extension=&amp;quot;aspx&amp;quot; #&amp;gt; to &amp;lt;#@ output extension=&amp;quot;aspx&amp;quot; Encoding=&amp;quot;UTF-8&amp;quot; #&amp;gt;, the result is the same.&amp;nbsp; Even I specify encoding as &amp;quot;ASCII&amp;quot; or &amp;quot;BIG5&amp;quot;, the output file encoding still UTF-8 without BOM.&lt;/p&gt;
&lt;p&gt;This problem has plagued me for a while.&amp;nbsp; I think this problem will plague many others non-English developers too when Model Types contains non-ASCII characters.&lt;/p&gt;
&lt;p&gt;Hope someone could see this problem.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description></item><item><title>IValueProvider and ModelBindingContext in Beta 2</title><link>http://forums.asp.net/thread/3528808.aspx</link><pubDate>Mon, 23 Nov 2009 21:43:47 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3528808</guid><dc:creator>johannes.hiemer</dc:creator><author>johannes.hiemer</author><slash:comments>2</slash:comments><comments>http://forums.asp.net/thread/3528808.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=3528808</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I got this code snippet running for some time, but with Beta&amp;nbsp;the IValueProvider interface changed.&amp;nbsp;I got stuck, how to change the snippet to&amp;nbsp;get it going again:&lt;/p&gt;&lt;pre class="c-sharp" name="code"&gt;            for (int i = 0; i &amp;lt; bindingContext.ValueProvider.Where(r =&amp;gt; r.Key.Contains(&amp;quot;rights&amp;quot;)).Count() / 2; i++)
            {                                               
                bindingContext.ValueProvider.TryGetValue(key+i, out valueResultKey);
                valueResultKeys.Add(valueResultKey);
            }&lt;/pre&gt;&lt;pre class="c-sharp" name="code"&gt;&amp;nbsp;&lt;/pre&gt;
&lt;p&gt;Please give me a hint!&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Uploadify and IE</title><link>http://forums.asp.net/thread/3530658.aspx</link><pubDate>Tue, 24 Nov 2009 18:54:59 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3530658</guid><dc:creator>gfnl</dc:creator><author>gfnl</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3530658.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=3530658</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I imported&amp;nbsp;uploadify library to my asp.net mvc project, and everything is working just fine in&amp;nbsp;Firefox, absolutly no errors on firebug.&lt;/p&gt;
&lt;p&gt;The problem is that the same published code, gets a &amp;quot;Microsoft JScript runtime error: &amp;#39;photoUploader&amp;#39; is undefined&amp;quot; on IE7 and IE8.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Any ideas? Thanks in advance.&lt;/p&gt;</description></item><item><title>How to use Html.RenderAction with one controller?</title><link>http://forums.asp.net/thread/3530612.aspx</link><pubDate>Tue, 24 Nov 2009 18:21:18 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3530612</guid><dc:creator>rawrquestion</dc:creator><author>rawrquestion</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3530612.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=3530612</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m using RenderAction in MVC 2 in my view in the form of &amp;lt;% Html.RenderAction&amp;lt;MyController&amp;gt;(c =&amp;gt; c.Method(1)); %&amp;gt;.&lt;/p&gt;&lt;p&gt;However, it creates a new MyController everytime this is called. Is there any way to use one controller such as the parent controller of my view?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Howto open a profile page (with custom fields) from a click on a user name.</title><link>http://forums.asp.net/thread/3528774.aspx</link><pubDate>Mon, 23 Nov 2009 21:13:46 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3528774</guid><dc:creator>mattyh88</dc:creator><author>mattyh88</author><slash:comments>3</slash:comments><comments>http://forums.asp.net/thread/3528774.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=3528774</wfw:commentRss><description>&lt;p&gt;So, I&amp;#39;ll try to explain what i want to do &lt;img src="http://forums.asp.net/tiny_mce/jscripts/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif" alt="Tongue out" title="Tongue out" border="0" /&gt;&lt;/p&gt;&lt;p&gt;What I want, is a profile page to open up with all of the user&amp;#39;s profile fields (username, age, location, favorite movie &amp;amp; so on ..) when people click on a user&amp;#39;s name on my index page. &lt;/p&gt;&lt;p&gt;I hope it&amp;#39;s possible to do ^^&lt;/p&gt;&lt;p&gt;//Edit: I&amp;#39;ll update my post a bit to make it a bit more clear :)&lt;/p&gt;&lt;p&gt;Index page:&lt;br /&gt;I use this code to list my registered users: (works so far)&lt;br /&gt;&lt;pre name="code" class="c-sharp"&gt;&amp;lt;%foreach (MembershipUser user in Model){ %&amp;gt;
        &amp;lt;li&amp;gt;
              &amp;lt;%= Html.ActionLink(user.UserName, &amp;quot;UserDetails&amp;quot;, new { usr = user.UserName })%&amp;gt;
        &amp;lt;/li&amp;gt;
&amp;lt;% }%&amp;gt;&lt;/pre&gt;&lt;/p&gt;&lt;p&gt; UserDetails page:&lt;br /&gt;This is the page where the profile data will be, once they clicked a user on the index page :)&lt;/p&gt;&lt;p&gt;HomeController:&lt;pre name="code" class="c-sharp"&gt;public ActionResult UserDetails(string userName)
{
        return View(userName);
}&lt;/pre&gt;&lt;br /&gt; &lt;/p&gt;</description></item><item><title>TempData not working, ViewData works</title><link>http://forums.asp.net/thread/3529361.aspx</link><pubDate>Tue, 24 Nov 2009 06:14:03 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3529361</guid><dc:creator>nmarun</dc:creator><author>nmarun</author><slash:comments>7</slash:comments><comments>http://forums.asp.net/thread/3529361.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=3529361</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;Here&amp;#39;s my view:&lt;/p&gt;&lt;p&gt;&amp;lt;%= ViewData[&amp;quot;MetaData&amp;quot;]%&amp;gt;&lt;/p&gt;&lt;p&gt;in my controller&amp;#39;s constructor:&lt;/p&gt;&lt;p&gt;ViewData[&amp;quot;MetaData&amp;quot;] = &amp;quot;meta data&amp;quot;;&lt;/p&gt;&lt;p&gt;Now, when I call this page as a bot (a simulated one) using the snippet below:&lt;/p&gt;&lt;p&gt;protected void Page_Load(object sender, EventArgs e)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WebClient wc = new WebClient();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; wc.Headers.Add(&amp;quot;user-agent&amp;quot;, &amp;quot;Googlebot/2.1 (+http://www.google.com/bot.html)&amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; string s = wc.DownloadString(&amp;quot;http://localhost:1501&amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.txtBox.Text = s; // show the crawled HTML&lt;br /&gt;}&lt;/p&gt;&lt;p&gt;The MetaData value is shown. In order to make it more efficient, I replaced ViewData with TempData. Once I did that, I do not see the MetaData value in the txtbox.&lt;/p&gt;&lt;p&gt;Why would TempData not work in this case?&lt;/p&gt;&lt;p&gt;Arun&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>MVC Storefront / Kona / ???</title><link>http://forums.asp.net/thread/3530253.aspx</link><pubDate>Tue, 24 Nov 2009 15:08:42 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3530253</guid><dc:creator>retroviz</dc:creator><author>retroviz</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3530253.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=3530253</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I had been following the MVC Storefront video series with much enthusiasm. It seemed to end rather prematurely&amp;nbsp;but then I see was released as Kona with some posts regarding this on Rob Conery&amp;#39;s blog.&lt;/p&gt;
&lt;p&gt;But&amp;nbsp;where&amp;nbsp;is project now.&amp;nbsp;There&amp;nbsp;were&amp;nbsp;3 Kona screencasts then I read that&amp;nbsp;Rob&amp;#39;s left MS and it&amp;#39;s been taken over by someone else?&lt;/p&gt;
&lt;p&gt;This project has a lot of value and I would love to see if brought back to life (perhaps it is already and&amp;nbsp;hiding&amp;nbsp;under a different name?)&lt;/p&gt;
&lt;p&gt;Any info appreciated.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Ben&amp;nbsp;&lt;/p&gt;</description></item><item><title>Migration from MVC 2 Preview 2 with multi-project areas to MVC 2 Beta</title><link>http://forums.asp.net/thread/3520813.aspx</link><pubDate>Thu, 19 Nov 2009 03:25:24 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3520813</guid><dc:creator>Yitzhak</dc:creator><author>Yitzhak</author><slash:comments>4</slash:comments><comments>http://forums.asp.net/thread/3520813.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=3520813</wfw:commentRss><description>&lt;p&gt;This is a re-post of my question on the Haacked blog:&lt;/p&gt;&lt;p&gt;http://haacked.com/archive/2009/11/17/asp.net-mvc-2-beta-released.aspx#feedback&lt;/p&gt;&lt;p&gt;We currently have a VS2008 solution with multi-project areas. It was developed 
using the MVC 2 Preview 2. We are planning to migrate that solution to the 
recently released MVC 2 Beta.&lt;br /&gt;&lt;br /&gt;ASP.NET MVC 2 Beta Release Notes document 
states the following:&lt;br /&gt;• The build task for multi-project areas has been 
removed and placed in the ASP.NET MVC Futures project.&lt;br /&gt;&lt;br /&gt;It sounds like 
that the support for multi-project areas was dropped in favor of single project 
with multiple areas organized as sub-folders on the file system.&lt;br /&gt;&lt;br /&gt;The 
question is what is the recommended migration path to the MVC 2 Beta in our 
scenario?&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Yitzhak&lt;/p&gt;</description></item><item><title>Show Images  in hybrid ASP MVC master page</title><link>http://forums.asp.net/thread/3530282.aspx</link><pubDate>Tue, 24 Nov 2009 15:23:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3530282</guid><dc:creator>YogevCohen1</dc:creator><author>YogevCohen1</author><slash:comments>2</slash:comments><comments>http://forums.asp.net/thread/3530282.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=3530282</wfw:commentRss><description>&lt;p&gt;Hi I want to know how to show the images contained in a img html tag inside my master page&lt;/p&gt;
&lt;p&gt;the default contoller path woks just fine :&lt;/p&gt;
&lt;p&gt;&lt;a href="http://address:port/Site/Controller"&gt;Http://address:port/Site/Controller&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;images are shown but in this case they are not&lt;/p&gt;
&lt;p&gt;&lt;a href="http://address:port/Site/Controller/Index/1"&gt;Http://address:port/Site/Controller/Index/1&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;the url of the image looks like so:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://address:port/Site/Controller/Index/Images/Banner.gif"&gt;http://address:port/Site/Controller/Index/Images/Banner.gif&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;why is this happanning how can I fix this?&lt;/p&gt;</description></item><item><title>HELP!! Could not load file or assembly 'System.Web.Mvc, Version=1.0.0.0 ...</title><link>http://forums.asp.net/thread/3528420.aspx</link><pubDate>Mon, 23 Nov 2009 17:46:30 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3528420</guid><dc:creator>N!cky</dc:creator><author>N!cky</author><slash:comments>11</slash:comments><comments>http://forums.asp.net/thread/3528420.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=3528420</wfw:commentRss><description>&lt;p&gt;For 4 days I have been struggling with this error. http://chansatembo.minxxy.com&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I have tried everything I can think of. &lt;/p&gt;&lt;ol&gt;&lt;li&gt;Removed all references and re-added them&lt;/li&gt;&lt;li&gt;Copied DLLs local to my bin directory&lt;/li&gt;&lt;li&gt;Checked the Public Token keys repeatedly&lt;/li&gt;&lt;li&gt;Cleaned Solution, built solution, rebuilt solution, &lt;br /&gt;&lt;/li&gt;&lt;li&gt;Build, rebuilt, cleaned and published project&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;Nothing seems to work. Help!! &lt;/p&gt;&lt;p&gt;The application runs fine on Localhost but does not run on the hosting site. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Note: Site is currently hostted on GoDaddy.com and I&amp;#39;m not sure if their servers are the problem. &lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;

&lt;br /&gt;
&lt;/p&gt;&lt;p style="font-size:2.1em;color:red;"&gt;Update. I found a hidden stack trace&lt;/p&gt;&lt;p style="font-size:2.1em;color:red;"&gt;&lt;pre name="code" class="c-sharp"&gt;[BadImageFormatException]: Could not load file or assembly &amp;#39;System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&amp;#39; or one of its dependencies. The module was expected to contain an assembly manifest.
   at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark&amp;amp; stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
   at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark&amp;amp; stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
   at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark&amp;amp; stackMark, Boolean forIntrospection)
   at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark&amp;amp; stackMark, Boolean forIntrospection)
   at System.Reflection.Assembly.Load(String assemblyString)
   at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
[ConfigurationErrorsException]: Could not load file or assembly &amp;#39;System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&amp;#39; or one of its dependencies. The module was expected to contain an assembly manifest. (D:\Hosting\4506120\html\chansatembo\web.config line 41)
   at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
   at System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai)
   at System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig)
   at System.Web.Compilation.WebDirectoryBatchCompiler..ctor(VirtualDirectory vdir)
   at System.Web.Compilation.BuildManager.BatchCompileWebDirectoryInternal(VirtualDirectory vdir, Boolean ignoreErrors)
   at System.Web.Compilation.BuildManager.BatchCompileWebDirectory(VirtualDirectory vdir, VirtualPath virtualDir, Boolean ignoreErrors)
   at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
   at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
   at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
   at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
   at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
   at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
   at System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path)
   at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp;amp; completedSynchronously)
&lt;/pre&gt;&lt;br /&gt; &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;
&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Here is my full Web.config&lt;br /&gt;&lt;/p&gt;&lt;p&gt;________________________________________________&lt;/p&gt;&lt;pre name="code" class="xhtml"&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot;?&amp;gt;
&amp;lt;!-- 
    Note: As an alternative to hand editing this file you can use the 
    web admin tool to configure settings for your application. Use
    the Website-&amp;gt;Asp.Net Configuration option in Visual Studio.
    A full list of settings and comments can be found in 
    machine.config.comments usually located in 
    \Windows\Microsoft.Net\Framework\v2.x\Config 
--&amp;gt;
&amp;lt;configuration&amp;gt;
	&amp;lt;configSections&amp;gt;
		&amp;lt;sectionGroup name=&amp;quot;system.web.extensions&amp;quot; type=&amp;quot;System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&amp;quot;&amp;gt;
			&amp;lt;sectionGroup name=&amp;quot;scripting&amp;quot; type=&amp;quot;System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&amp;quot;&amp;gt;
				&amp;lt;section name=&amp;quot;scriptResourceHandler&amp;quot; type=&amp;quot;System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&amp;quot; requirePermission=&amp;quot;false&amp;quot; allowDefinition=&amp;quot;MachineToApplication&amp;quot;/&amp;gt;
				&amp;lt;sectionGroup name=&amp;quot;webServices&amp;quot; type=&amp;quot;System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&amp;quot;&amp;gt;
					&amp;lt;section name=&amp;quot;jsonSerialization&amp;quot; type=&amp;quot;System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&amp;quot; requirePermission=&amp;quot;false&amp;quot; allowDefinition=&amp;quot;Everywhere&amp;quot;/&amp;gt;
					&amp;lt;section name=&amp;quot;profileService&amp;quot; type=&amp;quot;System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&amp;quot; requirePermission=&amp;quot;false&amp;quot; allowDefinition=&amp;quot;MachineToApplication&amp;quot;/&amp;gt;
					&amp;lt;section name=&amp;quot;authenticationService&amp;quot; type=&amp;quot;System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&amp;quot; requirePermission=&amp;quot;false&amp;quot; allowDefinition=&amp;quot;MachineToApplication&amp;quot;/&amp;gt;
					&amp;lt;section name=&amp;quot;roleService&amp;quot; type=&amp;quot;System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&amp;quot; requirePermission=&amp;quot;false&amp;quot; allowDefinition=&amp;quot;MachineToApplication&amp;quot;/&amp;gt;
				&amp;lt;/sectionGroup&amp;gt;
			&amp;lt;/sectionGroup&amp;gt;
		&amp;lt;/sectionGroup&amp;gt;
	&amp;lt;/configSections&amp;gt;
	&amp;lt;appSettings/&amp;gt;
	&amp;lt;connectionStrings&amp;gt;
		
	&amp;lt;/connectionStrings&amp;gt;
	&amp;lt;system.web&amp;gt;
		&amp;lt;!-- 
            Set compilation debug=&amp;quot;true&amp;quot; to insert debugging 
            symbols into the compiled page. Because this 
            affects performance, set this value to true only 
            during development.
    --&amp;gt;
		&amp;lt;compilation debug=&amp;quot;true&amp;quot;&amp;gt;
			&amp;lt;assemblies&amp;gt;
				&amp;lt;add assembly=&amp;quot;System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089&amp;quot; /&amp;gt;
				&amp;lt;add assembly=&amp;quot;System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&amp;quot; /&amp;gt;
				&amp;lt;add assembly=&amp;quot;System.Web.Abstractions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&amp;quot; /&amp;gt;
				&amp;lt;add assembly=&amp;quot;System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&amp;quot; /&amp;gt;
        &amp;lt;add assembly=&amp;quot;System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089&amp;quot; /&amp;gt;
				&amp;lt;add assembly=&amp;quot;System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089&amp;quot; /&amp;gt;
				&amp;lt;add assembly=&amp;quot;System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089&amp;quot; /&amp;gt;
        &amp;lt;add assembly=&amp;quot;System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&amp;quot; /&amp;gt;
			&amp;lt;/assemblies&amp;gt;
		&amp;lt;/compilation&amp;gt;
		&amp;lt;!--
            The &amp;lt;authentication&amp;gt; section enables configuration 
            of the security authentication mode used by 
            ASP.NET to identify an incoming user. 
    --&amp;gt;
		&amp;lt;authentication mode=&amp;quot;Forms&amp;quot;&amp;gt;
			&amp;lt;forms loginUrl=&amp;quot;~/Account/LogOn&amp;quot; timeout=&amp;quot;2880&amp;quot;/&amp;gt;
		&amp;lt;/authentication&amp;gt;
		&amp;lt;membership&amp;gt;
			&amp;lt;providers&amp;gt;
				&amp;lt;clear/&amp;gt;
				&amp;lt;add name=&amp;quot;AspNetSqlMembershipProvider&amp;quot; type=&amp;quot;System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&amp;quot; connectionStringName=&amp;quot;ApplicationServices&amp;quot; enablePasswordRetrieval=&amp;quot;false&amp;quot; enablePasswordReset=&amp;quot;true&amp;quot; requiresQuestionAndAnswer=&amp;quot;false&amp;quot; requiresUniqueEmail=&amp;quot;false&amp;quot; passwordFormat=&amp;quot;Hashed&amp;quot; maxInvalidPasswordAttempts=&amp;quot;5&amp;quot; minRequiredPasswordLength=&amp;quot;6&amp;quot; minRequiredNonalphanumericCharacters=&amp;quot;0&amp;quot; passwordAttemptWindow=&amp;quot;10&amp;quot; passwordStrengthRegularExpression=&amp;quot;&amp;quot; applicationName=&amp;quot;/&amp;quot;/&amp;gt;
			&amp;lt;/providers&amp;gt;
		&amp;lt;/membership&amp;gt;
		&amp;lt;profile&amp;gt;
			&amp;lt;providers&amp;gt;
				&amp;lt;clear/&amp;gt;
				&amp;lt;add name=&amp;quot;AspNetSqlProfileProvider&amp;quot; type=&amp;quot;System.Web.Profile.SqlProfileProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&amp;quot; connectionStringName=&amp;quot;ApplicationServices&amp;quot; applicationName=&amp;quot;/&amp;quot;/&amp;gt;
			&amp;lt;/providers&amp;gt;
		&amp;lt;/profile&amp;gt;
		&amp;lt;roleManager enabled=&amp;quot;false&amp;quot;&amp;gt;
			&amp;lt;providers&amp;gt;
				&amp;lt;clear/&amp;gt;
				&amp;lt;add connectionStringName=&amp;quot;ApplicationServices&amp;quot; applicationName=&amp;quot;/&amp;quot; name=&amp;quot;AspNetSqlRoleProvider&amp;quot; type=&amp;quot;System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&amp;quot;/&amp;gt;
				&amp;lt;add applicationName=&amp;quot;/&amp;quot; name=&amp;quot;AspNetWindowsTokenRoleProvider&amp;quot; type=&amp;quot;System.Web.Security.WindowsTokenRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&amp;quot;/&amp;gt;
			&amp;lt;/providers&amp;gt;
		&amp;lt;/roleManager&amp;gt;
		&amp;lt;!--
            The &amp;lt;customErrors&amp;gt; section enables configuration 
            of what to do if/when an unhandled error occurs 
            during the execution of a request. Specifically, 
            it enables developers to configure html error pages 
            to be displayed in place of a error stack trace.

        &amp;lt;customErrors mode=&amp;quot;RemoteOnly&amp;quot; defaultRedirect=&amp;quot;GenericErrorPage.htm&amp;quot;&amp;gt;
            &amp;lt;error statusCode=&amp;quot;403&amp;quot; redirect=&amp;quot;NoAccess.htm&amp;quot; /&amp;gt;
            &amp;lt;error statusCode=&amp;quot;404&amp;quot; redirect=&amp;quot;FileNotFound.htm&amp;quot; /&amp;gt;
        &amp;lt;/customErrors&amp;gt;
    --&amp;gt;
		&amp;lt;pages&amp;gt;
			&amp;lt;controls&amp;gt;
				&amp;lt;add tagPrefix=&amp;quot;asp&amp;quot; namespace=&amp;quot;System.Web.UI&amp;quot; assembly=&amp;quot;System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&amp;quot;/&amp;gt;
				&amp;lt;add tagPrefix=&amp;quot;asp&amp;quot; namespace=&amp;quot;System.Web.UI.WebControls&amp;quot; assembly=&amp;quot;System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&amp;quot;/&amp;gt;
			&amp;lt;/controls&amp;gt;
			&amp;lt;namespaces&amp;gt;
				&amp;lt;add namespace=&amp;quot;System.Web.Mvc&amp;quot;/&amp;gt;
				&amp;lt;add namespace=&amp;quot;System.Web.Mvc.Ajax&amp;quot;/&amp;gt;
				&amp;lt;add namespace=&amp;quot;System.Web.Mvc.Html&amp;quot;/&amp;gt;
				&amp;lt;add namespace=&amp;quot;System.Web.Routing&amp;quot;/&amp;gt;
				&amp;lt;add namespace=&amp;quot;System.Linq&amp;quot;/&amp;gt;
				&amp;lt;add namespace=&amp;quot;System.Collections.Generic&amp;quot;/&amp;gt;
			&amp;lt;/namespaces&amp;gt;
		&amp;lt;/pages&amp;gt;
		&amp;lt;httpHandlers&amp;gt;
			&amp;lt;remove verb=&amp;quot;*&amp;quot; path=&amp;quot;*.asmx&amp;quot;/&amp;gt;
			&amp;lt;add verb=&amp;quot;*&amp;quot; path=&amp;quot;*.asmx&amp;quot; validate=&amp;quot;false&amp;quot; type=&amp;quot;System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&amp;quot;/&amp;gt;
			&amp;lt;add verb=&amp;quot;*&amp;quot; path=&amp;quot;*_AppService.axd&amp;quot; validate=&amp;quot;false&amp;quot; type=&amp;quot;System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&amp;quot;/&amp;gt;
			&amp;lt;add verb=&amp;quot;GET,HEAD&amp;quot; path=&amp;quot;ScriptResource.axd&amp;quot; type=&amp;quot;System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&amp;quot; validate=&amp;quot;false&amp;quot;/&amp;gt;
			&amp;lt;add verb=&amp;quot;*&amp;quot; path=&amp;quot;*.mvc&amp;quot; validate=&amp;quot;false&amp;quot; type=&amp;quot;System.Web.Mvc.MvcHttpHandler, System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&amp;quot;/&amp;gt;
		&amp;lt;/httpHandlers&amp;gt;
		&amp;lt;httpModules&amp;gt;
			&amp;lt;add name=&amp;quot;ScriptModule&amp;quot; type=&amp;quot;System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&amp;quot;/&amp;gt;
			&amp;lt;add name=&amp;quot;UrlRoutingModule&amp;quot; type=&amp;quot;System.Web.Routing.UrlRoutingModule, System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&amp;quot;/&amp;gt;
		&amp;lt;/httpModules&amp;gt;
	&amp;lt;/system.web&amp;gt;
	&amp;lt;system.codedom&amp;gt;
		&amp;lt;compilers&amp;gt;
			&amp;lt;compiler language=&amp;quot;c#;cs;csharp&amp;quot; extension=&amp;quot;.cs&amp;quot; warningLevel=&amp;quot;4&amp;quot; type=&amp;quot;Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&amp;quot;&amp;gt;
				&amp;lt;providerOption name=&amp;quot;CompilerVersion&amp;quot; value=&amp;quot;v3.5&amp;quot;/&amp;gt;
				&amp;lt;providerOption name=&amp;quot;WarnAsError&amp;quot; value=&amp;quot;false&amp;quot;/&amp;gt;
			&amp;lt;/compiler&amp;gt;
			&amp;lt;compiler language=&amp;quot;vb;vbs;visualbasic;vbscript&amp;quot; extension=&amp;quot;.vb&amp;quot; warningLevel=&amp;quot;4&amp;quot; type=&amp;quot;Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&amp;quot;&amp;gt;
				&amp;lt;providerOption name=&amp;quot;CompilerVersion&amp;quot; value=&amp;quot;v3.5&amp;quot;/&amp;gt;
				&amp;lt;providerOption name=&amp;quot;OptionInfer&amp;quot; value=&amp;quot;true&amp;quot;/&amp;gt;
				&amp;lt;providerOption name=&amp;quot;WarnAsError&amp;quot; value=&amp;quot;false&amp;quot;/&amp;gt;
			&amp;lt;/compiler&amp;gt;
		&amp;lt;/compilers&amp;gt;
	&amp;lt;/system.codedom&amp;gt;
	&amp;lt;system.web.extensions/&amp;gt;
	&amp;lt;!-- 
        The system.webServer section is required for running ASP.NET AJAX under Internet
        Information Services 7.0.  It is not necessary for previous version of IIS.
  --&amp;gt;
	&amp;lt;system.webServer&amp;gt;
		&amp;lt;validation validateIntegratedModeConfiguration=&amp;quot;false&amp;quot;/&amp;gt;
		&amp;lt;modules runAllManagedModulesForAllRequests=&amp;quot;true&amp;quot;&amp;gt;
			&amp;lt;remove name=&amp;quot;ScriptModule&amp;quot;/&amp;gt;
			&amp;lt;remove name=&amp;quot;UrlRoutingModule&amp;quot;/&amp;gt;
			&amp;lt;add name=&amp;quot;ScriptModule&amp;quot; preCondition=&amp;quot;managedHandler&amp;quot; type=&amp;quot;System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&amp;quot;/&amp;gt;
			&amp;lt;add name=&amp;quot;UrlRoutingModule&amp;quot; type=&amp;quot;System.Web.Routing.UrlRoutingModule, System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&amp;quot;/&amp;gt;
		&amp;lt;/modules&amp;gt;
		&amp;lt;handlers&amp;gt;
			&amp;lt;remove name=&amp;quot;WebServiceHandlerFactory-Integrated&amp;quot;/&amp;gt;
			&amp;lt;remove name=&amp;quot;ScriptHandlerFactory&amp;quot;/&amp;gt;
			&amp;lt;remove name=&amp;quot;ScriptHandlerFactoryAppServices&amp;quot;/&amp;gt;
			&amp;lt;remove name=&amp;quot;ScriptResource&amp;quot;/&amp;gt;
			&amp;lt;remove name=&amp;quot;MvcHttpHandler&amp;quot;/&amp;gt;
			&amp;lt;remove name=&amp;quot;UrlRoutingHandler&amp;quot;/&amp;gt;
			&amp;lt;add name=&amp;quot;ScriptHandlerFactory&amp;quot; verb=&amp;quot;*&amp;quot; path=&amp;quot;*.asmx&amp;quot; preCondition=&amp;quot;integratedMode&amp;quot; type=&amp;quot;System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&amp;quot;/&amp;gt;
			&amp;lt;add name=&amp;quot;ScriptHandlerFactoryAppServices&amp;quot; verb=&amp;quot;*&amp;quot; path=&amp;quot;*_AppService.axd&amp;quot; preCondition=&amp;quot;integratedMode&amp;quot; type=&amp;quot;System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&amp;quot;/&amp;gt;
			&amp;lt;add name=&amp;quot;ScriptResource&amp;quot; preCondition=&amp;quot;integratedMode&amp;quot; verb=&amp;quot;GET,HEAD&amp;quot; path=&amp;quot;ScriptResource.axd&amp;quot; type=&amp;quot;System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&amp;quot;/&amp;gt;
			&amp;lt;add name=&amp;quot;MvcHttpHandler&amp;quot; preCondition=&amp;quot;integratedMode&amp;quot; verb=&amp;quot;*&amp;quot; path=&amp;quot;*.mvc&amp;quot; type=&amp;quot;System.Web.Mvc.MvcHttpHandler, System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&amp;quot;/&amp;gt;
			&amp;lt;add name=&amp;quot;UrlRoutingHandler&amp;quot; preCondition=&amp;quot;integratedMode&amp;quot; verb=&amp;quot;*&amp;quot; path=&amp;quot;UrlRouting.axd&amp;quot; type=&amp;quot;System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&amp;quot;/&amp;gt;
		&amp;lt;/handlers&amp;gt;
	&amp;lt;/system.webServer&amp;gt;
&amp;lt;/configuration&amp;gt;
&lt;/pre&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt; &lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Hybrid ASP MVC project master page images are not shown</title><link>http://forums.asp.net/thread/3530248.aspx</link><pubDate>Tue, 24 Nov 2009 15:07:05 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3530248</guid><dc:creator>YogevCohen1</dc:creator><author>YogevCohen1</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3530248.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=3530248</wfw:commentRss><description>&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;I migrating my empty asp.net to MVC - in the asp site project we have a master page taht contains &lt;strong&gt;Web Control &lt;/strong&gt;- the control has the company banner and logo in it.&lt;/p&gt;
&lt;p&gt;all images are inside the Images folder in the empty site folder.&lt;/p&gt;
&lt;p&gt;When the MVC framework&amp;nbsp;handles a URL for example: &lt;a href="http://address:port/Site/Template"&gt;http://address:port/Site/Template&lt;/a&gt;&amp;nbsp;- &amp;quot;Template is the controller name&amp;quot; then all images are seen as expected.&lt;/p&gt;
&lt;p&gt;but when I use this url: &lt;a href="http://address:port/Site/Template/Index/1"&gt;http://address:port/Site/Template/Index/1&lt;/a&gt; then the images are not seen. &lt;/p&gt;
&lt;p&gt;when I check the image prperties is seems like this: &lt;a href="http://address:port/Site/Template/Index/Images/logo.gif"&gt;http://address:port/Site/Template/Index/Images/logo.gif&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;for some reason the MVC framework adds to the image url a &amp;quot;Index&amp;quot; keyword.&lt;/p&gt;
&lt;p&gt;the prevent the image from showing.&lt;/p&gt;
&lt;p&gt;please note: I have a table that have a backgroud image in it. - it also not seems to be showing the backgroud image in this case as well.&lt;/p&gt;
&lt;p&gt;the master page file is located in the root directory ot the Web site&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;does any one have any ideads on how to make the images seen?&lt;/p&gt;</description></item><item><title>How to find the Error </title><link>http://forums.asp.net/thread/3527540.aspx</link><pubDate>Mon, 23 Nov 2009 09:51:07 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3527540</guid><dc:creator>assafg2</dc:creator><author>assafg2</author><slash:comments>5</slash:comments><comments>http://forums.asp.net/thread/3527540.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=3527540</wfw:commentRss><description>&lt;p&gt;Hi, I have built my first MVC site and While developing I have decide to publish it and keep working on it while it&amp;#39;s on line .&lt;/p&gt;
&lt;p&gt;&amp;nbsp;On the regular MVC register page after registering I&amp;#39;m getting&amp;nbsp; redirect to the default MVC &amp;nbsp;error page , I would like to find out what&amp;#39;s the error ( I assume something with the &amp;nbsp;SQL DB/server &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How can I get like in regular asp.net the Error type so I can correct it ?&lt;/p&gt;
&lt;p&gt;Thanks &lt;/p&gt;
&lt;p&gt;A.&lt;/p&gt;</description></item></channel></rss>