Search

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

Matching Posts

  • Re: I am in Routes Catch-22

    Well like they mentioned, by default if the file exists then it gets served up without going through routing. What I'm saying is if I remove default.aspx then a root request also tries to go through the default documents list, if one of them exists that file would be served up, but what if I want a root request to be routed? There's a routing option to disable the load from disk if it exists and go straight to routing, but my understanding was that was an all or nothing option.
    Posted to ASP.NET MVC (Forum) by RRidge on 4/20/2008
  • Re: I am in Routes Catch-22

    I'm somewhat baffled here... I've got a default.aspx which does a redirect to "~/home", I've got these routes: routes.MapRoute("Home-Root", "", new { controller = "Home", action = "Index" }); routes.MapRoute("Home-Index", "home", new { controller = "Home", action = "Index" }); The default.aspx and its redirect seem to be a ghetto hack for cassini, however, then I also get the ghetto redirect in IIS
    Posted to ASP.NET MVC (Forum) by RRidge on 4/18/2008
  • Re: Controls in CodeBehind

    I saw this earlier. In non MVC-projects you get a Designer.cs file that declares and instantiates your controls. It appears you need to declare and instantiate any controls you use in your view .aspx yourself in your codebehind. Say you're using a asp:listview id="foo" runat="server", in your codebehind you need to declare and instantiate it, private ListView foo = new ListView().
    Posted to ASP.NET MVC (Forum) by RRidge on 12/14/2007
  • 2008 feature requests

    I'd like to see a good (optional) deployment story for compressing/minifying and removal of comments from javascript, css, html/aspx assets, perhaps even javascript file combining. The WDP seems like the ideal place for such functionality. Manually performing these tasks is time consuming and error prone, doing it through something like an httpmodule is performance-prohibitive. I'm thinking something along the lines of AssetPackager for rails...
    Posted to Feature Requests (Forum) by RRidge on 12/14/2007
  • Ambiguous controllers

    I've been playing with nesting views and controllers in subdirectories for more fine grained partitioning, I've discovered through reflector I can do a RenderView("~/Views/SomeDirectory/SomeOtherDirectory/File.aspx") and it overrides your default search in Views and then in Views/Shared. I am pleased. However, I am having some difficulty with controllers. I see that you're expecting Foo followed by Controller (such as FooController), but your search is through the entire assembly
    Posted to ASP.NET MVC (Forum) by RRidge on 12/14/2007
  • A bug and a minor niggle.

    Firstly, is there an appropriate place to file bugs? Offhand, I didn't see anything on connect, nor have I seen mention of such a place in any of the release posts. Is this really the preferred place for such feedback? The first issue I came to today was that a null reference exception is thrown if you have session state disabled: [NullReferenceException: Object reference not set to an instance of an object .] System.Web.HttpSessionStateWrapper.System.Web.IHttpSessionState.get_Item(String name
    Posted to ASP.NET MVC (Forum) by RRidge on 12/11/2007
  • Re: Can anyone suggest a fix for this behavior?

    Yeah, redirects or empty physical directories are about all I've come up with, but this gets to be a management issue. I was hoping for some way to get the request to the Http Module so I could at least attempt to do a redirect there, oh well... Personally, I prefer canonical URLs without the filename, decreases web rot, and looks a little cleaner, but that's just me I guess. Now I've got web rot in reverse hehe.
    Posted to Community Starter Kit (Forum) by RRidge on 8/25/2003
  • Re: Can anyone suggest a fix for this behavior?

    No, I saw the custom redirects mod, but I knew it wouldn't solve my issue. As I and Redd mention here if you're only entering in a section and not a page you get a 404. My point in the first post is that a request with only a section and not a page doesn't even get to the CommunitiesModule, set a breakpoint on it and see for yourself. IIS just throws a 404 without ever having hit the Http Module. However, if I actually create an empty directory, with the same name as the section, then CommunitiesModule
    Posted to Community Starter Kit (Forum) by RRidge on 8/25/2003
  • Can anyone suggest a fix for this behavior?

    Say you have a site, www.foo.com that previously was not using the CSK, but now is. Imagine a user requesting, http://www.foo.com, the user ends up getting communityDefault.aspx via the HttpModule. What happens when the user has an old link such as http://www.foo.com/bar/ ? Under the CSK, bar is now a section, but IIS does not resolve /bar/ to /bar/communityDefault.aspx... In fact the request never even makes it to Global.asax or the HttpModule, IIS rejects it outright. I'm assuming what's happening
    Posted to Community Starter Kit (Forum) by RRidge on 8/25/2003
  • Re: Moving to the next level

    No. Only if there's an exception thrown will there be a performance penalty. Exception handling is just that, handling unexpected exceptions, so don't use it to perform conditional work and you'll be fine.
    Posted to Community Starter Kit (Forum) by RRidge on 8/23/2003
Page 1 of 2 (20 items) 1 2 Next >