On an ASP.NET MVC (Beta) site that I am developing sometimes calls to ActionLink will return to me URLs containing querying strings. I have isolated the circumstances that produce this behavior, but I still do not understand why, instead of producing a clean URL, it decides to using a query string parameter. I know that functionally they...
Hi. I'm using the ASP.NET 3.5 SP1 System.Web.Routing with classic WebForms, as described in http://chriscavanagh.wordpress.com/2008/04/25/systemwebrouting-with-webforms-sample/
All works fine, I have custom SEO urls and even the postback works. But there is a case where the postback always fails and I get a:
Validation of viewstate MAC...
I have a problem whereby I want to display a view differently (a different master page), depending on where it came from, but don't know where to start...
I have several routes which catch various different types of urls that contain different structures.
In the code snippet below, I have a product route, and then I have a partner site...
we have a old and dying dedicated server. we want a new one at a new datacenter. we have a bunch of sites using the current server and don't have control of all their DNS. is there an easy way to redirect all the traffic from xx.xx.xx.xx to zz.zz.zz.zz without updating DNS records?
Thanks.
...
I've seen a lot of discussion on URL Routing, and LOTS of great suggestions... but in the real world, one thing I haven't seen discussed are:
Creating Friendly URLs with Spaces and illegal characters
Querying the DB
Say you're building a Medical site, which has Articles with a Category and optional Subcategory. (1 to many). ( Could...
Is it possible to have an ASP.NET MVC route that uses subdomain information to determine its route? For example:
user1.domain.com goes to one place
user2.domain.com goes to another?
Or, can I make it so both of these go to the same controller/action with a username parameter?
...
I know in the MVC Framework, you have the Html Class to create URLs:
Html.ActionLink("About us", "about", "home");
But what if you want to generate Urls in Webforms?
I haven't found a really good resource on the details on generating URLs with Webforms.
For example, if I'm generating routes like so:
Route r = new Route("{country}/...
Hi,
I have been banging my head against a brick wall trying to deploy my MVC app on IIS6 (linked question)
I have scrapped wildcard mapping for the time being and am trying to get the .mvc extension working. Everything is configured correctly in IIS and the .mvc extension is pointing to the .NET dll for all verb types (unchecked verify...
Hi there!
I feel like I'm re-inventing the wheel here, but I need to find a way of taking a URL from a catchall,and redirecting that to another route.
The reason for this is because I need to do some things like adding session cookies for certain urls, and then pass them on to their relevant action.
What's the best way of implementing...
Okay, these two related questions are in reference to Railscast #21:
I'm having some trouble with routes. Two issues:
1) The routes in the tutorial seem to be relative to the root of the application; I want them to be relative to the root of the model. So
"http://example.com/login" I need to be "http://example.com/model/login" (and ...
I'm trying to make semantic urls for search pages, but if someone use a search finished in dot, the .net engine return a 404.
The request don't even get to the routing engine, so i think its something related to security or something like that.
For example, the stackoverflow routes also don't work in these case:
http://stackoverflow...
Hi,
I'm trying to create routes which follow the structure of a tree navigation system, i.e I want to include the entire path in the tree in my route. So if I had a tree which looked like this
Computers
Software
Development
Graphics
Hardware
CPU
Graphics cards
Then I would like to be able to have routes that looks like this
...
Related to the question asked here -- http://stackoverflow.com/questions/182040/default-segment-name-in-rails-resources-routing.
Having trouble in edge rails trying to generate resources without a namespace prefix (i.e. /:apple_id/oranges/). Using the plugin gives me //:apple_id/oranges?
Any easier way to do this? Maybe a 2.2 issue?
...
I'm trying to use route constraints in an Asp.Net MVC Application.
routes.MapRoute(
"theRoute",
"MyAction/{page}",
new { controller = "TheController", action = "MyAction", page = 1 },
new { page = @"[0-9]" });
When I enter an url like ~/MyAction/aString, an YSOD is shown with an invalid operation exception. What can I...
If you have a route:
routes.MapRoute("search", "{controller}/{action}/{filter1}/{filter2}/{filter3}", _
New With {.filter1 = "", .filter2 = "", .filter3 = ""})
then in a view satisfied by the route pattern with a url of /member/search/dev/phil/hoy, when you attempt to create another route url with only filter1 present i.e.
<%=Url.R...
I can't seem to figure this out. I'm experimenting with MVC Beta and am trying to implement a catchall route such that if the user enters mysite.com/blah instead of mysite.com/home/index it will hit the "Error" route.
Unfortunately it seems that the "Default" route always catches "blah" first. In fact the only route I've been able to g...
Part of my application maps resources stored in a number of locations onto web URLs like this:
http://servername/files/path/to/my/resource/
The resources location is modelled after file paths and as a result there can be an unlimited level of nesting. Is it possible to construct an MVC route that matches this so that I get the path in...
Hello, I'm new to ruby and started to create my *nd toy app.
I:
Created controller 'questions'
Created model 'question'
Created controller action 'new'
Added 'New.html.erb' file
in erb file I use form_for helper and and new controller action where I instantiate
@question instance variable.
When I try to run this I get 'undefined met...
I get a 404 response from .Net MVC when I try to make a request where my search term ends with a . (period). This is the route that I'm using:
routes.MapRoute(
"Json",
"Remote.mvc/{action}/{searchTerm}/{count}",
new { controller="Remote", count=10}
);
The search works fine wi...
Hello, rails friends.
I'm struggling here with a problem:
I have a controller questions which has action new.
Whenever I need to create new question, I'm typing
/questions/new
What changes to routes.rb should I make to change the URI to
/questions/ask
Thank you.
Valve.
...