routing

ASP.NET Redirect to other page internal

Is there a way to redirect a asp.net page to another and restart the server workflow without the user seeing it in their browser? Call to .NET Page (handled by routing) Perform some actions based on this call Call other webpage internal (handled by a httpmodule) The internal page don't "exist" (passes though a module that performs...

Using TopoR with EagleCad

Hi , I just learnt of TopoR routing software. It routes PCB traces without grids, with curves and arcs for reduced trace length and vias. http://www.toporouter.com/ But its not a complete PCB routing solution , they have examples on how to use it with DipTrace. At work we all use and are comfortable with EagleCad . Has anybody us...

Rails or Django style routing in Perl

I have grown accustomed to the way Rails maps a route or the Django uses regex on a route (I am not expect in Django, but this is what I have heard how it does it's routing) and how they use the style of permalinks to access a particle web page. Is it possible to do the same thing in Perl? ...

Simple posts / comments route in rails 3

I'm trying to write a route that captures the one-to-many relationship between posts and comments in your average blog What I have currently is a post.rb class Post < ActiveRecord::Base has_many :comments end followed by a comment.rb (among all the other db setups including post_id:integer for comment) class Comment < ActiveRecord...

Why do I need to define a action in routes manually sometimes, and sometimes not?

Suppose i have indicated that network is a resource. I am adding a new action, say "submit_question_for_network" to the controller. However, after I added the action to the controller, it does not work # does not work /network/submit_question_for_network # need to add to :collection map.resources :network, :collection => {:submit_...

Rails 3 : route a resource to another name

I have a CRUD controller for a model. Doing resources :foo allows me to route on /foo/:id, etc. for calling actions. I want add a route for a translation of 'foo' in another language. Let's say 'toto'. So I want all the /toto/:id, etc., routes to act exactly like the /foo/:id, etc., routes. How may I achieve that? ...

Rails Routes - Limiting the available formats for a resource

I have a series of resources that I want only available if accessed via the JS format. Rails' route resources gives me the formats plus the standard HTML. Is there a way to specify that only the JS format routes be created? ...

Runtime resolution of asp.net webforms routes

I am trying to create dynamic routes using .net 4.0 WebForms. Imagine I need mappings like these: mySite/Canada -> country.aspx mySite/Canada/Ontario/ -> locality.aspx mySite/Canada/Ontario/Toronto -> town.aspx mySite/Canada/population -> country.aspx mySite/Canada/history -> country.aspx mySite/Canada/Ontario/weather -> locality.aspx ...

ASP.NET mvc, localized routes and the default language for the user

I am using asp.net mvc localized routes. So when a user goes to the english site it is site.com/en/Controller/Action and the swedish is site.com/sv/Controller/Action. But how do I make sure that that when a user enters the site he / she comes to the correct language directly? I do know how to get the language I want, that is not the is...

Passing a propel criteria to the symfony routing function that retrieves the object

Hi guys, quick symfony / propel question. I have the following propel collection route: api_offer: class: sfPropelRouteCollection options: prefix_path: /api/offer model: Offer plural: offers singluar: offer actions: [ list ] module: apiOffer requirements: sf_format: (?:html|json) My question is, does ...

Using routing with webforms - CreateInstanceFromVirtualPath sometimes very slow

I am using routing with my ASP.NET WebForms application, using the technique described by Phil Haack: http://haacked.com/archive/2008/03/11/using-routing-with-webforms.aspx This works well most of the time, however on on occasion the first call to System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath is takes tens of seco...

Ruby on Rails 3: Change default controller and parameter order in routing

I have a Rails app that has a controller called domain which has a nested controller called subdomain and stats. I have defined them in routes.rb: resources :domains do resources :subdomains, :stats end I have changed the to_param of the domain and subdomain models to use the name of the domain, e.g.: the routing I get is http://s...

Is there a way to redirect Post requests preserving post data or an alternative?

Hello, I am setting up a CDN relying only on Header redirects or temporary URLs served by an API controlled by a Database cluster. The Goal is to reduce hardware costs and have flexible nodes with only FTP/HTTP/PHP as requirement and create a cheap solution for websites that can work with this. Howevery my Problem is that i want to hav...

Install Mogli Gem on Rails 3

I am trying to install the mogli gem( http://github.com/mmangino/mogli ) on rails 3 and am running into problems with the configuration. I have NO prior experience with Rails 2. For Rails 2 Add config.gem "mogli" to environment.rb For Rails 3, I added the following to the gemfile. gem 'mogli' For Rails 2, routes map.resource :...

Translate asp.net mvc 2 application?

I'm hoping this is a rather simple question, but I'm pretty new to MVC and can't see clearly how it should be done. I have a site that I need to translate to another language. I've tried to search on this, but all I found was pretty complex translations about how to handle strings etc in resx files. That may be something for later, but f...

why is my route defined in a .ini file not working?

In my Bootstrap.php I have the following code which defines a route: $router = Zend_Controller_Front::getInstance()->getRouter(); $router->addRoute('pageDetails', new Zend_Controller_Router_Route('page-details/:uid/:title', array( 'module' => 'default', 'controller' => 'list', 'action' =...

CodeIgniter URLs help

Hello, I'm planning on re-creating my lyrics website in CodeIgniter. At the moment, the way I have it set-up is like this: example.com/artistname and example.com/anotherartist I also have example.com/contact and example.com/request etc.. I can get it to be example.com/artist/artistname, but I'd really like to keep it simple for the us...

Problem with accessing url with space followed by slash

Hello, I have a problem on my website when i am trying to access a product with a space followed by a slash. It does not work. Just using a space in a articleno works fine, but when the space is followed by a slash it does not work. Any ideas to why this is? Is it the IIS:en not knowing how to route? Or is it the browser treating space,...

Problem connecting NRPE monitoring server to monitored server via a BSD gateway

As part of my job I need to be kept aware of the availability of a server within my client's corporate network. Just to make my life hard, their entire network is hidden behind a pair of gateway machines (for this, we can just pretend there is only one machine) running FreeBSD 7.1-PRERELEASE (no, I have no idea why they are running an o...

can't get System.Web.SessionState with asp.net 4 webforms routing

I've seen couple of questions here such as http://stackoverflow.com/questions/161221/state-service-when-using-system-web-routing-in-webforms but couldn't find proper solution. I am using asp.net routing with webforms on iis7. I've added below to webconfig file to get it working at first palace <system.webServer><modules> ...