Search

You searched for the word(s): userid:840460

Matching Posts

  • Re: Migration from MVC 2 Preview 2 with multi-project areas to MVC 2 Beta

    Hi Phil, Thanks for the reply. Below is what I read between the lines in your answer. IMHO, it is safe to say that the ASP.NET MVC 2 release will stay based on .NET 3.5 SP1. Because of it: 1) Multi-project area support is not easy to implement on .NET 3.5 SP1 and that was the reason why it was moved out of the main trunk and moved into the Microsoft Futures assembly. Single project area is and will be supported out of the box. This is a preferable, organic way to go for now, for the ASP.NET MVC 2
    Posted to ASP.NET MVC (Forum) by Yitzhak on 11/23/2009
  • Migration from MVC 2 Preview 2 with multi-project areas to MVC 2 Beta

    This is a re-post of my question on the Haacked blog: http://haacked.com/archive/2009/11/17/asp.net-mvc-2-beta-released.aspx#feedback 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. ASP.NET MVC 2 Beta Release Notes document states the following: • The build task for multi-project areas has been removed and placed in the ASP.NET MVC Futures project. It sounds like
    Posted to ASP.NET MVC (Forum) by Yitzhak on 11/18/2009
  • mvc:Label and List<T> problem

    I tried to use mvc:Label in a loop to output a list of data. Unfortunately, it looks like that the mvc:Label doesn’t know how to handle List<T> data types. I tried the following options for the name attribute to no avail: name="Model.customers[i].Comment" name="customers[i].Comment" name="customers[<%=i%>].Comment" Here is .aspx page code: <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits
    Posted to ASP.NET MVC (Forum) by Yitzhak on 11/12/2009
  • Re: mvc:Label and List<T> problem

    Using Reflector for the Microsoft.Web.Mvc.dll, mvc:Label implementation, it reveals the following: string stringValue = string . Empty ; object rawValue = base. ViewData . Eval (this. Name ); stringValue = Convert . ToString (rawValue, CultureInfo . CurrentCulture ); writer. Write ( HttpUtility . HtmlEncode (stringValue)); That’s why I tried: name="customers[<%=i%>].Comment" hoping that the Eval() method will pick up correct value And it is still not working. Regards, Yitzhak
    Posted to ASP.NET MVC (Forum) by Yitzhak on 11/12/2009
  • Re: MVC 2 Preview 2, multi-project areas deployment in IIS 6 on Windows Server 2003

    We did use the article you mentioned to configure IIS6, originally for the MVC 1.0. Our environment uses IIS6 with the extension-less URLs using the “ Wildcard mapping ”. Everything worked fine until we switched to the MVC 2 Preview 2 with multi-project areas. The article is written in Nov/26/2008. That time MVC was in pre-release stage and didn’t support notion of areas. It is possible that the article is out of sync with the MVC 2 and its support for areas. One more question. The VS2008 MVC 2 template
    Posted to ASP.NET MVC (Forum) by Yitzhak on 10/22/2009
  • Re: MVC 2 Preview 2, multi-project areas deployment in IIS 6 on Windows Server 2003

    Eilon , I finally figured it out. I modified the Web.config file in the root by adding one single line for WebResource.axd. And that was it. <httpHandlers> <remove verb="*" path="*.asmx" /> <add path="WebResource.axd" verb="GET" validate="True" /> … </httpHandlers> It was clear that the issue was outside of deployment and IIS 6 configuration. IIS6 was configured with the extension-less URLs using the “ Wildcard mapping ”. It
    Posted to ASP.NET MVC (Forum) by Yitzhak on 10/22/2009
  • Re: Area Routing under MVC 2 Preview 2

    Anywhere where you refer to Area name you should use the same value: blogs For example, in the 'Routes.vb' Public Overrides ReadOnly Property AreaName() As String Get Return "blogs" End Get End Property Public Overrides Sub RegisterArea(ByVal context As System.Web.Mvc.AreaRegistrationContext) context.MapRoute("Accounts_Default", _ " blogs /{controller}/{action}/{id}", _ New With {.controller = "Blog", .action = "Index", .id = ""
    Posted to ASP.NET MVC (Forum) by Yitzhak on 10/21/2009
  • Re: MVC 2 Preview 2, multi-project areas deployment in IIS 6 on Windows Server 2003

    Here is the latest development on the subject. We deployed our multi-project areas solution to IIS 7 on Vista desktop machine. Everything is working!!! So it confirms that the problem is related to the IIS 6 routing. IIS 6 doesn’t know what to do with routes containing areas: Area/Controller/ActionMethod Though we still don’t know what to do with IIS 6 on Windows Server 2003. Regards, Yitzhak
    Posted to ASP.NET MVC (Forum) by Yitzhak on 10/21/2009
  • Re: ASP.NET MVC Client Validation Flaws

    We bumped into a one more deficiency in the MVC 2 Preview 2 - client-side validation. To leverage MVC model binding we are using the following format naming text fields on the form in the following format: ItemizedList[i].WorkItemQuantity Basically, it is defined as a list. The metadata is defined as the following (abridged version): public class WorkItemItemizedListMetadata { // Allow only values between 1 and 1000000 [Range(1, 1000000, ErrorMessage = "Work Item Quantity should be between 1
    Posted to ASP.NET MVC (Forum) by Yitzhak on 10/21/2009
  • MVC 2 Preview 2, multi-project areas deployment in IIS 6 on Windows Server 2003

    We switched to use multi-project areas. It is working on dev. machines in Visual Studio 2008 SP1. But not working in IIS 6 on Windows Server 2003 after the deployment. The error states that "The page cannot be found". The deployment is done through the Build->Publish <project name> option in the VS2008 menu. A wildcard is mapped to configure the IIS. IIS server was functioning properly in the past when it was MVC 2 preview 1 project without areas. It seems that the IIS should be
    Posted to ASP.NET MVC (Forum) by Yitzhak on 10/20/2009
Page 1 of 2 (20 items) 1 2 Next >