I have an ASP.NET web application(webforms,not MVC) developed in VS 2008 and i have implemented ASP.NET web forms URL routing by following this link
http://www.4guysfromrolla.com/articles/051309-1.aspx#postadlink
It works pretty good when i run it on the Visual studion IDE.But does not works when i created a site under my IIS (IIS 5...
I've created a website with ASP.NET MVC. I have a number of static pages that I am currently serving through a single controller called Home. This creates some rather ugly URLs.
example.com/Home/About
example.com/Home/ContactUs
example.com/Home/Features
You get the idea. I'd rather not have to create a controller for each one of the...
Let's say we want a RESTful web service to manage some logically nested resources, where each instance of resource 'B' is logically contained by an instance of resource 'A'.
The first example that comes to mind, working as a sysadmin, is email accounts and their domains: [email protected] [email protected] [email protected] ...
What URL s...
I have a controller without any related model. This controller is to span some information from various models. I have lots of actions there, which define certain views on the page. What would be the best way to organize routes for this controller?
What I would like is to have /dashboard/something point to any action in the dashboard c...
My model is built on non-numerical ID's (36-char. GUID to be specific).
The problem is that when I run symfony 1.4 admin generator, it assumes that all my IDs are numeric and applies default routing requirements.
I tried providing specific routing requirements as advised here: http://www.codemassacre.com/2009/04/27/symfony-12-admin-wit...
How can I call a route (in the view) in CakePHP as the same way in Rails?
Ruby on Rails
routes.rb
map.my_route '/my-route', :controller => 'my_controller', :action => 'index'
view
link_to 'My Route Name', my_route_path
CakePHP
routes.php
Router::connect('/my-route', array('controller' => 'my_controller', 'action' => 'index'));
...
Hi,
usually, when I look at a ASP.Net MVC application, the Route table gets configured at startup and is not touched ever after.
I have a couple of questions on that but they are closely related to each other:
Is it possible to change the route table at runtime?
How would/should I avoid threading issues?
Is there maybe a better way...
This seems like it should be easy, but for some reason I'm having no luck. I'm migrating an existing WebForms app to MVC, so I need to keep the root of the site pointing to my existing aspx pages for now and only apply routing to named routes. Here's what I have:
public static void RegisterRoutes(RouteCollection routes)
{
...
Is it advisable to implement url routing for an asp.net(webforms) website which is one year old... What are the factors to be considered before implementing....
Edit:
It is a web based product website developed my company and users should pay for using it...
...
I am trying to add a language to the url with following syntax:
http://www.example.com/en/site/page/view/about
What I have so far works with short urls like:
http://www.example.com/en/site/contact
but not with long once as in my first example
Here is what I have so far:
/config/main.php
'urlManager'=>array(
'class'=>'appl...
I've made the change from querystring asp.net webforms application to an url routing one. Now I'm trying to let google know that there's a new set of urls to be aware of. The G has indexed 133 out of 179 new urls sent in sitemap.xml, but the site:mistral.hr command returns the old querystring version of the links.
This could partly be so...
Hi all,
I am new to asp.net mvc, so please bear with me.
We have the following route dictionary setup.
routes.MapRoute(
"Default", // Route name
"{language}/{controller}/{action}/{id}", // URL with parameters
new { language = "en...
I just thought of routing my URLs which is like
http://localhost/codeigniter_cup_myth/index.php/adminController/mainAccount
and it would be pretty nice if it was
http://localhost/codeigniter_cup_myth/Accounts/mainAccount
Where should I start when routing URLs in my web application?
...
I have there lines in my RegisterToutes :
routes.MapRoute("Pages3", "{url1}/{url2}/{url3}", MVC.Page.RedirectTo(), new { url1 = "", url2 = "", url3 = "" });
routes.MapRoute("Pages2", "{url1}/{url2}", MVC.Page.RedirectTo(), new { url1 = "", url2 = "", url3 = "" });
routes.MapRoute("Pages1", "{url1}", MVC.Page.RedirectTo(), new { url1 = "...
Hello,
I've model called BlogPost and controller called BlogPostsController that has all basic CRUD methods for BlogPost.
I'm trying to understand how I can route users to have URL like /blog/post-name instead of /blog_posts/post-name and "disable" in general URL /blog_posts. Should I rename my controller or should I change routes (and...
I would like to be able to map URLs to Controllers dynamically based on information in my database.
I'm looking to do something functionally equivalent to this (assuming a View model):
map.route '/:view_name',
:controller => lambda { View.find_by_name(params[:view_name]).controller }
Others have suggested dynamically rebuilding t...
How can I create a routing structure for a project management application where there are discrete controllers for all the relevant pieces such as TaskController, DocumentController etc and an Over arching controller. I would essentially like a structure like:
http://server/Project/123/Task
http://server/Project/123/Document
I am using...
This is kind of an academic question, so feel free to exit now. I've had a dig through Stack for threads pertaining to URL/Controller mapping in MVC frameworks - in particular this one:
http://stackoverflow.com/questions/125677/php-application-url-routing
So far, I can ascertain two practices:
1: dynamic mapping through parsing the U...
I'm trying to resolve this URL Route:
Route articlesByCategory = new Route("articles/c{cid}-{category}", new Handler);
However, it seems like the following url won't resolve to this route:
// doesn't work
www.site.com/articles/c24-this-is-the-category-title
// This works
www.site.com/articles/c24-category
I assume it has to do wit...
I have a routing setting in my global.asax file:
routes.MapPageRoute("video-browse", "video/{id}/{title}/", "~/routeVideo.aspx");
My routeVideo.aspx page has caching setting:
<%@ OutputCache Duration="10" Location="ServerAndClient" VaryByParam="id" %>
But when I request http://localhost/video/6/example1 and http://localhost/video/6...