Questions about routing within ASP.NET (including MVC).
0
votes
0answers
34 views
Ajax Request Error when application Deployed to IIS7
I've deployed my MVC project application to IIS 7, and it seems to work fine till I execute an ajax request with the following format:
$.ajax({
type: 'POST',
url: ...
0
votes
1answer
42 views
MVC 4 Routing Listing page and Detail page
I am having to do a 'hack-around' getting simple routing to work as I need.
site.com/Event <--- controller = Event, action = Index
site.com/Event/{id} <--- controller = Event, action = ...
0
votes
2answers
41 views
Mvc4 Querystring parameter is not working
In Asp.net MVC4 I have created below URL showing 404 error with IIS8.0
http://{ParentURL}/Areas/Admin/Menu/Index?actoin=Add
Please help me on it.
1
vote
1answer
28 views
Automatic URL Parameter Encoding Failing
Background
In HomeController.cs I have:
[HttpGet]
public GetPerson(string name)
{
return View(new PersonModel { ... });
}
In Global.asax.cs I have:
public static void ...
0
votes
2answers
31 views
ASP.NET MVC How to create action links based on routing
Like stackoverflow, you have domain/questions/{id}/{title}
It doesn't matter what you actually send as title, if it's not the actual title of the question, it automatically does a permanent redirect ...
1
vote
1answer
21 views
How to set routes for a controller in MVC. Always returns “HTTP Error 404.0 - Not Found”
I am trying to set the route in Global.asax for the following controller, but I always get HTTP Error 404.0 - Not Found
AssetsController.cs
public class AssetsController : Controller
{
public ...
0
votes
1answer
13 views
asp.net mvc3 localized routing definition
Hello I'm struggling with the following problem:
I have the following routes, one is Default and another for Localized links. When I try to access an url Like: http://domain.com/en/Home/Index ...
0
votes
2answers
33 views
Trouble with global.asax routing
I have some links in my webapp that looks like this:
localhost:12345/?something=1
localhost:12345/?something=2
localhost:12345/?something=3
localhost:12345/?something=4
each number at the end is an ...
1
vote
0answers
31 views
ASP.NET MVC Route parsing
I have an extra /Areas/Xxx in my MVC project.
It has its own XxxAreaRegistration.cs.
So how can I parse requests if I can handle these URLs?
https://waybackassets.bk21.net/Xxx/ENGLISH/*MOSCOW*/2012/*BOOKS*/anythingelse
...
0
votes
1answer
10 views
Passing whole object instance (that contains an empty List<string>) from View -> Controller results in List.Count==1 in Controller
I have a view that pretty much does this:
@foreach (var object in @Model)
{
//display wishList values
@Html.ActionLink("Edit Object", "Edit", "Object", @object)
}
the 'object' class:
...
1
vote
2answers
50 views
ServiceStack web.config settings ignored when using custom path
Introduction
My ServiceStack service handles route parameters that often contain periods ie:
/people/search/b.j./upton. Initially, asp.net/ServiceStack would throw a "404 - Not Found" exception when ...
1
vote
2answers
56 views
mvc 4 url custom routing issue
i have an action which takes two parameters but when action is called, parameters are displayed in the url as query string like this:
localhost:34795/Verification?DepartmentID=3&SubDepartmentID=2
...
1
vote
2answers
28 views
asp.mvc 4 more routes
I have an web app build with asp.net MVC 4.
I want to have the following 3 types of routes:
/action
/action/id
/id/id2
In global.asax I have changed the routes as it follows:
...
0
votes
1answer
45 views
Why won't this MVC Route Work?
I have the following routes defined in my RouteConfig class:
routes.MapRoute(
name: "DefaultMessage",
url: "API/{action}",
defaults: new { action = ...
0
votes
1answer
15 views
Directory browsed instead of showing view
I have a project on which I tested stuff related to this experimentation: .NET MVC - Controller/View and physical path?
Now I can't display a normal MVC view:
On ...