I've just installed Visual Studio 2010 and have created a new MVC2 project so that I can learn about the changes and updates and have discovered an issue with areas that I'm not sure what to make of.
I created a new EMPTY MVC2 project
I right clicked the project and, from the context menu, added a new area called "Test"
In the new test...
Hi Friends,
I have one query in which I really stuck at that. I have port database with waypoints and also routing points which I need to use in distance calculation between two ports. I have done lots of R&D to find formula which gives me distance between two points. I also need shortest route which is possible.
I have reviewed online...
I can't seem to grasp the Rails routing just yet. I want to be able to link the site to, for example, ...com/store/xbox360/Mass Effect 2 (which is /store(my controller)/:system/:title).
I have the database entries that include the :system and :title variables (?). How would I route these to show up and filter these entries? Or is this ...
While migrating a site from a classic asp to MVC, I'm having the problem that not all controllers are implemented yet. For those which are not implemented, I'd like to serve the classic asp page (say /product.asp?id=123) while maintaining the nice url /product/123. To accomplish this I implemented a dummy ProductController which returns ...
Hi folks,
If i have a request for a resource in my ASP.NET MVC1 (or 2) web app for a static resource, say ... an image or a javascript file or a css file ... does the .NET framework try and see if the request matches the route list ... and eventually can't find a controller for it?
eg.
Resource: /Content/Images/Foo.png
Does this requ...
I am working on building an MVC frontend for a CMS system. The CMS system will serve ASP.NET MVC with pages and content.
In Global.asax I registered a custom route handler like this:
public class MvcApplication : EPiServer.Global
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.Add(new Route("{*data}...
Simple examples of controllers in a RESTful architecture suggest four actions per controller -- index, create, update, delete -- corresponding with the GET, POST, PUT, and DELETE. But beyond that I still find a dozen little decisions:
Do you have a different controller for resource collections (example.com/things) than you do for an i...
I was working on PHP in the past 1 year and nowadays I'm learning Rails.
In rails:--
Routing takes an incoming URL and decodes it into a set of parameters that are used by Rails to dispatch to the appropriate controller and action
For example
rs.recognize_path "/blog/show/123"
{:controller=>"blog", :action=>"show", :id=>"123"}
Am ...
I'm using a route like this
routes.MapRoute(
"PageBySlug",
RouteType.Regular,
"{slug}",
new {controller = "Page", action = "Display", slug = "Default"}, null
);
to map request to ~/Some-Page-Slug to ~/Page/Display/Some-Page-Slug.
When adding content, user can choose...
I have a folder(/MyFolder/) with a dedicated web.config in it that does an impersonating
In that folder I have an asp.net file that use Microsoft report viewer 8.0 named MyReport.aspx
When I view this folder on my machine, it's working perfectly without issue
When I publish my project to the dev server and I'm trying to view the repor...
I there a simple way when using ASP.NET 4.0 routing with Web Forms to produce a route that will act as some kind of wildcard?
It seems to me that within WebForms, you have to specify a route for every page - I am looking for some kind of generic route that can be used where nothing specific is required, perhaps mapping directly from pat...
I've created an Area named "Admin". I've created also a controller(Pages) and a view(List) in this areas.
When I run my app and enter the url "/Admin/Pages/List" I'm getting an The resource cannot be found error.
When I enter /Pages/List, the Action method is hit but the view is not found,because the app is searching in wrong directori...
Hi All,
I am just learning Rails. I had encountered a routing error, though I think I have specified the correct rules in the routing.rb. I have attached the code. Please help
routes.rb
map.connect ':controller/:action'
map.connect ':controller/:action/:id'
map.connect ':controller/:action/:id.:format'
Controller
class E...
Hi! I am looking for method for parsing route path like this:
ActionController::Routing.new("post_path").parse
#=> {:controller => "posts", :action => "index"}
It should be opposite to url_for
Upd
I've found out:
http://stackoverflow.com/questions/2222522/what-is-the-opposite-of-url-for-in-rails-a-function-that-takes-a-path-and-gener...
I've got a big old log file I'm trying to break down in terms of routes.
Essentially, I'm getting input of a path (/questions/31415 for example) and a list of all the registered Routes. What I want out is a Route and the parameters specified in the route (so in, /questions/{id}/{answer} I'd get id and answers out).
I've got a working ...
Hi,
I have my custom http-handler and with VS2010 I was thinking about switching to MS routing instead.
My problem is that I have all my route definitions in a database and I don't know the connection string until the user logs on!
Luckily, my start page/log in page does use routing so that one they can access.
However, all examples I ...
Hi,
Not sure how to frame this so here goes....
I have the following link_to tag:
<%= link_to("My test title",{:controller=>"search", :action=>"for-sale", :title => listing.title, :search_term => search_term, :id=> listing.id}) %>
and the following custom route in my routes.rb file:
map.connect ':controller/:action/:title/search_it...
I'm building a custom Silverlight UserControl which needs to listen to events using Preview/Tunneling, but for some reason the compiler is telling me they are not recognized or accessible.
For example, I can add an event handler to MouseLeftButtonDown, but not PreviewMouseLeftButtonDown. This doesn't make sense because according to Micr...
Is it possible to put this in a sitemap?
routes.MapRoute("Event_Groep_Route", // Route name
"{EventName_Url}/{GroepID}/{controller}/{action}/{id}",
new { EventName_Url = UrlParameter.Optional, GroepID = UrlParameter.Optional, controller = "Home", action = "Index", id = UrlParameter.Optional });
Event...
Hi, I need to do some special routing in cake, but can't for the life of me figure it out.
I have a shop controller at /shop, the format of the url will be:
/shop/:category/:sub_category/:product_slug
In the routing I need to send each part of the url to a different action, for example if the url was just /shop/cakes it would go to t...