Search

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

Matching Posts

  • Re: Basic routing question

    Maybe, this is where james was going with his comment, but you should also put ALL destructive actions such as delete behind a post. You don't want a web crawler following links and deleting data out of your system.
    Posted to ASP.NET MVC (Forum) by bradleylandis on 10/30/2009
  • Re: Basic routing question

    Additionally, you probably want to restrict that route to the controller and action that you are adding the featureCode parameter: routes.MapRoute( "DeleteRoute", // Route name "Signoff/Delete/{featureCode}", // URL with parameters new { featureCode= "" } // Parameter defaults ); And remember that the order in which you register the routes matters.
    Posted to ASP.NET MVC (Forum) by bradleylandis on 10/30/2009
  • Re: Basic routing question

    The default route only takes a parameter called "id". You need to add a route that takes the parameter called "featureCode": routes.MapRoute( "DeleteRoute", // Route name "{controller}/{action}/{featureCode}", // URL with parameters new { controller = "Home", action = "index", featureCode= "" } // Parameter defaults );
    Posted to ASP.NET MVC (Forum) by bradleylandis on 10/30/2009
  • Re: routes works locally but not on productionserver

    What version of IIS are you deploying to? There is some extra configuration required to run on IIS 6. http://haacked.com/archive/2008/11/26/asp.net-mvc-on-iis-6-walkthrough.aspx
    Posted to ASP.NET MVC (Forum) by bradleylandis on 10/16/2009
  • Re: How do I work with partial views?

    I'd recommend having your partial views be strongly typed to an interface. Then any view model that is going to use that partial view can implement the interface. If you need an example or more thorough explanation, let me know.
    Posted to ASP.NET MVC (Forum) by bradleylandis on 10/12/2009
  • Re: Custom ModelBinder and Release Candidate

    levib, Thanks for the information. I understand there are cases when the extra functionality is needed, but I'd like to see a simpler overload for when I don't need it. Also, why do I have to set the culture for every single input? I can't think of a situation where I would have 1 form with different cultures for different inputs. I certainly wouldn't think it the most common scenario.
    Posted to ASP.NET MVC (Forum) by bradleylandis on 2/1/2009
  • Re: Custom ModelBinder and Release Candidate

    bjn, I believe the overloaded AddModelError method that you suggested existed pre-beta (or at least in some of the previews). I never really understood why they changed it. I totally agree about the ValueProviderResult, it seems like more work and more confusing and I don't understand what benefits it provides.
    Posted to ASP.NET MVC (Forum) by bradleylandis on 2/1/2009
  • Re: Continuous Integration and Compiling MVC Views

    I was able to answer my own question once I looked at the project file. You just put the <MvcBuildViews> element in the corresponding PropertyGroup. The instructions were just overly specific and a bit vauge by saying "putting it in the topmost PropertyGroup".
    Posted to ASP.NET MVC (Forum) by bradleylandis on 1/30/2009
  • Continuous Integration and Compiling MVC Views

    In the release notes it discusses making changes to the project file to compile the MVC views. I have read that you can tie this to a specific configuration so that when the developers are doing debug builds it doesn't slow them down but when continuous integration does a release build, the views are compiled. So how do I tie this setting to a particular configuration?
    Posted to ASP.NET MVC (Forum) by bradleylandis on 1/30/2009
  • Re: Strongly typed partial views

    and you need to make the changes specified in the release to the web.config file in whatever folder your partial views are in. I had my partial views in a seperate folder from my views and this tripped me up for awhile.
    Posted to ASP.NET MVC (Forum) by bradleylandis on 1/29/2009
Page 1 of 10 (97 items) 1 2 3 4 5 Next > ... Last »