Browse by Tags

Related Posts

  • Routes - Redirecting from "Real" URLs

    I'd like to setup one of my Controllers to intercept "real" URLs that come by--in this example, a photo gallery that I'm using as a prototype that has an existing URL format of (/ViewGallery.aspx?galleryId=[id]). Unfortunately, I haven't been able to get query string parameters...
    Posted to ASP.NET MVC (Forum) by tiredstudent on 12-12-2007, 12:00 AM
    Filed under: MVC, Routes
  • Re: Validation scenario

    You probably have a rule that is catching the route somewhere else. The following test shows that no RouteData is found given your scenario. [Test] public virtual void GetRouteData_WithStringForQuery_ReturnsNullRouteData() { MockRepository mocks = new MockRepository(); RouteCollection routes = new RouteCollection...
    Posted to ASP.NET MVC (Forum) by abombss on 12-15-2007, 12:00 AM
    Filed under: ASP.NET MVC, MVC, Routes
  • Re: Validation scenario

    Absolutely. You need to be careful with using rules without validation because more generic rules can unintentionally capture a route that you do not intend to. Anytime you have a [parameter] without validation the RouteCollection will match anything. Its almost like a ".*" regex. Order that...
    Posted to ASP.NET MVC (Forum) by abombss on 12-16-2007, 12:00 AM
    Filed under: ASP.NET MVC, MVC, Routes
  • Re: Route / RouteData /RouteCollection Suggestion (or issue)

    If that was useful... I'll take the points. Second, what are you doing that is so complicated? I have found the default stuff to be very customizable, it feels a little hackish but the routing is very powerful for version 1 ctp. Lastly, why write routes in xml... I would rather slit my throat. Why...
    Posted to ASP.NET MVC (Forum) by abombss on 12-18-2007, 12:00 AM
    Filed under: MVC, Routes
  • Re: Route / RouteData /RouteCollection Suggestion (or issue)

    [quote user="PhilipRieck"]It doesn't need to be XML - I may be generating routes based on some DSL - but there are lots of reasons; Ability to alter routes without access to code. Ability for a plugin writer to upload a plugin and associate it entirely through some configuration (perhaps...
    Posted to ASP.NET MVC (Forum) by abombss on 12-18-2007, 12:00 AM
    Filed under: MVC, Routes
  • Re: Group controllers and view in folders under the /Controllers and /Views folders

    [quote user="SteveSanderson"]The first entry there will match both URLs you mentioned. The [Part] bit will just be ignored, since the framework can find your controller anyway. [/quote] It will also match /Goo/Controller/Action which is probably not what you want, and creating urls using the...
    Posted to ASP.NET MVC (Forum) by abombss on 12-19-2007, 12:00 AM
    Filed under: MVC, Routes
  • Extra defaults bug

    Hi, Steps to reproduce: Create a new MVC App Create an MVC Controller called Products. Add 2 controller actions, one called List which takes no parameters, one called View which takes an int Id Create 2 views for the 2 actions. Open Views/Shared/Site.Master Add 2 links next to Home and About <%= Html...
    Posted to ASP.NET MVC (Forum) by tgmdbm on 12-21-2007, 12:00 AM
    Filed under: MVC, Routes, bug
  • Routing Validation Based On HTTP Headers

    In Scott Guthrie's post on Routing , he mentions that you can use the Validation property of a Route to specify an HTTP Header. "The ASP.NET MVC Framework allows you to use regular expressions to validate each parameter argument in the URL, as well as allows you to evaluate HTTP headers (to...
    Posted to ASP.NET MVC (Forum) by ghotiman on 01-07-2008, 12:00 AM
    Filed under: MVC, Routes, routing, httpheader
  • Re: Simple REST question with my MVC app

    I am waiting on the next set of bits to finish the simply restful routing stuff for ms mvc. I am currently working a new better implementation for monorail which I will port over to contrib when its ready. The biggest up side will be rule definition sets get put into a container and the container will...
    Posted to ASP.NET MVC (Forum) by abombss on 02-22-2008, 12:00 AM
    Filed under: MVC, Routes, RESTFul
Page 1 of 1 (9 items)