Search

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

Matching Posts

  • Re: "Special" url encoding

    ahh brilliant shadowchaser. not sure why I missed that before, we are even using a custom route already to make sure they are all rendered as lowercase, duhhhh.
    Posted to ASP.NET MVC (Forum) by f00sion on 1/8/2009
  • Re: "Special" url encoding

    yeah the new column with a url friendly name is a good plan... unfortunately we don't have access to change anything in the database that we are reading from... I may just end up making extension methods for each type of link and encoding the parameters before calling the regular actionlink extensions.
    Posted to ASP.NET MVC (Forum) by f00sion on 1/7/2009
  • "Special" url encoding

    We have a special rule that we want to use where any params in a link will have certain characters replaced, ie space replaced with -. Obviously it would be easy to create a method to encode all the values that you can call each time you create a link but I would rather not have worry about it and hopefully still use the expression-based link extensions. Ideally I could use existing helpers and all the changes would be transparent. Is there a good place to hook in for this? ex: Html.ActionLink<
    Posted to ASP.NET MVC (Forum) by f00sion on 1/6/2009
  • Re: Ignore route for default document?

    I gave an example above but here is the exact code. routes.MapRoute( "Default" , "mycontroller/myaction" , new { controller = "mycontroller" , action = "myaction" } ); The registered routes are irrelevant because there is no catchall and they don't look anything like the default request. In fact, you can have zero routes in the table and the default document still won't be served.
    Posted to ASP.NET MVC (Forum) by f00sion on 12/18/2008
  • Re: Ignore route for default document?

    I gave it a shot like this: routes.IgnoreRoute("index.html"); But didn't expect it to work since index.html wouldn't match any of my route patterns anyway so no reason to explicitly exclude it.
    Posted to ASP.NET MVC (Forum) by f00sion on 12/18/2008
  • Re: Ignore route for default document?

    I have no issues running the project on iis6, everything works great, extensionless, etc, etc. the mvc configuration is all taken care of. The issue is how to get iis to still serve the default document without the mvc routing interfering. Let me provide a simple example, pretend you only have 1 route in your table: controller1/action1 So only visitors going to mydomain.com/controller1/action1 should run through mvc. You have lots of other static html files/images/etc. those can still all be accessed
    Posted to ASP.NET MVC (Forum) by f00sion on 12/18/2008
  • Re: Ignore route for default document?

    Using iis6, just the standard 404 page showing. Html file is there, I can access it directly at domain.com/index.html.
    Posted to ASP.NET MVC (Forum) by f00sion on 12/17/2008
  • Re: Ignore route for default document?

    Yes, IIS has index.html at the top of its default document configuration.
    Posted to ASP.NET MVC (Forum) by f00sion on 12/17/2008
  • Re: Ignore route for default document?

    yeah, the default document is configured correctly. works great until we deploy the mvc project to iis, then i suspect the routing engine gets in the way of things.
    Posted to ASP.NET MVC (Forum) by f00sion on 12/17/2008
  • Ignore route for default document?

    Is there any way to serve up the default document in the root folder without going through the mvc routing? We are currently converting portions of our site at a time over to an mvc project but our homepage is a static html file that is updated periodically by an external app. I removed the default /controller/action/id route from global.asax and added index.html to the ignore collection. I can go to mydomain.com/index.html and it works as expected but just mydomain.com/ returns a 404. I guess in
    Posted to ASP.NET MVC (Forum) by f00sion on 12/17/2008
Page 1 of 8 (76 items) 1 2 3 4 5 Next > ... Last ยป